|
@ -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){ |
|
|
let deviceInfo = await this.getDeviceInfo(); |
|
|
|
|
|
this.data = { |
|
|
this.data = { |
|
|
...this.dialogData, |
|
|
...this.dialogData, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
let deviceInfo = await this.getDeviceInfo(); |
|
|
|
|
|
this.data = { |
|
|
roadName: null, |
|
|
roadName: null, |
|
|
deviceStateLiteral: deviceInfo.data.formatValue.deviceState, |
|
|
deviceStateLiteral: deviceInfo?.data.formatValue.deviceState, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// console.log( |
|
|
// console.log( |
|
|