wudingsheng 2 mesi fa
parent
commit
71f6c5f2d5

+ 7 - 0
imcs-ui/src/views/zuihou/chfLargeScreen/twoDatasModel/component/machine.vue

@@ -76,9 +76,16 @@ export default {
     this.alarm(this.progress);
     //this.alarm(99);
   },
+  watch:{
+    progress(newValue) {
+      // 监听 progress 的变化并更新图表
+      this.alarm(newValue);
+    },
+  },
   methods: {
     //水球图
     alarm(value,) {
+      console.log("value:"+value)
       value = value == 0 ? 0 : value;
       this.myChartThree = echarts.init(
         this.$refs.echarts