编辑设备配置NCC,OCC角色显示

This commit is contained in:
fan 2023-11-13 17:24:31 +08:00
parent 0b688dea64
commit af3b4b1d97
2 changed files with 10 additions and 1 deletions

View File

@ -484,6 +484,7 @@ export default {
handleMember(member, stationList) {
const data = { value: member.id, label: '', memberType: member.type };
const device = stationList.find(station => station.code === member.deviceCode) || {};
console.log(member, '====');
switch (member.type) {
case 'DISPATCHER':
data.label = '行调' + (member.name ? `-${member.name }` : '');
@ -548,7 +549,12 @@ export default {
case 'STATION_ELECTRIC_WORKER':
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
break;
case 'NCC_DISPATCHER':
data.label = 'NCC调度' + (member.name ? `-${member.name }` : '');
break;
case 'OCC_DISPATCHER':
data.label = '信息调度' + (member.name ? `-${member.name }` : '');
break;
}
return data;
}

View File

@ -293,6 +293,9 @@ export default {
case 'STATION_ELECTRIC_WORKER':
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
break;
case 'NCC_DISPATCHER':
data.label = 'NCC调度' + (member.name ? `-${member.name }` : '');
break;
}
return data;
},