站台创建的时候绑定集中站
This commit is contained in:
parent
e300164580
commit
27196e9c54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user