|
|
|
@ -331,7 +331,10 @@ export default { |
|
|
|
|
this.SET_TYPE(2) |
|
|
|
|
this.getProvince() |
|
|
|
|
this.getData() |
|
|
|
|
this.$once('hook:beforeDestroy', this.clearTimer) |
|
|
|
|
this.$once('hook:beforeDestroy', function() { |
|
|
|
|
this.clearTimer() |
|
|
|
|
clearInterval(this.redisTimer) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapMutations('match', [ |
|
|
|
@ -372,9 +375,9 @@ export default { |
|
|
|
|
this.listData = records |
|
|
|
|
this.totals = data.total |
|
|
|
|
this.handleStatus() |
|
|
|
|
this.loadIns.close(); |
|
|
|
|
// this.loadIns.close(); |
|
|
|
|
}).catch(res => { |
|
|
|
|
this.loadIns.close() |
|
|
|
|
// this.loadIns.close() |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 定时处理时间及状态 |
|
|
|
@ -475,10 +478,9 @@ export default { |
|
|
|
|
clearInterval(n) |
|
|
|
|
}) |
|
|
|
|
this.timerList = [] |
|
|
|
|
clearInterval(this.redisTimer) |
|
|
|
|
}, |
|
|
|
|
getData() { |
|
|
|
|
this.loadIns = Loading.service() |
|
|
|
|
// this.loadIns = Loading.service() |
|
|
|
|
this.getList() |
|
|
|
|
if (!Setting.isDev) { |
|
|
|
|
clearInterval(this.redisTimer) |
|
|
|
|