From 76ab72d2d4f443060448e20bb74230a8040b85f5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 05 十一月 2024 11:00:33 +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