From c02c01c9cf6a2639a076943c01bf37ea345bf8e1 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 23 十一月 2023 18:13:20 +0800
Subject: [PATCH] 1.修改了数据风险排名中的按钮加载结束逻辑

---
 src/utils/chartFunction/lineChart.js |   36 ++++++++++++++++--------------------
 1 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/src/utils/chartFunction/lineChart.js b/src/utils/chartFunction/lineChart.js
index 39b7146..e43ead8 100644
--- a/src/utils/chartFunction/lineChart.js
+++ b/src/utils/chartFunction/lineChart.js
@@ -1,5 +1,4 @@
 import dayjs from 'dayjs'
-import { time } from 'echarts'
 
 export default {
   // 鑾峰彇璇ユ湀浠藉ぉ鏁�
@@ -47,9 +46,10 @@
       if (tempData) {
         xData.push(tempData.lst)
         yAvg.push(tempData.dayAvg)
-        yOnline.push(this.deleteLastStr(tempData.dayOnline))
-        yValid.push(this.deleteLastStr(tempData.dayValid))
-        yExceed.push(this.deleteLastStr(tempData.dayExceeding))
+
+        yOnline.push(tempData.dayOnline)
+        yValid.push(tempData.dayValid)
+        yExceed.push(tempData.dayExceeding)
         continue
       }
 
@@ -119,7 +119,7 @@
    * @param锛� 2缁存暟缁�
    * @returns锛�
    */
-  getMarkArea(timeInteval,describe='鏃犳暟鎹�') {
+  getMarkArea(timeInteval, describe = '鏃犳暟鎹�') {
     let result = []
     for (let i = 0; i < timeInteval.length; i++) {
       let temp = []
@@ -166,48 +166,44 @@
     return valueStr.slice(0, -1)
   },
 
-
   /**
    * 鎸囧畾鏃堕棿鍖洪棿鐨勭嚎娈靛彉棰滆壊
-   * @param锛� 
+   * @param锛�
    * @returns锛�
    */
-  getLineColor(timeInteval,xList){
+  getLineColor(timeInteval, xList) {
     let result = []
 
     // 鍙彇
     let temp = []
-    for (let i = 0; i < timeInteval.length; i++){
-      if(timeInteval[i][0]!=timeInteval[i][1]){
+    for (let i = 0; i < timeInteval.length; i++) {
+      if (timeInteval[i][0] != timeInteval[i][1]) {
         temp.push(timeInteval[i])
       }
-    } 
+    }
 
     // 鏃犺繛缁殑鏁版嵁 鐩存帴閫�鍑�
-    if(temp.length == 0){
+    if (temp.length == 0) {
       return []
     }
 
     // 鍙栫涓�涓繛缁殑鏃舵
-    result.push(
-      [
+    result.push([
       {
         lte: temp[0][0],
         color: 'green'
       },
       {
         gt: temp[0][0],
-        lte:temp[0][1],
+        lte: temp[0][1],
         color: 'red'
       },
       {
         gt: temp[0][1],
-        lte:xList[xList.length-1],
+        lte: xList[xList.length - 1],
         color: 'green'
       }
-    ]
-    )
+    ])
     return result[0]
-  },
-
+  }
 }

--
Gitblit v1.9.3