feat: 完善机巢任务状态展示与景区空境库入口
拍摄任务刷新时保留上次成功数据,失败状态按产品网页展示原因和不可召唤提示;新增受权限控制的景区空境库入口,使用当前景区空态。同步测试与接口说明。 验证:模拟器机巢相关 65 项测试、空境库及首页菜单相关 30 项测试通过。
This commit is contained in:
@@ -34,6 +34,8 @@ enum DroneDockTaskDisplayAction: Equatable, Sendable {
|
||||
case start
|
||||
/// 恢复拍摄占位动作,本轮禁用。
|
||||
case resume
|
||||
/// 失败后的重新召唤占位动作;尚未接入重新准备流程,始终禁用。
|
||||
case retry
|
||||
/// 查看已明确完成任务的订单素材。
|
||||
case materials
|
||||
/// 当前无主动作。
|
||||
@@ -54,6 +56,21 @@ struct DroneDockTaskPresentation: Equatable, Sendable {
|
||||
let action: DroneDockTaskDisplayAction
|
||||
/// 主动作名称,无动作时为 nil。
|
||||
let actionTitle: String?
|
||||
/// 是否可触发动作;未对接的开始和恢复始终为 false。
|
||||
/// 是否可触发动作;未对接的开始、恢复和重新召唤始终为 false。
|
||||
let isActionEnabled: Bool
|
||||
/// 主动作下方的真实设备限制说明,未提供时不展示。
|
||||
let actionNote: String?
|
||||
|
||||
/// 创建状态展示;动作提示默认为空,既有非失败状态保持原布局。
|
||||
init(phase: DroneDockTaskDisplayPhase, title: String, message: String, deviceStatus: String,
|
||||
action: DroneDockTaskDisplayAction, actionTitle: String?, isActionEnabled: Bool, actionNote: String? = nil) {
|
||||
self.phase = phase
|
||||
self.title = title
|
||||
self.message = message
|
||||
self.deviceStatus = deviceStatus
|
||||
self.action = action
|
||||
self.actionTitle = actionTitle
|
||||
self.isActionEnabled = isActionEnabled
|
||||
self.actionNote = actionNote
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user