From dd2ff26f240bcb79de082f1de4eaf6d2c973b28e Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 20 十月 2025 08:38:01 +0800
Subject: [PATCH] 2025.10.18 修改嫉妒报告生成逻辑
---
src/api/deviceApi.js | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/api/deviceApi.js b/src/api/deviceApi.js
index b2a8390..06432cb 100644
--- a/src/api/deviceApi.js
+++ b/src/api/deviceApi.js
@@ -4,18 +4,17 @@
* 璧拌埅璁惧鐩稿叧鎺ュ彛API
*/
export default {
- fethchDevice({ type, page, pageSize }) {
- let params = `page=${page}&perPage=${pageSize}`;
- params += type ? `&type=${type}` : '';
- return $http.get(`air/device/type?${params}`).then((res) => res.data);
+ fethchDevice({ type }) {
+ let params = type ? `?&type=${type}` : '';
+ return $http.get(`air/device/type${params}`).then((res) => res.data);
},
putNewDevice(device) {
- return $http.post(`air/device/create`, device).then((res) => res.data);
+ return $http.put(`air/device/create`, device).then((res) => res.data);
},
deleteDevice(deviceCode) {
let params = `deviceCode=${deviceCode}`;
- return $http.post(`air/device/delete?${params}`).then((res) => res.data);
+ return $http.delete(`air/device/delete?${params}`).then((res) => res.data);
}
};
--
Gitblit v1.9.3