From 9db53388d92d63ff029f932fb8a96e190f5dcf3f Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Sat, 01 Mar 2025 17:48:45 +0800
Subject: [PATCH] 航线任务页面
---
src/api/device/device.js | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/src/api/device/device.js b/src/api/device/device.js
index 548913a..f21e186 100644
--- a/src/api/device/device.js
+++ b/src/api/device/device.js
@@ -38,6 +38,14 @@
});
};
+export const operatePasswordUpdate = row => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/operatePasswordUpdate',
+ method: 'post',
+ data: row,
+ });
+};
+
export const getDetail = id => {
return request({
url: '/drone-yw/manage/api/v1/devices/getDetail',
@@ -48,6 +56,15 @@
});
};
+export const getOperatePassword = id => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/getFlyOperatePassword',
+ method: 'get',
+ params: {
+ id,
+ },
+ });
+};
export const getDeviceUpgradeInfo = (params) => {
return request({
@@ -64,7 +81,6 @@
data: row,
});
};
-
export const getDeviceFirmwareList = (current, size, params) => {
return request({
@@ -103,4 +119,18 @@
ids
}
});
+};
+
+export const getDevices = (workspace_id,device_sn) => {
+ return request({
+ url: `/drone-yw/manage/api/v1/devices/${workspace_id}/devices/${device_sn}`,
+ method: 'get',
+ });
+};
+
+export const getAirportList = () => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/getAirportList',
+ method: 'get',
+ });
};
\ No newline at end of file
--
Gitblit v1.9.3