代码调整

This commit is contained in:
joylink_cuiweidong 2022-08-02 10:33:35 +08:00
parent 9067b54e97
commit 3131edd93b
3 changed files with 8 additions and 4 deletions

View File

@ -487,8 +487,10 @@ export default {
deviceManager[item.id] = this.memberData[item.id];
break;
case 'TRAIN_MASTER':
this.memberData[item.id].label = '车务段段长-' + device.name + (item.name || '');
this.memberData[item.id].labelName = '车务段段长-' + device.name + (item.name || '');
// + device.name
// + device.name
this.memberData[item.id].label = '车务段段长-' + (item.name || '');
this.memberData[item.id].labelName = '车务段段长-' + (item.name || '');
deviceManager[item.id] = this.memberData[item.id];
break;
}

View File

@ -270,7 +270,8 @@ export default {
case 'TRAIN_MASTER': {
const device = this.$store.getters['map/getDeviceByCode'](member.deviceCode);
if (device) {
member.label = '车务段段长-' + device.name + (member.name ? member.name : '');
// + device.name
member.label = '车务段段长-' + (member.name ? member.name : '');
member.deviceName = device.name;
}
break;

View File

@ -256,7 +256,8 @@ export default {
deviceManagerList.push(this.memberData[item.id]);
break;
case 'TRAIN_MASTER':
this.memberData[item.id].labelName = '车务段段长-' + device.name + (item.name ? `-${item.name }` : '');
// device.name;
this.memberData[item.id].labelName = '车务段段长-' + (item.name ? `-${item.name }` : '');
trainMasterList.push(this.memberData[item.id]);
break;
// DEVICE_MANAGER:'' deviceManager