【大铁标准站】场景实训将信号员角色放出来

This commit is contained in:
fan 2023-01-29 10:05:23 +08:00
parent bab270626d
commit 5d560ad800

View File

@ -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];
}
});