Commit 08e1d5e5 authored by 郭铭瑶's avatar 郭铭瑶 🤘

半小时获取网格数据

parent 67e42f72
...@@ -61,6 +61,7 @@ export default { ...@@ -61,6 +61,7 @@ export default {
data() { data() {
return { return {
timer: null, timer: null,
timer2: null,
complete: false, complete: false,
fullView: false, fullView: false,
videoModal: false, videoModal: false,
...@@ -160,7 +161,9 @@ export default { ...@@ -160,7 +161,9 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
clearInterval(this.timer) clearInterval(this.timer)
clearInterval(this.timer2)
this.timer = null this.timer = null
this.timer2 = null
}, },
methods: { methods: {
...mapActions([ ...mapActions([
...@@ -173,6 +176,7 @@ export default { ...@@ -173,6 +176,7 @@ export default {
'getDoneList', 'getDoneList',
'getCheckSum', 'getCheckSum',
'getPatrolList', 'getPatrolList',
'getGridSum',
]), ]),
mapComplete() { mapComplete() {
this.init() this.init()
...@@ -188,6 +192,9 @@ export default { ...@@ -188,6 +192,9 @@ export default {
this.getHandleList() this.getHandleList()
this.getDoneList() this.getDoneList()
}, 1000 * 60 * 1) }, 1000 * 60 * 1)
this.timer2 = setInterval(() => {
this.getGridSum()
}, 1000 * 60 * 30)
}, },
init() { init() {
const {name, id} = this.currentStreetInfo const {name, id} = this.currentStreetInfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment