fix:光芯大屏添加定时更新(5分钟)

This commit is contained in:
shijing 2025-07-01 15:06:46 +08:00
parent 0b263f076b
commit bace29ba45
1 changed files with 13 additions and 1 deletions

View File

@ -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>