大铁线路调整18

This commit is contained in:
fan 2022-04-24 14:03:48 +08:00
parent 279522f544
commit 216166c572

View File

@ -141,7 +141,11 @@
}, },
getMainDeviceName(code) { getMainDeviceName(code) {
const device = this.$store.getters['map/getDeviceByCode'](code); const device = this.$store.getters['map/getDeviceByCode'](code);
if (device){
return device.name + '[' + code + ']'; return device.name + '[' + code + ']';
} else {
return '';
}
}, },
getModelType(modelType) { getModelType(modelType) {
if (modelType === 'indicator') { if (modelType === 'indicator') {