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