编辑设备配置NCC,OCC角色显示
This commit is contained in:
parent
0b688dea64
commit
af3b4b1d97
@ -484,6 +484,7 @@ export default {
|
|||||||
handleMember(member, stationList) {
|
handleMember(member, stationList) {
|
||||||
const data = { value: member.id, label: '', memberType: member.type };
|
const data = { value: member.id, label: '', memberType: member.type };
|
||||||
const device = stationList.find(station => station.code === member.deviceCode) || {};
|
const device = stationList.find(station => station.code === member.deviceCode) || {};
|
||||||
|
console.log(member, '====');
|
||||||
switch (member.type) {
|
switch (member.type) {
|
||||||
case 'DISPATCHER':
|
case 'DISPATCHER':
|
||||||
data.label = '行调' + (member.name ? `-${member.name }` : '');
|
data.label = '行调' + (member.name ? `-${member.name }` : '');
|
||||||
@ -548,7 +549,12 @@ export default {
|
|||||||
case 'STATION_ELECTRIC_WORKER':
|
case 'STATION_ELECTRIC_WORKER':
|
||||||
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
|
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
|
||||||
break;
|
break;
|
||||||
|
case 'NCC_DISPATCHER':
|
||||||
|
data.label = 'NCC调度' + (member.name ? `-${member.name }` : '');
|
||||||
|
break;
|
||||||
|
case 'OCC_DISPATCHER':
|
||||||
|
data.label = '信息调度' + (member.name ? `-${member.name }` : '');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
@ -293,6 +293,9 @@ export default {
|
|||||||
case 'STATION_ELECTRIC_WORKER':
|
case 'STATION_ELECTRIC_WORKER':
|
||||||
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
|
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
|
||||||
break;
|
break;
|
||||||
|
case 'NCC_DISPATCHER':
|
||||||
|
data.label = 'NCC调度' + (member.name ? `-${member.name }` : '');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user