|
|
@ -95,13 +95,13 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "设备状态", |
|
|
|
key: "deviceState", |
|
|
|
key: "deviceStateName", |
|
|
|
// enum: "DeviceTypeEnum", |
|
|
|
visible: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "设备状态", |
|
|
|
key: "deviceStateLiteral", |
|
|
|
visible: false, |
|
|
|
// enum: "DeviceTypeEnum", |
|
|
|
}, |
|
|
|
{ |
|
|
@ -121,14 +121,14 @@ export default { |
|
|
|
this.camId = oConfig.camId |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.data = { ...this.dialogData, roadName: '济菏高速' }; |
|
|
|
|
|
|
|
let deviceInfo = await this.getDeviceInfo(); |
|
|
|
this.data = { |
|
|
|
roadName: '济菏高速' , |
|
|
|
deviceStateLiteral: deviceInfo?.data.formatValue.deviceState, |
|
|
|
...this.data |
|
|
|
...this.data, |
|
|
|
deviceStateName: (this.data === '0'?'离线':'在线') |
|
|
|
}; |
|
|
|
|
|
|
|
// console.log( |
|
|
|