|
@ -63,12 +63,15 @@ export default { |
|
|
}).then(result => { |
|
|
}).then(result => { |
|
|
if (result.code != 200) return Message.error("操作失败"); |
|
|
if (result.code != 200) return Message.error("操作失败"); |
|
|
result.data.forEach(item => { |
|
|
result.data.forEach(item => { |
|
|
devs.push({ |
|
|
if (item.propertyName) { |
|
|
label: item.propertyName, |
|
|
devs.push({ |
|
|
key: item.property, |
|
|
label: item.propertyName, |
|
|
gridColumn: 3, |
|
|
key: item.property, |
|
|
}); |
|
|
gridColumn: 3, |
|
|
this.devicesData[item.property] = item.formatValue; |
|
|
}); |
|
|
|
|
|
this.devicesData[item.property] = item.formatValue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
this.devicesList = devs; |
|
|
this.devicesList = devs; |
|
|
}) |
|
|
}) |
|
|