From 1ba1df678ebf07389d1727a70214bf03efd56b49 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 04 三月 2025 17:09:57 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/components/echarts/echarts.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/components/echarts/echarts.vue b/src/components/echarts/echarts.vue
index 7b8e67c..68de3a2 100644
--- a/src/components/echarts/echarts.vue
+++ b/src/components/echarts/echarts.vue
@@ -52,11 +52,15 @@
     },
     lineColors: {
       type: Array,
-      default: () => ['#00BAFF', '#3DE7C9', '#CCEDF0', '#FFB71C', '#FF5A5A']
+      default: () => ['#A4EEDA', '#86C1F4', '#91A0FC', '#F6C18B', '#F09595']
     },
     barColors: {
       type: Array,
-      default: () => ['#ff8800', '#3DE7C9', '#CCEDF0', '#FFB71C', '#FF5A5A']
+      default: () => ['#A4EEDA', '#86C1F4', '#91A0FC', '#F6C18B', '#F09595']
+    },
+    pieColors: {
+      type: Array,
+      default: () => ['#A4EEDA', '#86C1F4', '#91A0FC', '#F6C18B', '#F09595']
     },
     loadingOption: {
       type: Object,
@@ -165,6 +169,15 @@
         })
       },
     },
+    pieColors: {
+      deep: true,
+      // immediate: true,
+      handler(val) {
+        this.$nextTick(() => {
+          this.renderChart()
+        })
+      },
+    },
   },
   mounted() {
     this.chartInstance = echarts.init(this.$refs.chart)
@@ -217,7 +230,6 @@
         })
       }
       this.chartInstance.clear()
-
       // 娓叉煋鍥捐〃
       this.chartInstance.setOption(option)
     },

--
Gitblit v1.9.3