From 72085226bc9f82a9129b8fbcd17fab1edf9ef270 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 05 一月 2024 15:08:19 +0800
Subject: [PATCH] 1. 修复飞行巡检模块中有效率异常详情弹出框无法正常显示的bug; 2.优化各异常类型的折线图配置项生成逻辑;

---
 src/api/exceptionApi.js |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/api/exceptionApi.js b/src/api/exceptionApi.js
index 18133e5..37dcea9 100644
--- a/src/api/exceptionApi.js
+++ b/src/api/exceptionApi.js
@@ -16,7 +16,11 @@
         endTime: endTime,
         type:type
       }
-    })
+    }).then(res=>{ return res.data.data.sort((a,b)=>{
+      const dateA = new Date(a.lst)
+      const dateB = new Date(b.lst)
+      return dateA - dateB
+    })})
   },
 
   // 鏍规嵁鏈堜唤鍜岀被鍨嬫煡鎵惧垎鏋愭暟鎹�
@@ -39,12 +43,6 @@
       }
     })
   },
-
-
-
-
-
-
 
   /**
    *

--
Gitblit v1.9.3