From 858b8f2b41f272855c50d11960bceadc3c62380f Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 10 Apr 2025 09:26:32 +0800
Subject: [PATCH] feat: 增加任务时间段和当天判断

---
 src/api/home/task.js |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/src/api/home/task.js b/src/api/home/task.js
index 171409c..83a197c 100644
--- a/src/api/home/task.js
+++ b/src/api/home/task.js
@@ -76,4 +76,42 @@
 	})
 }
 
+// 获取航线列表
+export const getWaylineList = (params) => {
+	return request({
+		url: `/drone-device-core/wayline/api/v1/workspaces/getWaylineFileListByArea`,
+		method: 'get',
+		params
+	})
+}
+
+// 获取可飞行机巢列表
+export const getFlyingNestBy = (data,page) => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/devices/getFlyingNestBy?current=${page.page}&size=${page.size}`,
+		method: 'post',
+		data: data,
+	})
+}
+
+// 机场发布功能
+export const createTask = (data) => {
+	return request({
+		url: `/drone-device-core/wayline/waylineJobInfo/createTask`,
+		method: 'post',
+		data,
+	})
+}
+
+// 面状航线
+export const getWaylineByArea = (data) => {
+	return request({
+		url: `/drone-device-core/wayline/api/v1/workspaces/getWaylineByArea`,
+		method: 'post',
+		data,
+	})
+}
+
+
+
 

--
Gitblit v1.9.3