dedsudiyu месяцев назад: 5
Родитель
Сommit
1ed8a0f99e

+ 3 - 1
src/views/components/headComponent.vue

@@ -37,7 +37,9 @@
       timeFunction(){
         let self = this;
         this.laboratoryWsBigViewGetTimeData();
-        this.timer = window.setInterval(self.laboratoryWsBigViewGetTimeData, 30000);
+        self.timer = window.setInterval(() => {
+          self.laboratoryWsBigViewGetTimeData();
+        }, 30000);
       },
       laboratoryWsBigViewGetTimeData(){
         laboratoryWsBigViewGetTimeData().then(res => {

+ 9 - 3
src/views/components/mapComponent.vue

@@ -402,7 +402,9 @@
       //通知定时器
       noticeTimerFunction(){
         const self = this;
-        self.noticeTimer = window.setInterval(checkNoticeUpdates, this.noticeSwitchTime);
+        self.noticeTimer = window.setInterval(() => {
+          checkNoticeUpdates();
+        }, this.noticeSwitchTime);
         async function checkNoticeUpdates() {
           //没有报警
           if(!self.alarmType){
@@ -439,7 +441,9 @@
       //房间切换定时器
       subTimerFunction(){
         const self = this;
-        self.subTimer = window.setInterval(checkSubUpdates, this.subSwitchTime);
+        self.subTimer = window.setInterval(() => {
+          checkSubUpdates();
+        }, this.subSwitchTime);
         async function checkSubUpdates() {
           //没有报警 且 没有展示通知
           if(!self.alarmType && !self.noticeType && !self.subInfoType){
@@ -456,7 +460,9 @@
       //预案查询定时器
       alarmTimerFunction(){
         const self = this;
-        self.alarmTimer = window.setInterval(checkAlarmUpdates, this.alarmSwitchTime);
+        self.alarmTimer = window.setInterval(() => {
+          checkAlarmUpdates();
+        }, this.alarmSwitchTime);
         async function checkAlarmUpdates() {
           self.laboratoryBigViewSelectTriggerInfoGet();
         }

+ 3 - 1
src/views/components/overviewComponent.vue

@@ -71,7 +71,9 @@
       //设施状态概览定时器
       overviewTimerFunction(){
         const self = this;
-        self.overviewTimer = window.setInterval(overviewUpdates, this.overviewSwitchTime);
+        self.overviewTimer = window.setInterval(() => {
+          overviewUpdates();
+        }, this.overviewSwitchTime);
         async function overviewUpdates() {
           self.dashboardsFacilitiesStatusOverview();
         }

+ 3 - 1
src/views/components/usageRateComponent.vue

@@ -101,7 +101,9 @@
       //设施状态概览定时器
       overviewTimerFunction(){
         const self = this;
-        self.usageTimer = window.setInterval(usageUpdates, this.usageSwitchTime);
+        self.usageTimer = window.setInterval(() => {
+          usageUpdates();
+        }, this.usageSwitchTime);
         async function usageUpdates() {
           self.dashboardsFacilitiesUsageStats();
         }