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