定时器
This commit is contained in:
@@ -1684,7 +1684,7 @@ export default {
|
|||||||
// console.log(res.result)
|
// console.log(res.result)
|
||||||
this.chartData1 = res.result
|
this.chartData1 = res.result
|
||||||
if (res.result.length) {
|
if (res.result.length) {
|
||||||
window.clearInterval(this.timeOut2)
|
clearInterval(this.timeOut2)
|
||||||
this.setEchart02() // 左3
|
this.setEchart02() // 左3
|
||||||
}
|
}
|
||||||
// this.setEchart02() // 左3
|
// this.setEchart02() // 左3
|
||||||
@@ -1719,7 +1719,7 @@ export default {
|
|||||||
this.taskDate2.push(e.min_productivity)
|
this.taskDate2.push(e.min_productivity)
|
||||||
})
|
})
|
||||||
if (res.result.length) {
|
if (res.result.length) {
|
||||||
window.clearInterval(this.timeOut1)
|
clearInterval(this.timeOut1)
|
||||||
this.setEchart04() // 中2
|
this.setEchart04() // 中2
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -1809,7 +1809,7 @@ export default {
|
|||||||
console.log(res.result)
|
console.log(res.result)
|
||||||
this.chartData2 = res.result
|
this.chartData2 = res.result
|
||||||
if (res.result.length) {
|
if (res.result.length) {
|
||||||
window.clearInterval(this.timeOut3)
|
clearInterval(this.timeOut3)
|
||||||
this.setEchart10() // 右3
|
this.setEchart10() // 右3
|
||||||
}
|
}
|
||||||
// this.setEchart10() // 右3
|
// this.setEchart10() // 右3
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
}, this.iTime)
|
}, this.iTime)
|
||||||
},
|
},
|
||||||
toJump () {
|
toJump () {
|
||||||
window.clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.page = this.page === 'one' ? 'two' : 'one'
|
this.page = this.page === 'one' ? 'two' : 'one'
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.swipePage()
|
this.swipePage()
|
||||||
|
|||||||
@@ -393,6 +393,10 @@ export default {
|
|||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
this.$once('hook:beforeDestroy', () => {
|
this.$once('hook:beforeDestroy', () => {
|
||||||
clearInterval(this.timer2)
|
clearInterval(this.timer2)
|
||||||
|
clearInterval(this.timer3)
|
||||||
|
clearInterval(this.interTime)
|
||||||
|
clearInterval(this.timeOut1)
|
||||||
|
clearInterval(this.timeOut2)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -842,7 +846,7 @@ export default {
|
|||||||
this.joo1 = res.monthResult.joo1
|
this.joo1 = res.monthResult.joo1
|
||||||
this.joo2 = res.monthResult.joo2
|
this.joo2 = res.monthResult.joo2
|
||||||
this.joo3 = res.monthResult.joo3
|
this.joo3 = res.monthResult.joo3
|
||||||
window.clearInterval(this.timer3)
|
clearInterval(this.timer3)
|
||||||
this.toSwiper()
|
this.toSwiper()
|
||||||
} else {
|
} else {
|
||||||
this.Dialog(res.desc)
|
this.Dialog(res.desc)
|
||||||
@@ -860,7 +864,7 @@ export default {
|
|||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.arrL2 = [...res.result]
|
this.arrL2 = [...res.result]
|
||||||
if (this.arrL2.length > 0) {
|
if (this.arrL2.length > 0) {
|
||||||
window.clearInterval(this.timeOut1)
|
clearInterval(this.timeOut1)
|
||||||
this.setEchart1()
|
this.setEchart1()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -872,7 +876,7 @@ export default {
|
|||||||
let res = await monthHarvest()
|
let res = await monthHarvest()
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.arrL3 = [...res.result]
|
this.arrL3 = [...res.result]
|
||||||
window.clearInterval(this.timeOut2)
|
clearInterval(this.timeOut2)
|
||||||
this.setEchart2()
|
this.setEchart2()
|
||||||
} else {
|
} else {
|
||||||
this.Dialog(res.desc)
|
this.Dialog(res.desc)
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ export default {
|
|||||||
// this._getEchart4()
|
// this._getEchart4()
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
window.clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
_getEchart4 () {
|
_getEchart4 () {
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
this.refresh()
|
this.refresh()
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
window.clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
refresh () {
|
refresh () {
|
||||||
@@ -235,7 +235,7 @@ export default {
|
|||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.obj1 = res.content
|
this.obj1 = res.content
|
||||||
this.array1 = [...res.rows]
|
this.array1 = [...res.rows]
|
||||||
window.clearInterval(this.timeOut)
|
clearInterval(this.timeOut)
|
||||||
this.setEchart1()
|
this.setEchart1()
|
||||||
} else {
|
} else {
|
||||||
this.Dialog(res.desc)
|
this.Dialog(res.desc)
|
||||||
|
|||||||
Reference in New Issue
Block a user