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