|
@@ -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
|