Эх сурвалжийг харах

* 更改能源管理大屏的使用的模型

chen.cheng 1 сар өмнө
parent
commit
707e22d26f

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/device/left.vue

@@ -111,6 +111,13 @@ export default {
   },
   mounted() {
     this.getDeviceData()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getDeviceData()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     //字符串转数组 总数

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/device/right.vue

@@ -93,6 +93,13 @@ export default {
   },
   mounted() {
     this.getPieData()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getPieData()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     handleSizeChange(size) {

+ 8 - 0
ems-ui-cloud/src/views/largeScreen/home/left.vue

@@ -188,6 +188,14 @@ export default {
   mounted() {
     this.getStorageData()
     this.getPageDatas()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getStorageData()
+      this.getPageDatas()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     dateTabClick(item) {

+ 8 - 1
ems-ui-cloud/src/views/largeScreen/home/right.vue

@@ -71,7 +71,7 @@
       <vue-seamless-scroll :data="listData" class="seamless-warp" :class-option="classOption">
         <div class="seamless-item" v-for="(item, index) in listData" :key="index">
           <div>{{ item.alarmMsg }}</div>
-          <div>{{ item.objName}}</div>
+          <div>{{ item.objName }}</div>
           <div>{{ item.alarmTime }}</div>
         </div>
       </vue-seamless-scroll>
@@ -191,6 +191,13 @@ export default {
   },
   mounted() {
     this.getPageDatas()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getPageDatas()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     getPageDatas() {

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/net/left.vue

@@ -234,6 +234,13 @@ export default {
   },
   mounted() {
     this.getNetData()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getNetData()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     getDatesOfLastTenDays() {

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/net/right.vue

@@ -269,6 +269,13 @@ export default {
   },
   mounted() {
     this.getNetData()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getNetData()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     getNetData() {

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/soc/left.vue

@@ -196,6 +196,13 @@ export default {
   },
   mounted() {
     this.qryPageDatas()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.qryPageDatas()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     getDatesOfLastTenDays() {

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/soc/right.vue

@@ -156,6 +156,13 @@ export default {
   },
   mounted() {
     this.getSocData()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getSocData()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     async getDeviceElecMeter() {

+ 7 - 0
ems-ui-cloud/src/views/largeScreen/source/left.vue

@@ -229,6 +229,13 @@ export default {
   },
   mounted() {
     this.qryPageDatas()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.qryPageDatas()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     qryPageDatas() {

+ 9 - 2
ems-ui-cloud/src/views/largeScreen/source/pv-road-right.vue

@@ -12,7 +12,7 @@
       <vue-seamless-scroll :data="listData" class="seamless-warp" :class-option="classOption">
         <div class="seamless-item" v-for="(item, index) in listData" :key="index">
           <div>{{ item.alarmMsg }}</div>
-          <div>{{ item.objName}}</div>
+          <div>{{ item.objName }}</div>
           <div>{{ item.alarmTime }}</div>
         </div>
       </vue-seamless-scroll>
@@ -27,7 +27,7 @@ import {array2Map} from '@/utils';
 import * as echarts from 'echarts'
 import {mapState} from 'vuex';
 import {DateTool} from "@/utils/DateTool";
-import {ecoDateRange, predictionProdDateRange} from "@/api/screen";
+import {predictionProdDateRange} from "@/api/screen";
 import {listAlarmInfo} from "@/api/alarm/alarm-info";
 import {ALARM_STATE} from "@/enums/alarm";
 import {ApiCode} from "@/api/apiEmums";
@@ -136,6 +136,13 @@ export default {
   },
   mounted() {
     this.getDatas()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getDatas()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     getDatas() {

+ 8 - 1
ems-ui-cloud/src/views/largeScreen/source/right.vue

@@ -9,7 +9,7 @@
       <vue-seamless-scroll :data="listData" class="seamless-warp" :class-option="classOption">
         <div class="seamless-item" v-for="(item, index) in listData" :key="index">
           <div>{{ item.alarmMsg }}</div>
-          <div>{{ item.objName}}</div>
+          <div>{{ item.objName }}</div>
           <div>{{ item.alarmTime }}</div>
         </div>
       </vue-seamless-scroll>
@@ -154,6 +154,13 @@ export default {
   },
   mounted() {
     this.getDatas()
+    this.timer && clearInterval(this.timer)
+    this.timer = setInterval(() => {
+      this.getDatas()
+    }, 60000 * 3)
+  },
+  beforeDestroy() {
+    this.timer && clearInterval(this.timer)
   },
   methods: {
     getDatas() {