From 61e6956be147e1e84e7104f16dd47e9f87f20dfd Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 18 Apr 2025 10:57:32 +0800
Subject: [PATCH] feat: 控制台显示一些信息

---
 src/api/home/index.js |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/api/home/index.js b/src/api/home/index.js
index da21b03..b4b3556 100644
--- a/src/api/home/index.js
+++ b/src/api/home/index.js
@@ -76,7 +76,7 @@
 // 当前巡检任务列表
 export const getTodayJob = data => {
 	return request({
-		url: '/drone-device-core/wayline/waylineJobInfo/todayJob',
+		url: `/drone-device-core/wayline/waylineJobInfo/todayJob?current=${data.current}&size=${data.size}`,
 		method: 'post',
 		data,
 	})
@@ -107,3 +107,18 @@
 		params: { code },
 	})
 }
+// 立即返航
+export const flyByJobId = jobId => {
+	return request({
+		url: '/drone-device-core/wayline/api/v1/workspaces/flyByJobId?jobId=' + jobId,
+		method: 'post',
+	})
+}
+// 再次执行
+export const returnHome = sn => {
+	return request({
+		url: `/drone-device-core/dp/home/${sn}/drc/returnHome`,
+		method: 'post',
+	})
+}
+

--
Gitblit v1.9.3