From 2f78c4aa959b742de3d5883c1dfe8a02a0c874b4 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 02 四月 2026 15:42:55 +0800
Subject: [PATCH] fix: 首页趋势换成周、月、年
---
src/api/viewIndex.js | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 23e74fe..6dd7a1a 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -10,6 +10,15 @@
});
};
+// 棣栭〉-璁″垝涓庣敓浜ц秼鍔�
+export const planTrends = (params) => {
+ return request({
+ url: "/home/planTrends",
+ method: "get",
+ params,
+ });
+};
+
// 璐ㄩ噺缁熻
export const qualityInspectionStatistics = (params) => {
return request({
@@ -110,22 +119,14 @@
};
// 宸ュ崟鎵ц鏁堢巼鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
-// export const workOrderEfficiencyAnalysis = (params) => {
-// return request({
-// url: "/home/workOrderEfficiencyAnalysis",
-// method: "get",
-// params,
-// });
-// };
-
-// 鐢熶骇鏍哥畻鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
-export const productionAccountingAnalysis = (params) => {
+export const workOrderEfficiencyAnalysis = (params) => {
return request({
- url: "/home/productionAccountingAnalysis",
+ url: "/home/workOrderEfficiencyAnalysis",
method: "get",
params,
});
};
+
// 鐢熶骇鏍哥畻鍒嗘瀽
export const productionAccountingAnalysis = (query) => {
return request({
@@ -334,3 +335,10 @@
method: "get",
});
};
+// 绠$悊缁熻
+export const getManageStatistics = () => {
+ return request({
+ url: "/home/manage",
+ method: "get",
+ });
+};
--
Gitblit v1.9.3