From a0b614c8c6c831a232838c66d14a9dbc744d5ff2 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 12 十一月 2024 16:25:45 +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