From dca26bac2c05fcfc9c7ed477b32a7fab1295a688 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 21 十月 2025 17:48:10 +0800
Subject: [PATCH] 2025.10.21 修改嫉妒报告生成逻辑

---
 src/components/chart/RealTimeLineChart.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/components/chart/RealTimeLineChart.vue b/src/components/chart/RealTimeLineChart.vue
index cc72183..5ed46c8 100644
--- a/src/components/chart/RealTimeLineChart.vue
+++ b/src/components/chart/RealTimeLineChart.vue
@@ -9,7 +9,7 @@
 </template>
 <script>
 import * as echarts from 'echarts';
-import { smallLineOption } from '@/utils/chart/chart-option';
+import { smallLineOption, baseVisualMap } from '@/utils/chart/chart-option';
 
 export default {
   props: {
@@ -31,7 +31,11 @@
     yMinInterval: {
       type: Number,
       default: 1
-    }
+    },
+    // 寮傚父鏁版嵁绱㈠紩鑼冨洿闆嗗悎锛孾[i1,i2], [i3,i4],...]
+    exceptionIndexArr: Array,
+    // 鑷畾涔塝杞磋寖鍥�
+    customRange: Boolean
   },
   data() {
     return {
@@ -52,6 +56,10 @@
       const { xAxis, series } = this.modelValue;
       if (!this.option) {
         this.option = smallLineOption(xAxis, series, this.yMinInterval);
+        if (this.exceptionIndexArr) {
+          const visualMap = baseVisualMap(this.exceptionIndexArr);
+          this.option.visualMap = visualMap;
+        }
       } else {
         this.option.xAxis[0].data = xAxis;
         this.option.series = series;

--
Gitblit v1.9.3