代码调整
This commit is contained in:
parent
7388fc707f
commit
2310b54e11
@ -242,10 +242,18 @@ export default {
|
||||
this.mapStationDirectionMap = mapStationDirectionMap;
|
||||
const mapStationDirectionList = Object.values(mapStationDirectionMap);
|
||||
this.enterDirList = mapStationDirectionList.filter(stationDirection=>{
|
||||
return stationDirection.runStatus == 'R' && stationDirection.stationCode == stationCode;
|
||||
return stationDirection.stationCode == stationCode && (
|
||||
stationDirection.ioDirection == 'DOWN_IN_STATION' ||
|
||||
stationDirection.ioDirection == 'UP_IN_STATION' ||
|
||||
stationDirection.ioDirection == ' BOTH_WAY_STATION'
|
||||
);
|
||||
});
|
||||
this.outDirList = mapStationDirectionList.filter(stationDirection=>{
|
||||
return stationDirection.runStatus == 'D' && stationDirection.stationCode == stationCode;
|
||||
return stationDirection.stationCode == stationCode && (
|
||||
stationDirection.ioDirection == 'DOWN_OUT_STATION' ||
|
||||
stationDirection.ioDirection == 'UP_OUT_STATION' ||
|
||||
stationDirection.ioDirection == ' BOTH_WAY_STATION'
|
||||
);
|
||||
});
|
||||
if (row) {
|
||||
this.addModel = Object.assign({}, row);
|
||||
|
@ -206,10 +206,18 @@ export default {
|
||||
this.mapStationDirectionMap = mapStationDirectionMap;
|
||||
const mapStationDirectionList = Object.values(mapStationDirectionMap);
|
||||
this.enterDirList = mapStationDirectionList.filter(stationDirection=>{
|
||||
return stationDirection.runStatus == 'R' && stationDirection.stationCode == stationCode;
|
||||
return stationDirection.stationCode == stationCode && (
|
||||
stationDirection.ioDirection == 'DOWN_IN_STATION' ||
|
||||
stationDirection.ioDirection == 'UP_IN_STATION' ||
|
||||
stationDirection.ioDirection == ' BOTH_WAY_STATION'
|
||||
);
|
||||
});
|
||||
this.outDirList = mapStationDirectionList.filter(stationDirection=>{
|
||||
return stationDirection.runStatus == 'D' && stationDirection.stationCode == stationCode;
|
||||
return stationDirection.stationCode == stationCode && (
|
||||
stationDirection.ioDirection == 'DOWN_OUT_STATION' ||
|
||||
stationDirection.ioDirection == 'UP_OUT_STATION' ||
|
||||
stationDirection.ioDirection == ' BOTH_WAY_STATION'
|
||||
);
|
||||
});
|
||||
this.addModel.stationCode = stationCode;
|
||||
this.filterSectionList = Object.values(filterSectionMap);
|
||||
|
Loading…
Reference in New Issue
Block a user