代码调整
This commit is contained in:
parent
6fb7296348
commit
ce1d6527ed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user