From 9da15fbc9c46e00ad80e2b1fea965f259e7adf16 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Sun, 22 Jun 2025 17:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=9C=BA=E5=9C=BA=E7=94=BB=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/Airport/DeviceControl/index.vue | 87 +++++++++++++++++++ .../workmanagement/device/Airport/index.vue | 50 ++++++++--- .../workmanagement/device/Airport/utils.ts | 12 ++- 3 files changed, 135 insertions(+), 14 deletions(-) create mode 100644 src/views/demo/workmanagement/device/Airport/DeviceControl/index.vue diff --git a/src/views/demo/workmanagement/device/Airport/DeviceControl/index.vue b/src/views/demo/workmanagement/device/Airport/DeviceControl/index.vue new file mode 100644 index 0000000..3f43890 --- /dev/null +++ b/src/views/demo/workmanagement/device/Airport/DeviceControl/index.vue @@ -0,0 +1,87 @@ + + + + 远程调试 + + + + 机场控制 + + + + + + {{getCoverState(props.deviceInfoList[props.controlSN].cover_state)}} + 舱盖 + + + + {{props.deviceInfoList[props.controlSN].cover_state == 0? '打开': '关闭'}} + + + + 飞行器控制 + + + + + + {{props.deviceInfoList[props.controlSN].sub_device.device_online_status == 0? "关机": "开机"}} + 飞行器电源 + + + + {{props.deviceInfoList[props.controlSN].sub_device.device_online_status == 0? '开机': '关机'}} + + + + + + + + diff --git a/src/views/demo/workmanagement/device/Airport/index.vue b/src/views/demo/workmanagement/device/Airport/index.vue index 8d07b91..cdce661 100644 --- a/src/views/demo/workmanagement/device/Airport/index.vue +++ b/src/views/demo/workmanagement/device/Airport/index.vue @@ -29,6 +29,7 @@ { icon: 'carbon:calendar-tools', onClick: () => { + openDeviceControl(record) }, }, ]" @@ -39,8 +40,8 @@ - - + + @@ -50,12 +51,14 @@