From 526a82ab1fa5c59d2adaeb301446480651ae36c5 Mon Sep 17 00:00:00 2001 From: mbp <360013221@qq.com> Date: Tue, 15 Oct 2024 15:57:20 +0800 Subject: [PATCH] updat zhining --- .../components/Dialogs/SmartDevice/index.vue | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue index 02448b8f..ac0ac953 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue @@ -1,6 +1,6 @@ @@ -124,11 +143,12 @@ export default { this.data = { ...this.dialogData, roadName: '济菏高速' }; let deviceInfo = await this.getDeviceInfo(); + console.log(this.data,'------') this.data = { roadName: '济菏高速' , - deviceStateLiteral: deviceInfo?.data.formatValue.deviceState, + //deviceStateLiteral: deviceInfo?.data.formatValue.deviceState, ...this.data, - deviceStateName: (this.data === '0'?'离线':'在线') + deviceStateName: (this.data.deviceState === '0'?'离线':'在线') }; // console.log( @@ -203,7 +223,7 @@ div.switcher { align-items: center; justify-content: end; - >div { + > div { font-size: 16px; padding: 6px 12px; }