wudingsheng 6 月之前
父节点
当前提交
71f6c5f2d5
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      imcs-ui/src/views/zuihou/chfLargeScreen/twoDatasModel/component/machine.vue

+ 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