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

半小时获取网格数据

parent 67e42f72
......@@ -61,6 +61,7 @@ export default {
data() {
return {
timer: null,
timer2: null,
complete: false,
fullView: false,
videoModal: false,
......@@ -160,7 +161,9 @@ export default {
},
beforeDestroy() {
clearInterval(this.timer)
clearInterval(this.timer2)
this.timer = null
this.timer2 = null
},
methods: {
...mapActions([
......@@ -173,6 +176,7 @@ export default {
'getDoneList',
'getCheckSum',
'getPatrolList',
'getGridSum',
]),
mapComplete() {
this.init()
......@@ -188,6 +192,9 @@ export default {
this.getHandleList()
this.getDoneList()
}, 1000 * 60 * 1)
this.timer2 = setInterval(() => {
this.getGridSum()
}, 1000 * 60 * 30)
},
init() {
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