From b0ad0267249b275e3e0d9969a936bbf55431861d Mon Sep 17 00:00:00 2001 From: fan Date: Thu, 7 Mar 2024 10:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E6=88=90=E5=91=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/memberManage/addMember.vue | 12 ++++-------- .../newMap/display/memberManage/membersManage.vue | 4 +--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/views/newMap/display/memberManage/addMember.vue b/src/views/newMap/display/memberManage/addMember.vue index 7dedba741..ba7dcede4 100644 --- a/src/views/newMap/display/memberManage/addMember.vue +++ b/src/views/newMap/display/memberManage/addMember.vue @@ -46,12 +46,6 @@ import { addSimulationMember } from '@/api/jointSimulation'; import ConstConfig from '@/scripts/ConstConfig'; export default { name: 'AddMember', - props: { - stationList: { - type: Array, - required: true - } - }, data() { return { dialogVisible: false, @@ -78,7 +72,9 @@ export default { 'STATION_SWITCH_MAN', 'STATION_FACILITATOR', 'STATION_WORKER', - 'DEVICE_MANAGER' + 'DEVICE_MANAGER', + 'STATION_ATTENDANT', + 'STATION_HEAD' ] }; }, @@ -111,7 +107,7 @@ export default { methods: { initData() { this.filterStationList = []; - this.stationList.forEach(item => { + this.$store.state.map.map.stationList.forEach(item => { if (!item.depot) { this.filterStationList.push(item); } diff --git a/src/views/newMap/display/memberManage/membersManage.vue b/src/views/newMap/display/memberManage/membersManage.vue index 09789cbb3..86a4341f6 100644 --- a/src/views/newMap/display/memberManage/membersManage.vue +++ b/src/views/newMap/display/memberManage/membersManage.vue @@ -49,7 +49,7 @@ - + @@ -88,8 +88,6 @@ export default { label: 'labelName' }, simulationUserList: [], - stationList: [], - availableStationList:[], activeTrains: [], standList: [], doorList: [],