From 2310b54e11204c26073c3dff96892d40bfcc13eb Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 29 Aug 2022 13:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigTrainRunplanManage/addRunplan.vue | 12 ++++++++++-- src/views/bigTrainRunplanManage/batchTrainFxPath.vue | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/views/bigTrainRunplanManage/addRunplan.vue b/src/views/bigTrainRunplanManage/addRunplan.vue index 304f013ac..b4d10b39e 100644 --- a/src/views/bigTrainRunplanManage/addRunplan.vue +++ b/src/views/bigTrainRunplanManage/addRunplan.vue @@ -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); diff --git a/src/views/bigTrainRunplanManage/batchTrainFxPath.vue b/src/views/bigTrainRunplanManage/batchTrainFxPath.vue index 27a5c06da..b4862dc79 100644 --- a/src/views/bigTrainRunplanManage/batchTrainFxPath.vue +++ b/src/views/bigTrainRunplanManage/batchTrainFxPath.vue @@ -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);