【大铁标准站】场景实训将信号员角色放出来
This commit is contained in:
parent
bab270626d
commit
5d560ad800
@ -68,8 +68,9 @@ export default {
|
||||
const playerList = JSON.parse(this.trainingDetail.playerIdJson);
|
||||
const memberData = this.$store.state.training.memberData;
|
||||
const newMemberData = {};
|
||||
const showRole = ['DISPATCHER', 'STATION_SUPERVISOR', 'STATION_SIGNALER'];
|
||||
playerList.forEach(playerId => {
|
||||
if (memberData[playerId] && (memberData[playerId].type === 'STATION_SUPERVISOR' || memberData[playerId].type === 'DISPATCHER')) {
|
||||
if (memberData[playerId] && showRole.includes(memberData[playerId].type)) {
|
||||
newMemberData[playerId] = memberData[playerId];
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user