From d4d34a9b730ac328068f936598d4138ac2635e57 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期四, 15 十月 2026 11:21:08 +0800
Subject: [PATCH] 质量监督计划:新增计划下发(列表下发状态列与下发按钮,仅已批准未下发的可下发),导出弹窗改卡片式并拦截导出错误响应避免下载损坏文件,日常监督检查记录单按纸质表重做(受监督人多选、监督员下拉、监督内容多选、监督记录、存在问题、整改意见),各表单人员列表改为全实验室不按部门筛选;方法验证:表单新增数据处理、质量控制方法、方法结果验证、验证结论及评审、审批意见字段并新增详情入口,迁移原标准方法变更的设备、检测记录、校准文件、工作证等查看组件,标准方法变更模块下线;设备档案、设备管理编辑弹窗改版为图片与基本信息左右布局、表单行式排列
---
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