From 5131abc9cc51aa5e6c57b8f6ee897f6778637814 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 14 一月 2026 15:32:45 +0800
Subject: [PATCH] fix: 参考中天的[检测标准绑定]页面,再新增一个分表,表示检测标准汇总表应用于哪些产品,是一对多的关系,这个维护好以后,后面的来料检,过程检,出厂检可以根据对应检验类型和产品id去获取具体的检测参数信息

---
 src/components/Echarts/echarts.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/components/Echarts/echarts.vue b/src/components/Echarts/echarts.vue
index 29abba8..a386bb7 100644
--- a/src/components/Echarts/echarts.vue
+++ b/src/components/Echarts/echarts.vue
@@ -76,6 +76,10 @@
     type: Array,
     default: () => []
   },
+  visualMap: {
+    type: Object,
+    default: () => ({})
+  },
 	option: {
 		type: Object,
 		default: () => ({})
@@ -121,6 +125,7 @@
     grid: props.grid,
     legend: props.legend,
     tooltip: props.tooltip,
+    visualMap: Object.keys(props.visualMap).length ? props.visualMap : undefined,
   }
   
   chartInstance.clear()
@@ -149,7 +154,7 @@
 
 // Watch all reactive props that affect the chart
 watch(
-    () => [props.xAxis, props.series, props.legend, props.tooltip],
+    () => [props.xAxis, props.yAxis, props.series, props.legend, props.tooltip, props.visualMap],
     () => {
       if (chartInstance) {
         renderChart()

--
Gitblit v1.9.3