| | |
| | | import { AlarmModeEnum, BatteryStoreModeEnum, DroneBatteryModeEnum, LinkWorkModeEnum } from '/@/types/airport-tsa' |
| | | import { AlarmModeEnum, BatteryStoreModeEnum, DroneBatteryModeEnum, LinkWorkModeEnum, AirConditioningModeEnum } from '/@/types/airport-tsa' |
| | | // 机场指令集 |
| | | export enum DeviceCmd { |
| | | // 简单指令 |
| | |
| | | BatteryStoreModeSwitch = 'battery_store_mode_switch', // 电池保养 |
| | | DroneBatteryModeSwitch = 'battery_maintenance_switch', // 飞行器电池保养 |
| | | SdrWorkModeSwitch = 'sdr_workmode_switch', // 增强图传 |
| | | AirConditioningModeSwitch = 'air_conditioner_mode_switch'// 空调模式开关 |
| | | } |
| | | |
| | | export type DeviceCmdItemAction = AlarmModeEnum | BatteryStoreModeEnum | DroneBatteryModeEnum | LinkWorkModeEnum |
| | | export type DeviceCmdItemAction = AlarmModeEnum | BatteryStoreModeEnum | DroneBatteryModeEnum | LinkWorkModeEnum | AirConditioningModeEnum |
| | | |
| | | export interface DeviceCmdItem{ |
| | | label: string, // 标题 |
| | |
| | | func: 'sdrWorkMode', |
| | | loading: false, |
| | | }, |
| | | { |
| | | label: '空调模式', |
| | | status: '关', |
| | | operateText: '打开', |
| | | cmdKey: DeviceCmd.AirConditioningModeSwitch, |
| | | action: AirConditioningModeEnum.COOL, |
| | | func: 'airConditionerSwitch', |
| | | loading: false, |
| | | } |
| | | ] |
| | | |
| | | export enum DeviceCmdStatusText { |
| | |
| | | SdrWorkModeFourGCloseText = '关闭中...', |
| | | SdrWorkModeFourGCloseFailedText = '开', |
| | | SdrWorkModeFourCloseBtnText = '开启', |
| | | |
| | | // 空调模式 |
| | | AirConditionerModeCoolNormalText = '关', |
| | | AirConditionerModeCoolInProgressText = '切换中...', |
| | | AirConditionerModeCoolFailedText = '切换失败', |
| | | AirConditionerModeHeatText = '制热', |
| | | AirConditionerModeCoolText = '制冷', |
| | | AirConditionerModeDehumdidfyText = '除湿', |
| | | } |
| | | |
| | | // cmd ws 消息状态 |