From a10b7cf22ded46329e965e5ffea4c840dfa9abfa Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Tue, 01 Apr 2025 13:31:30 +0800
Subject: [PATCH] 增加巡检列为列表

---
 src/api/home/machineNest.js |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index 099d912..8eff19d 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -1,10 +1,29 @@
 import request from '@/axios';
 
-// 机巢列表
+// 机巢统计
 export const getDeviceInfoNum = () => {
   return request({
-    url: '/manage/api/v1/devices/getDeviceInfoNum',
-    method: 'post',
+    url: 'drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
+    method: 'get',
     params: {},
   });
-};
\ No newline at end of file
+};
+// 机巢列表
+export const selectDevicePage = (params) => {
+  return request({
+    url: `drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}&current=${params.current}&size=${params.size}`,
+    method: 'post',
+    data: {
+      nickname: params.nickname,
+      is_execute: params.is_execute,
+    },
+  });
+};
+// 机巢数据
+export const getFlightStatistics = (dockSn) => {
+  return request({
+    url: `drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
+    method: 'get',
+    params: {},
+  });
+};

--
Gitblit v1.9.3