From 5d560ad8000913f28c5c8baba947e138e7e18457 Mon Sep 17 00:00:00 2001 From: fan Date: Sun, 29 Jan 2023 10:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A4=A7=E9=93=81=E6=A0=87=E5=87=86?= =?UTF-8?q?=E7=AB=99=E3=80=91=E5=9C=BA=E6=99=AF=E5=AE=9E=E8=AE=AD=E5=B0=86?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E5=91=98=E8=A7=92=E8=89=B2=E6=94=BE=E5=87=BA?= =?UTF-8?q?=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/trainingList/scenePlayRole.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/display/trainingList/scenePlayRole.vue b/src/views/newMap/display/trainingList/scenePlayRole.vue index dbc110bf8..60e42bb71 100644 --- a/src/views/newMap/display/trainingList/scenePlayRole.vue +++ b/src/views/newMap/display/trainingList/scenePlayRole.vue @@ -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]; } });