diff --git a/src/api/disStation.js b/src/api/disStation.js new file mode 100644 index 000000000..74a952d09 --- /dev/null +++ b/src/api/disStation.js @@ -0,0 +1,25 @@ +import request from '@/utils/request'; + +// 创建调度台逻辑数据 +export function createDisStation(mapId, data) { + return request({ + url: `/api/draftMap/${mapId}/disStation`, + method: 'post', + data + }); +} +// 更新调度台逻辑数据 +export function updateDisStation(mapId, data) { + return request({ + url: `/api/draftMap/${mapId}/disStation`, + method: 'put', + data + }); +} +// 删除调度台逻辑数据 +export function deleteDisStation(mapId, code) { + return request({ + url: `/api/draftMap/${mapId}/disStation/${code}`, + method: 'delete' + }); +} diff --git a/src/store/modules/map.js b/src/store/modules/map.js index c1d9da330..6e5f220ab 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -204,6 +204,7 @@ const map = { namespaced: true, state: { + disStationList: [], // 调度台list routeData: {}, // 进路数据 routeList: [], // 进路list mapStationDirectionData:{}, // 大铁项目 车站方向数据 @@ -258,6 +259,13 @@ const map = { }, getters: { + disStationList: state => { + if (state.map) { + return state.disStationList; + } else { + return []; + } + }, trainWindowSectionCode: state => { return state.trainWindowSectionCode; }, @@ -745,7 +753,11 @@ const map = { }, mutations: { - // 改变地图数据索引 + // 设置调度台列表 + setDisStationList: (state, list) => { + state.disStationList = list; + }, + // 改变地图数据索引 flushMapRef: state => { if (state.map) { state.map.sectionList = [...(state.map.sectionList || [])]; @@ -1121,6 +1133,7 @@ const map = { }); mapData.graphDataNew.overlapList = overlapData; + commit('setDisStationList', mapData.logicDataNew.disStationList || []); commit('setMapName', mapData.name); commit('setMapData', mapData.graphDataNew); commit('setRouteData', mapData.logicDataNew.routeList); diff --git a/src/views/newMap/newMapdraft/dataRelation/disStationOperate/index.vue b/src/views/newMap/newMapdraft/dataRelation/disStationOperate/index.vue new file mode 100644 index 000000000..807c66751 --- /dev/null +++ b/src/views/newMap/newMapdraft/dataRelation/disStationOperate/index.vue @@ -0,0 +1,103 @@ + + diff --git a/src/views/newMap/newMapdraft/dataRelation/disStationOperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/disStationOperate/route.vue new file mode 100644 index 000000000..af51ab882 --- /dev/null +++ b/src/views/newMap/newMapdraft/dataRelation/disStationOperate/route.vue @@ -0,0 +1,162 @@ + + + diff --git a/src/views/newMap/newMapdraft/dataRelation/index.vue b/src/views/newMap/newMapdraft/dataRelation/index.vue index 4bb85ee5a..9920156b2 100644 --- a/src/views/newMap/newMapdraft/dataRelation/index.vue +++ b/src/views/newMap/newMapdraft/dataRelation/index.vue @@ -33,6 +33,7 @@ import RouteOperate from './routeoperate/index'; import RoutingOperate from './routingoperate/index'; import BigRoutingOperate from './bigroutingoperate/index'; import IndicatorAssociatedInfo from './indicatorAssociatedInfo/index'; +import DisStationOperate from './disStationOperate/index'; import AutomaticOperate from './automaticoperate/index'; // import PathOperate from './pathoperate/index'; import RunLevelOperate from './runLeveloperate/index'; @@ -58,6 +59,7 @@ export default { TurnedOperate, DwellTimeOperate, ContinueProtectOperate, + DisStationOperate, IndicatorAssociatedInfo // DestinationOperate }, @@ -102,6 +104,9 @@ export default { {label: '出入口', name: 'indicatorAssociatedInfo', menus: IndicatorAssociatedInfo} // {label: this.$t('map.routing'), name:'routing', menus:RoutingOperate} ]; + if (this.$route.query.lineCode == '16') { + this.tabList.push({label: '调度台', name: 'DisStationOperate', menus: DisStationOperate}); + } this.enabledTab = 'bigRoutingOperate'; } else { this.tabList = [