Browse Source

设备箱弹窗异常

wangqin
王钦 7 months ago
parent
commit
50efa4431e
  1. 9
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue

9
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue

@ -122,12 +122,15 @@ export default {
}, },
async created() { async created() {
// if (!this.dialogData.iotDeviceId) this.dialogData.iotDeviceId = '10.0.36.146-1883'; // if (!this.dialogData.iotDeviceId) this.dialogData.iotDeviceId = '10.0.36.146-1883';
if(this.dialogData){
this.data = {
...this.dialogData,
}
}
let deviceInfo = await this.getDeviceInfo(); let deviceInfo = await this.getDeviceInfo();
this.data = { this.data = {
...this.dialogData,
roadName: null, roadName: null,
deviceStateLiteral: deviceInfo.data.formatValue.deviceState, deviceStateLiteral: deviceInfo?.data.formatValue.deviceState,
}; };
// console.log( // console.log(

Loading…
Cancel
Save