feat(drone-dock): 接通任务召唤与状态页并固定拍摄布局
接入 plane-status、tasks/create、shoot 与 shooting,保持同一任务 ID 串接、重复提交保护和只读单次刷新。拍摄任务页固定顶部参数与底部安全控制,中间状态区域适配小屏且不滚动;同步接口记录、脱敏响应及相关测试。
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"connected": true,
|
||||
"has_idle": true,
|
||||
"has_shooting": false,
|
||||
"planes": [
|
||||
{
|
||||
"battery_label": "电量 93%",
|
||||
"battery_percent": 93,
|
||||
"can_fly": true,
|
||||
"id": 58,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲 · 电量 93%",
|
||||
"task_type": null,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
{
|
||||
"battery_label": "",
|
||||
"battery_percent": null,
|
||||
"can_fly": false,
|
||||
"id": 61,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 61",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"status_text": "离线",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
},
|
||||
{
|
||||
"battery_label": "",
|
||||
"battery_percent": null,
|
||||
"can_fly": false,
|
||||
"id": 57,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试设备 57",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-57",
|
||||
"status_text": "离线",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
}
|
||||
],
|
||||
"poll_hint_ms": 5000,
|
||||
"recommend": {
|
||||
"battery_label": "电量 93%",
|
||||
"battery_percent": 93,
|
||||
"can_fly": true,
|
||||
"id": 58,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲 · 电量 93%",
|
||||
"task_type": null,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
"scenic_id": 271
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 11:06:12"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"code": 180031,
|
||||
"msg": "无法获取机场状态,暂时不可起飞",
|
||||
"data": [],
|
||||
"time": "2026-10-29 15:58:52"
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"order_flight_task": {
|
||||
"id": 6,
|
||||
"order_id": 0,
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"scenic_id": 271,
|
||||
"store_id": 38,
|
||||
"store_user_id": 51,
|
||||
"scenic_spot_id": 412,
|
||||
"air_line_id": 302,
|
||||
"plane_id": 61,
|
||||
"airport_sn": "TEST-PLANE-61",
|
||||
"wayline_task_id": 1926,
|
||||
"task_uuid": "00000000-0000-4000-8000-000000001926",
|
||||
"seq": 6,
|
||||
"spot_attempt": 6,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"result_code": "",
|
||||
"result_message": "",
|
||||
"deducted": 0,
|
||||
"started_at": "2026-10-29 16:03:30",
|
||||
"finished_at": null,
|
||||
"medias": []
|
||||
},
|
||||
"order_progress": {
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"package_name": "单次航拍 · 含 1 次拍摄",
|
||||
"shot_total": 1,
|
||||
"shot_used": 0,
|
||||
"shot_remain": 1,
|
||||
"status_label": "待拍摄"
|
||||
},
|
||||
"task_id": 1926,
|
||||
"task_uuid": "00000000-0000-4000-8000-000000001926",
|
||||
"plane_id": 61,
|
||||
"airport_sn": "TEST-PLANE-61",
|
||||
"air_line_id": 302,
|
||||
"air_line_name": "天门寻梦",
|
||||
"ui": {
|
||||
"phase": "arrived_pending_start",
|
||||
"title": "无人机已到达",
|
||||
"message": "是否开始拍摄?确认游客站位与取景后开始",
|
||||
"primary_action": "start_shoot",
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"time": "2026-10-29 16:03:31"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"code": 100099,
|
||||
"msg": "不支持的订单类型",
|
||||
"data": [],
|
||||
"time": "2026-10-29 15:34:31"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"code": 100099,
|
||||
"msg": "不支持的订单类型",
|
||||
"data": [],
|
||||
"time": "2026-10-29 15:41:41"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"code": 100099,
|
||||
"data": [],
|
||||
"msg": "多点位航拍请使用专用订单接口",
|
||||
"time": "2026-10-29 14:14:42"
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"air_line": {
|
||||
"estimated_fly_time": 376,
|
||||
"fly_type": 1,
|
||||
"id": 302,
|
||||
"line_video_duration": 25,
|
||||
"name": "天门寻梦",
|
||||
"scenic_spot_id": 412
|
||||
},
|
||||
"airport_sn": "",
|
||||
"airport_status": {
|
||||
"sn": "TEST-PLANE-58",
|
||||
"status": 1,
|
||||
"task_type": null,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
"current_plane": {
|
||||
"battery_label": "电量 93%",
|
||||
"battery_percent": 93,
|
||||
"can_fly": true,
|
||||
"id": 58,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲 · 电量 93%",
|
||||
"task_type": null,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
"execute_gate": {
|
||||
"can_execute": false,
|
||||
"code": "wayline_missing",
|
||||
"message": "航线任务未关联,请先完成召唤起飞",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "航线任务未关联,请先完成召唤起飞"
|
||||
},
|
||||
"header": {
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"package_name": "单次航拍 · 含 1 次拍摄",
|
||||
"shot_remain": 1,
|
||||
"shot_total": 1,
|
||||
"title": "天门寻梦 · 天门寻梦",
|
||||
"tourist_label": "游客 130****0004",
|
||||
"tourist_phone_mask": "130****0004"
|
||||
},
|
||||
"metrics": [
|
||||
{
|
||||
"key": "battery",
|
||||
"label": "电池电量",
|
||||
"raw": 93,
|
||||
"value": "93%"
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"label": "环境温度",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"label": "风速",
|
||||
"raw": 0,
|
||||
"value": "0m/s"
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"label": "雨量",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"label": "信号状态",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"label": "搜星状态",
|
||||
"raw": 32,
|
||||
"value": "32颗"
|
||||
}
|
||||
],
|
||||
"order_flight_task": {
|
||||
"air_line_id": 302,
|
||||
"airport_sn": "",
|
||||
"deducted": 0,
|
||||
"finished_at": null,
|
||||
"id": 1,
|
||||
"medias": [],
|
||||
"order_id": 0,
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"plane_id": 0,
|
||||
"result_code": "",
|
||||
"result_message": "",
|
||||
"scenic_id": 271,
|
||||
"scenic_spot_id": 412,
|
||||
"seq": 1,
|
||||
"spot_attempt": 1,
|
||||
"started_at": null,
|
||||
"status": 10,
|
||||
"status_label": "待执行",
|
||||
"store_id": 38,
|
||||
"store_user_id": 51,
|
||||
"task_uuid": "",
|
||||
"wayline_task_id": 0
|
||||
},
|
||||
"order_type": 25,
|
||||
"order_type_label": "多点位航拍",
|
||||
"plane_id": 0,
|
||||
"plane_status": {
|
||||
"connected": true,
|
||||
"has_idle": true,
|
||||
"has_shooting": false,
|
||||
"planes": [
|
||||
{
|
||||
"battery_label": "",
|
||||
"battery_percent": null,
|
||||
"can_fly": true,
|
||||
"id": 58,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲",
|
||||
"task_type": null,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
{
|
||||
"battery_label": "",
|
||||
"battery_percent": null,
|
||||
"can_fly": false,
|
||||
"id": 61,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 61",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"status_text": "离线",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
},
|
||||
{
|
||||
"battery_label": "",
|
||||
"battery_percent": null,
|
||||
"can_fly": false,
|
||||
"id": 57,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试设备 57",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-57",
|
||||
"status_text": "离线",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
}
|
||||
],
|
||||
"poll_hint_ms": 5000,
|
||||
"recommend": {
|
||||
"battery_label": "电量 93%",
|
||||
"battery_percent": 93,
|
||||
"can_fly": true,
|
||||
"id": 58,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试设备 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲 · 电量 93%",
|
||||
"task_type": null,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
"scenic_id": 271
|
||||
},
|
||||
"scenic": {
|
||||
"id": 271,
|
||||
"name": "北大科技园"
|
||||
},
|
||||
"scenic_spot": {
|
||||
"id": 412,
|
||||
"name": "天门寻梦"
|
||||
},
|
||||
"task": {
|
||||
"id": 1,
|
||||
"status": 10,
|
||||
"status_label": "待执行",
|
||||
"task_uuid": "",
|
||||
"wayline_status": 0,
|
||||
"wayline_status_label": "",
|
||||
"wayline_task_id": 0
|
||||
},
|
||||
"ui": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
],
|
||||
"message": "航线任务未关联,请先完成召唤起飞",
|
||||
"phase": "blocked",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "航线任务未关联,请先完成召唤起飞",
|
||||
"title": "航线任务未关联,请先完成召唤起飞"
|
||||
}
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 15:07:25"
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"order_flight_task": {
|
||||
"id": 6,
|
||||
"order_id": 0,
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"scenic_id": 271,
|
||||
"store_id": 38,
|
||||
"store_user_id": 51,
|
||||
"scenic_spot_id": 412,
|
||||
"air_line_id": 302,
|
||||
"plane_id": 61,
|
||||
"airport_sn": "TEST-PLANE-61",
|
||||
"wayline_task_id": 1926,
|
||||
"task_uuid": "00000000-0000-4000-8000-000000001926",
|
||||
"seq": 6,
|
||||
"spot_attempt": 6,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"result_code": "",
|
||||
"result_message": "",
|
||||
"deducted": 0,
|
||||
"started_at": "2026-10-29 16:03:30",
|
||||
"finished_at": null,
|
||||
"medias": []
|
||||
},
|
||||
"order_type": 25,
|
||||
"order_type_label": "多点位航拍",
|
||||
"task": {
|
||||
"id": 6,
|
||||
"task_uuid": "00000000-0000-4000-8000-000000001926",
|
||||
"wayline_task_id": 1926,
|
||||
"wayline_status": 91,
|
||||
"wayline_status_label": "执行失败",
|
||||
"status": 20,
|
||||
"status_label": "执行中"
|
||||
},
|
||||
"scenic": {
|
||||
"id": 271,
|
||||
"name": "北大科技园"
|
||||
},
|
||||
"scenic_spot": {
|
||||
"id": 412,
|
||||
"name": "天门寻梦"
|
||||
},
|
||||
"air_line": {
|
||||
"id": 302,
|
||||
"name": "天门寻梦",
|
||||
"scenic_spot_id": 412,
|
||||
"fly_type": 1,
|
||||
"estimated_fly_time": 376,
|
||||
"line_video_duration": 25
|
||||
},
|
||||
"header": {
|
||||
"title": "天门寻梦 · 天门寻梦",
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"tourist_phone_mask": "130****0004",
|
||||
"tourist_label": "游客 130****0004",
|
||||
"package_name": "单次航拍 · 含 1 次拍摄",
|
||||
"shot_total": 1,
|
||||
"shot_remain": 1
|
||||
},
|
||||
"airport_sn": "TEST-PLANE-61",
|
||||
"plane_id": 61,
|
||||
"current_plane": {
|
||||
"id": 61,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"name": "测试设备 61",
|
||||
"online_status": 2,
|
||||
"is_receive_order": 1,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线",
|
||||
"task_type": null,
|
||||
"battery_percent": 94,
|
||||
"battery_label": "电量 94%",
|
||||
"can_fly": false,
|
||||
"status_text": "离线 · 电量 94%"
|
||||
},
|
||||
"plane_status": {
|
||||
"scenic_id": 271,
|
||||
"planes": [
|
||||
{
|
||||
"id": 61,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"name": "测试设备 61",
|
||||
"online_status": 2,
|
||||
"is_receive_order": 1,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线",
|
||||
"task_type": null,
|
||||
"battery_percent": 94,
|
||||
"battery_label": "电量 94%",
|
||||
"can_fly": false,
|
||||
"status_text": "离线 · 电量 94%"
|
||||
},
|
||||
{
|
||||
"id": 58,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"name": "测试设备 58",
|
||||
"online_status": 1,
|
||||
"is_receive_order": 2,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲",
|
||||
"task_type": null,
|
||||
"battery_percent": null,
|
||||
"battery_label": "",
|
||||
"can_fly": false,
|
||||
"status_text": "空闲"
|
||||
},
|
||||
{
|
||||
"id": 57,
|
||||
"sn_number": "TEST-PLANE-57",
|
||||
"name": "测试设备 57",
|
||||
"online_status": 2,
|
||||
"is_receive_order": 2,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线",
|
||||
"task_type": null,
|
||||
"battery_percent": null,
|
||||
"battery_label": "",
|
||||
"can_fly": false,
|
||||
"status_text": "离线"
|
||||
}
|
||||
],
|
||||
"recommend": {
|
||||
"id": 61,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"name": "测试设备 61",
|
||||
"online_status": 2,
|
||||
"is_receive_order": 1,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线",
|
||||
"task_type": null,
|
||||
"battery_percent": 94,
|
||||
"battery_label": "电量 94%",
|
||||
"can_fly": false,
|
||||
"status_text": "离线 · 电量 94%"
|
||||
},
|
||||
"has_idle": true,
|
||||
"has_shooting": false,
|
||||
"connected": true,
|
||||
"poll_hint_ms": 5000
|
||||
},
|
||||
"metrics": [
|
||||
{
|
||||
"key": "battery",
|
||||
"label": "电池电量",
|
||||
"value": "94%",
|
||||
"raw": 94
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"label": "环境温度",
|
||||
"value": "10.3℃",
|
||||
"raw": 10.3
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"label": "风速",
|
||||
"value": "0m/s",
|
||||
"raw": 0
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"label": "雨量",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain"
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"label": "信号状态",
|
||||
"value": "信号良好",
|
||||
"raw": "信号良好"
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"label": "搜星状态",
|
||||
"value": "17颗",
|
||||
"raw": 17
|
||||
}
|
||||
],
|
||||
"airport_status": {
|
||||
"sn": "TEST-PLANE-61",
|
||||
"status": 0,
|
||||
"task_type": null,
|
||||
"work_status_label": "离线"
|
||||
},
|
||||
"execute_gate": {
|
||||
"can_execute": false,
|
||||
"code": "wayline_not_shooting",
|
||||
"message": "航线任务状态不可拍摄(当前:执行失败)",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "航线任务状态不可拍摄(当前:执行失败)"
|
||||
},
|
||||
"ui": {
|
||||
"phase": "blocked",
|
||||
"title": "航线任务状态不可拍摄(当前:执行失败)",
|
||||
"message": "航线任务状态不可拍摄(当前:执行失败)",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "航线任务状态不可拍摄(当前:执行失败)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"time": "2026-10-29 16:04:52"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"project_id": 386,
|
||||
"project_name": "多点位航拍",
|
||||
"created_at": "2026-10-27 17:39:10",
|
||||
"user_phone": "130****0004",
|
||||
"shoot_count": 5,
|
||||
"shot_count": 0,
|
||||
"remaining_count": 5,
|
||||
"shoot_status": "processing",
|
||||
"order_status": 20,
|
||||
"material_status": 0,
|
||||
"film_count": 0,
|
||||
"can_create_task": true,
|
||||
"can_upload_film": true,
|
||||
"can_confirm": false,
|
||||
"confirm_status": 0,
|
||||
"confirmed_at": null,
|
||||
"task_id": 6
|
||||
},
|
||||
"time": "2026-10-29 16:03:01"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"can_confirm": false,
|
||||
"can_create_task": true,
|
||||
"can_upload_film": true,
|
||||
"confirm_status": 0,
|
||||
"confirmed_at": null,
|
||||
"created_at": "2026-10-27 17:39:10",
|
||||
"film_count": 0,
|
||||
"material_status": 0,
|
||||
"order_number": "TEST-ORDER-004",
|
||||
"order_status": 20,
|
||||
"project_id": 386,
|
||||
"project_name": "多点位航拍",
|
||||
"remaining_count": 5,
|
||||
"shoot_count": 5,
|
||||
"shoot_status": "processing",
|
||||
"shot_count": 0,
|
||||
"task_id": 1,
|
||||
"user_phone": "130****0004"
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 11:56:26"
|
||||
}
|
||||
Reference in New Issue
Block a user