From 5efebb555efd984f3dd35de83e465cd53aaf8175 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 26 四月 2024 10:34:51 +0800
Subject: [PATCH] 完善左上角切换监测因子后,折线图联动切换功能

---
 componet/chartutil.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/componet/chartutil.js b/componet/chartutil.js
index 142f3eb..c596b20 100644
--- a/componet/chartutil.js
+++ b/componet/chartutil.js
@@ -285,7 +285,7 @@
     const progress = i / (this._xAxis.length - this._size + 1);
 
     for (const iterator of this._series) {
-      if (iterator.name == factorName) {
+      // if (iterator.name == factorName || (iterator.name == 'TVOC' || factorName == 'VOC')) {
         iterator.markLine = {
           symbol: 'none',
           data: [
@@ -301,9 +301,9 @@
             },
           ],
         };
-      } else {
-        iterator.markLine = undefined;
-      }
+      // } else {
+      //   iterator.markLine = undefined;
+      // }
     }
     this.lineChartOnPage2({
       chart,

--
Gitblit v1.9.3