From 43c2f5b94d87263cf189f7ba51c8dc6c5e6144c8 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 23 十一月 2023 08:52:22 +0800
Subject: [PATCH] 1.修改了雷达图传入的数据 2.数据指标排名一进来按日均值倒序排列 3.修改了一些局部的样式

---
 src/api/historyApi.js |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/src/api/historyApi.js b/src/api/historyApi.js
index 30b5bc3..a699d02 100644
--- a/src/api/historyApi.js
+++ b/src/api/historyApi.js
@@ -1,5 +1,28 @@
-import { $http } from './index';
+import { $http } from './index'
 
 export default {
+  // 鏌ヨ鍘嗗彶鏁版嵁 涓嶅垎椤�
+  queryHistoryData({ siteName, mnCode, beginTime, endTime, scenarioType }) {
+    const params = {
+      beginTime: beginTime,
+      endTime: endTime
+    }
+    if (siteName) {
+      params.siteName = siteName
+    }
+    if (mnCode) {
+      params.mnCode = mnCode
+    }
+    if (scenarioType) {
+      params.scenarioType = scenarioType
+    }
+
+    return $http.get('/dust/historyall', {
+      params: params
+    })
+  },
+
   
-};
+
+
+}

--
Gitblit v1.9.3