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
06478b04
Commit
06478b04
authored
Sep 04, 2020
by
Kyle_Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:定时器离开未取消
parent
5c3ff1dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
posmembers.js
src/components/posmembers/posmembers.js
+7
-0
total.js
src/components/wechatmembers/total.js
+6
-3
wechatmembers.js
src/components/wechatmembers/wechatmembers.js
+8
-1
No files found.
src/components/posmembers/posmembers.js
View file @
06478b04
...
...
@@ -291,6 +291,7 @@ export default {
// this.$nextTick(_ => {
this
.
$store
.
commit
(
"mutations-slide"
,
true
);
// });
this
.
getProcessList
();
},
methods
:
{
// 父组件调用子组件方法,触发父组件事件
...
...
@@ -1048,6 +1049,12 @@ export default {
?
sessionStorage
.
getItem
(
"poscurrentPage"
)
:
1
;
this
.
getEnterpriseInfo
();
this
.
$on
(
'hook:deactivated'
,
_
=>
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
})
this
.
$on
(
'hook:beforeDestroy'
,
_
=>
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
})
},
beforeMount
()
{
this
.
getAjaxMembers
();
...
...
src/components/wechatmembers/total.js
View file @
06478b04
...
...
@@ -1052,9 +1052,6 @@ export default {
this
.
$store
.
commit
(
"mutations-slide"
,
true
);
});
},
deactivated
()
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
},
created
()
{
if
(
!
this
.
storeImageUrl
)
{
this
.
$store
.
dispatch
(
"getStorePicture"
);
...
...
@@ -1064,6 +1061,12 @@ export default {
this
.
initialize
();
this
.
getAjaxMembers
();
this
.
getGradeList
();
this
.
$on
(
'hook:deactivated'
,
_
=>
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
})
this
.
$on
(
'hook:beforeDestroy'
,
_
=>
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
})
},
components
:
{
searchinput
,
...
...
src/components/wechatmembers/wechatmembers.js
View file @
06478b04
...
...
@@ -198,7 +198,7 @@ export default {
}
else
{
let
self
=
this
;
clearTimeout
(
self
.
timer
);
this
.
timer
=
set
Timeout
(()
=>
{
this
.
timer
=
set
Interval
(()
=>
{
this
.
getProcessList
();
},
5000
);
}
...
...
@@ -983,6 +983,7 @@ export default {
// this.$nextTick(_ => {
this
.
$store
.
commit
(
"mutations-slide"
,
true
);
// });
this
.
getProcessList
();
},
created
()
{
this
.
fieldList
();
...
...
@@ -994,6 +995,12 @@ export default {
this
.
initialize
();
this
.
getAjaxMembers
();
this
.
getGradeList
();
this
.
$on
(
'hook:deactivated'
,
_
=>
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
})
this
.
$on
(
'hook:beforeDestroy'
,
_
=>
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
})
},
components
:
{
searchinput
,
...
...
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