From 8217c63d1610a9d89419c69947beb4fb3bb7c7e4 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 20 五月 2026 17:03:05 +0800
Subject: [PATCH] style(frontend): 格式化代码缩进并增强API调用安全性
---
src/api/viewIndex.js | 56 +++++++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 45 insertions(+), 11 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 23e74fe..89f43b8 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -110,22 +110,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 +326,45 @@
method: "get",
});
};
+
+export const productionOverview = () => {
+ return request({
+ url: "/home/productionOverview",
+ method: "get",
+ headers: {
+ handleAuthError: false,
+ },
+ });
+};
+
+export const productionRealtimeBoard = () => {
+ return request({
+ url: "/home/productionRealtimeBoard",
+ method: "get",
+ headers: {
+ handleAuthError: false,
+ },
+ });
+};
+
+export const productionOrderProgress = (params) => {
+ return request({
+ url: "/home/productionOrderProgress",
+ method: "get",
+ params,
+ headers: {
+ handleAuthError: false,
+ },
+ });
+};
+
+export const todayProductionPlan = (params) => {
+ return request({
+ url: "/home/todayProductionPlan",
+ method: "get",
+ params,
+ headers: {
+ handleAuthError: false,
+ },
+ });
+};
--
Gitblit v1.9.3