dedsudiyu 6 miesięcy temu
rodzic
commit
961269145c
1 zmienionych plików z 18 dodań i 2 usunięć
  1. 18 2
      src/views/courtyardManage/courtyardHome.vue

+ 18 - 2
src/views/courtyardManage/courtyardHome.vue

@@ -419,8 +419,6 @@
                 deptName: null,
                 mtopicTwo: "manage/work" + localStorage.getItem('userId'),
                 timer: null,//定时器
-                chartReload: null,//定时器
-                chartReload2: null,//定时器
                 chartReload3: null,//定时器
                 chartReload4: null,//定时器
                 chartReload5: null,//定时器
@@ -481,8 +479,26 @@
             self.laboratoryBigViewSelectTriggerInfo();
             self.laboratoryBigViewCollegeEventStatistics();
             this.offPlanMQTT('on');
+            this.timerPlay();
         },
         methods: {
+            // 定时器
+            timerPlay(){
+                let self = this;
+                clearInterval(this.timer);
+                this.timer = setInterval(function () {
+                    self.infoFun();
+                    self.workPlanFun();
+                    self.securityBigViewList();
+                    self.laboratoryGradeManageList();
+                    self.laboratoryBigViewsSubTypeLevelCount()
+                    self.laboratoryBigViewSubHazardCount()
+                    self.securityBigViewCheckOptionCharts()
+                    self.laboratoryBigViewSubTotalUserCount();
+                    self.laboratoryBigViewSelectTriggerInfo();
+                    self.laboratoryBigViewCollegeEventStatistics();
+                }, 50000 * 6);
+            },
             /**V3新--------------start----**/
             // 切换轮播
             checkedNumButton(type) {