From 5d9a3141d4b3677bf8155da16b435d2a8818793b Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 23 十月 2026 17:44:08 +0800
Subject: [PATCH] feat(report): 引入 SuperDoc 在线编辑器实现报告审核功能 支持审核页面直接编辑报告 - 新增检测报告与检验报告切换功能,切换时自动保存当前编辑内容 - 检测时间从单日选择改为日期范围选择,兼容历史单日数据回显 - 标准模型新增标准要求值字段,复制模板时携带完整表单数据 - 产品委托单下载报告按钮增加可用性状态控制
---
src/components/echarts/echarts.vue | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/src/components/echarts/echarts.vue b/src/components/echarts/echarts.vue
index 4b85446..6caf970 100644
--- a/src/components/echarts/echarts.vue
+++ b/src/components/echarts/echarts.vue
@@ -210,21 +210,18 @@
},
generateChart(option) {
- // 閰嶇疆鎶樼嚎鍥惧拰鏌辩姸鍥剧殑鏍峰紡
+ // 鏍峰紡鍙姞鍦ㄥ壇鏈笂锛屼笉鑳藉洖鍐� this.series锛歴eries 鏄埗椤甸潰鐨勫搷搴斿紡鏁版嵁锛�
+ // 鍥炲啓浼氳Е鍙戞湰缁勪欢 series 鐨� deep watcher 鍐嶆 renderChart锛屾瘡娆$敓鎴愭柊瀵硅薄姘镐笉鏀舵暃锛岄〉闈㈡寰幆鍗℃
if (option.series && option.series.length > 0) {
- option.series.forEach((s, index) => {
+ option.series = option.series.map((s, index) => {
if (s.type === 'line') {
- s.itemStyle = {
- color: this.lineColors[index] || this.lineColors[0]
- }
- s.lineStyle = {
- color: this.lineColors[index] || this.lineColors[0]
- }
+ const color = this.lineColors[index] || this.lineColors[0]
+ return { ...s, itemStyle: { color }, lineStyle: { color } }
} else if (s.type === 'bar') {
- s.itemStyle = {
- color: this.barColors[index] || this.barColors[0]
- }
+ const color = this.barColors[index] || this.barColors[0]
+ return { ...s, itemStyle: { color } }
}
+ return s
})
}
this.chartInstance.clear()
--
Gitblit v1.9.3