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
8cbd7932
Commit
8cbd7932
authored
Aug 26, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:会员列表- 修改主门店和协管门店时进行防抖
parent
918bfa8b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
15 deletions
+29
-15
posmembers.js
src/components/posmembers/posmembers.js
+3
-3
posmembers.vue
src/components/posmembers/posmembers.vue
+2
-2
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 @
8cbd7932
...
...
@@ -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 @
8cbd7932
...
...
@@ -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/total.js
View file @
8cbd7932
...
...
@@ -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 @
8cbd7932
...
...
@@ -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 @
8cbd7932
...
...
@@ -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 @
8cbd7932
...
...
@@ -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 @
8cbd7932
...
...
@@ -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