From 27196e9c54db024085e5c1a6bb96c2a5c05cbb62 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 19 Dec 2019 13:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E5=8F=B0=E5=88=9B=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E7=BB=91=E5=AE=9A=E9=9B=86=E4=B8=AD=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/newMapdraft/mapoperate/stationstand.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/newMap/newMapdraft/mapoperate/stationstand.vue b/src/views/newMap/newMapdraft/mapoperate/stationstand.vue index b189f3b82..720d8c314 100644 --- a/src/views/newMap/newMapdraft/mapoperate/stationstand.vue +++ b/src/views/newMap/newMapdraft/mapoperate/stationstand.vue @@ -340,11 +340,12 @@ export default { // 创建新站台的时候,判断该站台对应的车站是否集中站,如果不是集中站,判断该车站是否被控制 // 被控制的车站数据 let beCentralizedStation = {}; - this.stationList.forEach(data=>{ + this.stationList.some(data=>{ if (data.centralized) { if (data.code == this.addModel.stationCode) { beCentralizedStation = {}; - return data.code; + beCentralizedStation[this.addModel.stationCode] = data.code; + return true; } data.chargeStationCodeList.forEach(charge=>{ beCentralizedStation[charge] = data.code;