From cc890f987b770e5a73f5ef12d41b25f6bb448fcd Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 23 十一月 2023 16:37:45 +0800
Subject: [PATCH] 1.增加了风险模型跳转逻辑 2.修改了风险模型页面部分逻辑

---
 src/utils/chartFunction/exceptionOption.js |   36 ++++++++++++++++++++++++++++++------
 1 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/src/utils/chartFunction/exceptionOption.js b/src/utils/chartFunction/exceptionOption.js
index dde1fd9..65ff4c5 100644
--- a/src/utils/chartFunction/exceptionOption.js
+++ b/src/utils/chartFunction/exceptionOption.js
@@ -17,6 +17,7 @@
     endIndex,
     exceptionName,
     areaObj,
+    lineColor,
     exceptionType
   ) {
     switch (exceptionType) {
@@ -65,7 +66,8 @@
           exceptionName
         )
       case '8':
-        return this.validOption(xData, yData, exceptionName, areaObj)
+        console.log('浼犺繘鏉�',lineColor)
+        return this.validOption(xData, yData, exceptionName, areaObj,lineColor)
     }
   },
 
@@ -564,7 +566,7 @@
    * @param锛�
    * @returns锛�
    */
-  validOption(xData, yData, exceptionName, areaObj) {
+  validOption(xData, yData, exceptionName, areaObj,lineColor) {
     return {
       title: {
         text: exceptionName,
@@ -577,9 +579,6 @@
       toolbox: {
         // 宸ュ叿鏍�
         feature: {
-          // dataZoom: {
-          //   yAxisIndex: 'none'
-          // },
           // 淇濆瓨涓哄浘鐗�
           saveAsImage: {}
         }
@@ -622,7 +621,32 @@
             data: areaObj
           }
         }
-      ]
+      ],
+      // 鎸囧畾鏃堕棿鍖洪棿鐨勭嚎娈靛彉棰滆壊
+      // visualMap: {
+      //   show: false,
+      //   dimension: 0,
+
+      //   // pieces: [
+      //   //   {
+      //   //     lte: beginIndex,
+      //   //     color: 'green'
+      //   //   },
+      //   //   {
+      //   //     gt: beginIndex,
+      //   //     lte: endIndex,
+      //   //     color: 'red'
+      //   //   },
+      //   //   {
+      //   //     gt: endIndex,
+      //   //     lte: xData.length - 1,
+      //   //     color: 'green'
+      //   //   }
+      //   // ],
+
+      //   pieces: lineColor
+
+      // }
     }
   }
 }

--
Gitblit v1.9.3