fix:光芯大屏添加定时更新(5分钟)
This commit is contained in:
parent
0b263f076b
commit
bace29ba45
|
@ -524,6 +524,7 @@ export default {
|
||||||
lineWidth:0,
|
lineWidth:0,
|
||||||
pieHeight:0,
|
pieHeight:0,
|
||||||
lineHeight:0,
|
lineHeight:0,
|
||||||
|
setIntervals:null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -604,12 +605,19 @@ export default {
|
||||||
that.getMaterials();
|
that.getMaterials();
|
||||||
that.getMgroup();
|
that.getMgroup();
|
||||||
that.getTaskNumber();
|
that.getTaskNumber();
|
||||||
that.addListener();
|
|
||||||
that.getArticles();
|
that.getArticles();
|
||||||
that.getpurinrate();
|
that.getpurinrate();
|
||||||
that.initFactory();
|
that.initFactory();
|
||||||
that.addListener();
|
that.addListener();
|
||||||
})
|
})
|
||||||
|
that.setIntervals = setInterval(function () {
|
||||||
|
that.getCountnotok();
|
||||||
|
that.getMaterials();
|
||||||
|
that.getMgroup();
|
||||||
|
that.getTaskNumber();
|
||||||
|
that.getArticles();
|
||||||
|
that.getpurinrate();
|
||||||
|
}, 300000);
|
||||||
},
|
},
|
||||||
//获取公告和视频
|
//获取公告和视频
|
||||||
getArticles(){
|
getArticles(){
|
||||||
|
@ -998,16 +1006,20 @@ export default {
|
||||||
this.scene = null;
|
this.scene = null;
|
||||||
clearInterval(that.timerTime);
|
clearInterval(that.timerTime);
|
||||||
clearInterval(that.scrollInterval);
|
clearInterval(that.scrollInterval);
|
||||||
|
clearInterval(that.setIntervals);
|
||||||
that.timerTime = null;
|
that.timerTime = null;
|
||||||
that.scrollInterval = null;
|
that.scrollInterval = null;
|
||||||
|
that.setIntervals = null;
|
||||||
},
|
},
|
||||||
beforeDestoryed() {
|
beforeDestoryed() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.scene = null;
|
this.scene = null;
|
||||||
clearInterval(that.timerTime);
|
clearInterval(that.timerTime);
|
||||||
clearInterval(that.scrollInterval);
|
clearInterval(that.scrollInterval);
|
||||||
|
clearInterval(that.setIntervals);
|
||||||
that.timerTime = null;
|
that.timerTime = null;
|
||||||
that.scrollInterval = null;
|
that.scrollInterval = null;
|
||||||
|
that.setIntervals = null;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue