sunzehao 1 месяц назад
Родитель
Сommit
a3c8a88f6d

+ 1 - 1
src/utils/nxfCodeStyle.js

@@ -37,7 +37,7 @@ const chartColors = [
     "#E17E23",
     "#C7393E",
     "#D237D4",
-    "#FFFFFF",
+    "#CCCCCC",
     "#05BB4C",
     "#050BBB",
     "#30A4AC",

+ 8 - 1
src/views/IntegratedAlarm/reliability/partsTemperatureAnalyse/index2.vue

@@ -227,11 +227,18 @@ export default {
         "需要登录",
       ],
       pagenum: 1,
+      timer: null
     };
   },
   mounted() {
     // this.init();
-    this.getData()
+    this.timer = setInterval(() => {
+      this.getData()
+    }, 10000);
+  },
+  unmounted() {
+    clearInterval(this.timer);
+    this.timer = null;
   },
   methods: {
     cheshi() {