From 29a37b2f549da78c655abf8897f6ae98c0de4109 Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期三, 23 十月 2024 15:43:22 +0800
Subject: [PATCH] 完成创建工单时对工单进行白名单判断

---
 src/views/screen/components/screen-data/components/data-hola.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/screen/components/screen-data/components/data-hola.vue b/src/views/screen/components/screen-data/components/data-hola.vue
index da906ed..ba9a0cc 100644
--- a/src/views/screen/components/screen-data/components/data-hola.vue
+++ b/src/views/screen/components/screen-data/components/data-hola.vue
@@ -11,7 +11,7 @@
   name: 'DataHola',
   props: {
     centerValue: {
-      type: [Number, String],
+      type: Number,
       default: 0
     },
     holaColor: {
@@ -120,6 +120,12 @@
   mounted() {
     myChart = echarts.init(this.$refs['chartRef']);
     this.initChart();
+  },
+  watch: {
+    centerValue() {
+      myChart = echarts.init(this.$refs['chartRef']);
+      this.initChart();
+    }
   }
 }
 </script>

--
Gitblit v1.8.0