From cc1aacf766bc902001f460fdfce20a9ec2ea097d Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 09 Apr 2025 17:56:11 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/command-center-dashboard

---
 src/api/home/machineNest.js |   84 +++++++++++++++++++++++++++++-------------
 1 files changed, 58 insertions(+), 26 deletions(-)

diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index 41fcb4f..de87e64 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -1,30 +1,62 @@
-import request from '@/axios';
+import request from '@/axios'
 
 // 机巢统计
-export const getDeviceInfoNum = (params) => {
-  return request({
-    url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
-    method: 'get',
-    params,
-  });
-};
+export const getDeviceInfoNum = params => {
+	return request({
+		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 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,
+		},
+	})
+}
 // 机巢数据
-export const getFlightStatistics = (dockSn) => {
-  return request({
-    url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
-    method: 'get',
-    params: {},
-  });
-};
+export const getFlightStatistics = dockSn => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
+		method: 'get',
+		params: {},
+	})
+}
+// 机巢直播/无人机直播 均可使用
+export const liveStart = deviceSn => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/live/streams/liveStart?deviceSn=${deviceSn}`,
+		method: 'post',
+		data: {},
+		headers: {
+			areaCode: '',
+		},
+	})
+}
+// 单个机巢获取机巢详情
+export const getDeviceDetail = deviceSn => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/devices/getDeviceDetail?deviceSn=${deviceSn}`,
+		method: 'get',
+		params: {},
+	})
+}
+
+
+
+// 设备-事件列表
+export const getDeviceEventList = (data,params) => {
+	return request({
+		url: `/drone-device-core/jobEvent/eventPage`,
+		method: 'post',
+		data,
+		params
+	})
+}
+
+

--
Gitblit v1.9.3