From bb1a2a686cce84a9784fcd1e0076e41c41594116 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 02 Apr 2025 11:52:15 +0800
Subject: [PATCH] feat: 机巢聚合60%

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

diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index 099d912..41fcb4f 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -1,10 +1,30 @@
 import request from '@/axios';
 
-// 机巢列表
-export const getDeviceInfoNum = () => {
+// 机巢统计
+export const getDeviceInfoNum = (params) => {
   return request({
-    url: '/manage/api/v1/devices/getDeviceInfoNum',
+    url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
+    method: 'get',
+    params,
+  });
+};
+// 机巢列表
+export const selectDevicePage = ({ nickname,is_execute, ...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,
+      is_execute,
+    },
+    params,
+  });
+};
+// 机巢数据
+export const getFlightStatistics = (dockSn) => {
+  return request({
+    url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
+    method: 'get',
     params: {},
   });
-};
\ No newline at end of file
+};

--
Gitblit v1.9.3