Files
lujiuyin 1173207756 feat(drone-dock): 接通任务召唤与状态页并固定拍摄布局
接入 plane-status、tasks/create、shoot 与 shooting,保持同一任务 ID 串接、重复提交保护和只读单次刷新。拍摄任务页固定顶部参数与底部安全控制,中间状态区域适配小屏且不滚动;同步接口记录、脱敏响应及相关测试。
2026-10-29 17:06:49 +08:00

219 lines
5.6 KiB
JSON

{
"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"
}