Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
member
member
Commits
7d453d51
Commit
7d453d51
authored
Sep 09, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/8月迭代下'
parents
896b0b63
1f685cea
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
16 deletions
+32
-16
posmembers.js
src/components/posmembers/posmembers.js
+3
-3
posmembers.vue
src/components/posmembers/posmembers.vue
+2
-2
frozenMember.vue
src/components/wechatmembers/frozenMember.vue
+3
-1
total.js
src/components/wechatmembers/total.js
+3
-2
wechat-total.vue
src/components/wechatmembers/wechat-total.vue
+2
-2
wechatmembers.js
src/components/wechatmembers/wechatmembers.js
+3
-2
wechatmembers.vue
src/components/wechatmembers/wechatmembers.vue
+2
-2
utils.js
src/utils/utils.js
+14
-2
No files found.
src/components/posmembers/posmembers.js
View file @
7d453d51
...
...
@@ -8,7 +8,7 @@ import {
checkStatus
,
checkSuccess
}
from
"../../../static/js/checkStatus"
;
import
{
formatLongTime
,
paddingBorth
}
from
"@/utils/utils"
;
import
{
formatLongTime
,
paddingBorth
,
debounce
}
from
"@/utils/utils"
;
import
{
mapState
}
from
"vuex"
;
import
UserInfoCard
from
'../wechatmembers/UserInfoCard.vue'
...
...
@@ -137,7 +137,8 @@ export default {
phoneStatus
:
0
,
authStatus
:
0
},
integralFlag
:
""
integralFlag
:
""
,
debounce
};
},
computed
:
{
...
...
@@ -442,7 +443,6 @@ export default {
if
(
this
.
storeForm
.
subOptType
==
3
)
{
this
.
storeForm
.
fromSubStoreId
=
this
.
storeForm
.
deleteSubStoreId
;
}
doFetch
(
url
.
updateStore
,
{
memberIds
:
this
.
selectAll
==
true
?
"-1"
:
memberIdsArr
.
join
(
","
),
remark
:
this
.
storeForm
.
remark
,
...
...
src/components/posmembers/posmembers.vue
View file @
7d453d51
...
...
@@ -716,7 +716,7 @@
<el-button
@
click=
"dialogMainstoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
submitMainStore
('mainstoreForm')"
@
click=
"
debounce(submitMainStore,300)
('mainstoreForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
@@ -811,7 +811,7 @@
<el-button
@
click=
"dialogSubStoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
submitStore
('storeForm')"
@
click=
"
debounce(submitStore,300)
('storeForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
src/components/wechatmembers/frozenMember.vue
View file @
7d453d51
...
...
@@ -378,6 +378,7 @@ export default {
}
},
getList
(
options
)
{
console
.
log
(
options
);
const
datas
=
{
pageSize
:
options
.
pSize
,
currentPage
:
options
.
cPage
,
...
...
@@ -388,8 +389,9 @@ export default {
"name,nickName,photoUrl,cardNo,crateCardDateString,wxMember,posMember"
};
doFetch
(
"/api-member/ajax-members-do-frozen"
,
datas
).
then
(
res
=>
{
console
.
log
(
res
.
data
);
if
(
res
.
data
.
errorCode
===
0
)
{
if
(
res
.
data
.
result
.
result
.
length
>
0
)
{
if
(
res
.
data
.
result
.
result
&&
res
.
data
.
result
.
result
.
length
>
0
)
{
this
.
frozenList
=
res
.
data
.
result
.
result
.
map
(
ele
=>
({
...
ele
,
cardNum
:
ele
.
cardNum
?
ele
.
cardNum
:
"--"
,
...
...
src/components/wechatmembers/total.js
View file @
7d453d51
...
...
@@ -8,7 +8,7 @@ import {
checkStatus
,
checkSuccess
}
from
"../../../static/js/checkStatus"
;
import
{
formatLongTime
,
paddingBorth
}
from
"@/utils/utils"
;
import
{
formatLongTime
,
paddingBorth
,
debounce
}
from
"@/utils/utils"
;
import
{
mapState
}
from
"vuex"
;
import
UserInfoCard
from
'./UserInfoCard.vue'
...
...
@@ -142,7 +142,8 @@ export default {
phoneStatus
:
0
,
authStatus
:
0
},
integralFlag
:
""
integralFlag
:
""
,
debounce
};
},
computed
:
{
...
...
src/components/wechatmembers/wechat-total.vue
View file @
7d453d51
...
...
@@ -716,7 +716,7 @@
<el-button
@
click=
"dilogMainstoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
submitMainStore
('mainstoreForm')"
@
click=
"
debounce(submitMainStore, 300)
('mainstoreForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
@@ -812,7 +812,7 @@
<el-button
@
click=
"dilogSubStoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
submitStore
('storeForm')"
@
click=
"
debounce(submitStore, 300)
('storeForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
src/components/wechatmembers/wechatmembers.js
View file @
7d453d51
...
...
@@ -8,7 +8,7 @@ import {
checkStatus
,
checkSuccess
}
from
"../../../static/js/checkStatus"
;
import
{
formatLongTime
,
paddingBorth
}
from
"@/utils/utils"
;
import
{
formatLongTime
,
paddingBorth
,
debounce
}
from
"@/utils/utils"
;
import
{
mapState
}
from
"vuex"
;
import
UserInfoCard
from
'./UserInfoCard.vue'
...
...
@@ -143,7 +143,8 @@ export default {
phoneStatus
:
0
,
authStatus
:
0
},
integralFlag
:
""
integralFlag
:
""
,
debounce
};
},
computed
:
{
...
...
src/components/wechatmembers/wechatmembers.vue
View file @
7d453d51
...
...
@@ -713,7 +713,7 @@
<el-button
@
click=
"dilogMainstoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
submitMainStore
('mainstoreForm')"
@
click=
"
debounce(submitMainStore,300)
('mainstoreForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
@@ -808,7 +808,7 @@
<el-button
@
click=
"dilogSubStoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
submitStore
('storeForm')"
@
click=
"
debounce(submitStore,300)
('storeForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
src/utils/utils.js
View file @
7d453d51
...
...
@@ -102,4 +102,17 @@ export function findAnyComponent(context, componentName, root = null) {
}
}
return
children
;
}
\ No newline at end of file
}
export
function
debounce
(
func
,
wait
)
{
let
timeout
;
return
function
(...
args
)
{
console
.
log
(
args
);
let
that
=
this
;
clearTimeout
(
timeout
);
timeout
=
setTimeout
(
_
=>
{
func
.
apply
(
that
,
args
);
},
wait
);
};
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment