From b9d0c0b5aa43658da4b66e4d66c9a9ede0b1fa08 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期五, 06 六月 2025 10:05:33 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/model/sche/suggest/suggestSnapshot.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/model/sche/suggest/suggestSnapshot.vue b/src/views/model/sche/suggest/suggestSnapshot.vue
index f64263c..f23ae2e 100644
--- a/src/views/model/sche/suggest/suggestSnapshot.vue
+++ b/src/views/model/sche/suggest/suggestSnapshot.vue
@@ -40,19 +40,20 @@
   const loading = ref(false)
 
 
-  const open = async (id: string) => {
+  const open = async (suggestId: string) => {
     visible.value = true
-    await getDataList(id)
+    await getDataList(suggestId)
   }
 
   defineExpose({ open })
 
   /** 获取数据列表 */
-  const getDataList = async (id: string) => {
+  const getDataList = async (suggestId: string) => {
     try {
-      const res = await suggestSnapshotApi.getList(id)
+      const res = await suggestSnapshotApi.getList(suggestId)
       dataList.value = res
       selectedData.value = [] // 清空已选项
+      refreshCharts()
     } catch (error) {
       console.error(error)
       message.error('获取数据列表失败')
@@ -125,13 +126,33 @@
         series: [{
           type: 'line',
           data: chartInfo.data?.dataList || [],
-          lineStyle: { color: '#5B8FF9', width: 1 }
+          lineStyle: { color: '#5B8FF9', width: 1 },
+          markLine: {
+            silent: true,
+            symbol: ['none', 'none'],
+            lineStyle: {
+              type: 'solid',
+              width: 1,
+              color: '#95E6FF',
+            },
+            label: {
+              show: false,
+            },
+            data: [
+              {
+                xAxis: chartInfo.data?.scheduleTime || 0, // 真实数据分割线
+                lineStyle: {
+                  color: '#5DFF9E',
+                },
+              }
+            ],
+          },
         }]
       }
 
       chart.setOption(option)
       return chart
-    }).filter(Boolean) as echarts.ECharts[]
+    })
   }
 </script>
 

--
Gitblit v1.9.3