From b8b2820d1a0a55a5555434a3ec95f8bbec1db06d Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 14 十二月 2023 15:22:54 +0800
Subject: [PATCH] 1.飞行巡检和审核辅助页面中的对话框写成组件 2.增加了数据请求和异常分析配置参数的可视化页面 3.修改了站点输入框,使能够模糊匹配

---
 src/utils/common.js |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/utils/common.js b/src/utils/common.js
index 9917e01..a4bde17 100644
--- a/src/utils/common.js
+++ b/src/utils/common.js
@@ -115,5 +115,16 @@
     return Math.round(v * 100, 2) + '%'
   }
 
-  return { isExceedOneMonth, cmpp, exportToExcel, descFiftyTime, percentFormatter }
+   /**
+     * 鎵惧嚭瀛楃涓叉暟瀛楃殑鏈�澶у��
+     * @param锛� 
+     * @returns锛�
+     */
+   function findMaxValue(values) {
+    const numbers = values.map((value) => parseFloat(value))
+    const max = Math.max(...numbers)
+    return max.toString()
+  }
+  
+  return { isExceedOneMonth, cmpp, exportToExcel, descFiftyTime, percentFormatter,findMaxValue }
 }

--
Gitblit v1.9.3