代码调整

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]; deviceManager[item.id] = this.memberData[item.id];
break; break;
case 'TRAIN_MASTER': case 'TRAIN_MASTER':
this.memberData[item.id].label = '车务段段长-' + device.name + (item.name || ''); // + device.name
this.memberData[item.id].labelName = '车务段段长-' + device.name + (item.name || ''); // + device.name
this.memberData[item.id].label = '车务段段长-' + (item.name || '');
this.memberData[item.id].labelName = '车务段段长-' + (item.name || '');
deviceManager[item.id] = this.memberData[item.id]; deviceManager[item.id] = this.memberData[item.id];
break; break;
} }

View File

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

View File

@ -256,7 +256,8 @@ export default {
deviceManagerList.push(this.memberData[item.id]); deviceManagerList.push(this.memberData[item.id]);
break; break;
case 'TRAIN_MASTER': 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]); trainMasterList.push(this.memberData[item.id]);
break; break;
// DEVICE_MANAGER:'' deviceManager // DEVICE_MANAGER:'' deviceManager