From b09ed762edb698bb12b11beb28ee7c2de76ceecc Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Tue, 14 Mar 2023 19:44:44 +0800
Subject: [PATCH] Fix the issue that the data is not displayed when the map is not loaded.
---
src/api/wayline.ts | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/api/wayline.ts b/src/api/wayline.ts
index dfbeef3..b7d4987 100644
--- a/src/api/wayline.ts
+++ b/src/api/wayline.ts
@@ -65,13 +65,18 @@
dock_name: string,
workspace_id: string,
username: string,
- execute_time: string,
+ begin_time: string,
end_time: string,
+ execute_time: string,
+ completed_time: string,
status: TaskStatus, // 任务状态
progress: number, // 执行进度
code: number, // 错误码
rth_altitude: number // 相对机场返航高度 20 - 500
out_of_control_action: OutOfControlAction // 失控动作
+ media_count: number // 媒体数量
+ uploading:boolean // 是否正在上传媒体
+ uploaded_count: number // 已上传媒体数量
}
// Get Wayline Jobs
@@ -104,3 +109,10 @@
})
return result.data
}
+
+// 媒体立即上传
+export const uploadMediaFileNow = async function (workspaceId: string, jobId: string): Promise<IWorkspaceResponse<{}>> {
+ const url = `${HTTP_PREFIX}/workspaces/${workspaceId}/jobs/${jobId}/media-highest`
+ const result = await request.post(url)
+ return result.data
+}
--
Gitblit v1.9.3