diff --git a/src/views/bigScreen/index_gx.vue b/src/views/bigScreen/index_gx.vue index 5ed56cb2..491e9de3 100644 --- a/src/views/bigScreen/index_gx.vue +++ b/src/views/bigScreen/index_gx.vue @@ -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; }, };