diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 928f231ae..05c4a45ab 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -206,6 +206,7 @@ const map = { state: { routeData: {}, // 进路数据 routeList: [], // 进路list + mapStationDirectionData:{}, // 大铁项目 车站方向数据 routeStartSignalData: {}, // 进路始端信号机数据 autoReentryData: {}, // 自动折返数据 autoReentryList: [], // 自动折返list @@ -950,6 +951,13 @@ const map = { }); state.routeList = routeDataList; }, + + setMapStationDirectionData: (state, mapStationDirectionList) => { + mapStationDirectionList.forEach(data => { + state.mapStationDirectionData[data.code] = data; + }); + }, + setOverlapData: (state, overlapList) => { state.overlapData = {}; overlapList.forEach(data => { @@ -1087,6 +1095,8 @@ const map = { commit('setMapName', mapData.name); commit('setMapData', mapData.graphDataNew); commit('setRouteData', mapData.logicDataNew.routeList); + // 设置大铁项目 车站方向数据 + commit('setMapStationDirectionData', mapData.logicDataNew.draftMapStationDirectionList || []); commit('setOverlapData', overlapData); commit('setAutoReentryData', mapData.logicDataNew.autoReentryList); commit('setSignalApproachSectionData', mapData.logicDataNew.signalApproachSectionList);