From 7d473aba6ca17e40854a33edec10f096ecb8b7e5 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 18 Aug 2022 11:04:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A4=A7=E9=93=81=E9=A1=B9=E7=9B=AE=20?= =?UTF-8?q?=E8=BD=A6=E5=8A=A1=E7=AE=A1=E7=90=86=E7=BB=88=E7=AB=AF=20?= =?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 --- .../bigTrainRunplanManage/stationTrack.vue | 19 +++++++++++++------ .../trackInformation.vue | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/views/bigTrainRunplanManage/stationTrack.vue b/src/views/bigTrainRunplanManage/stationTrack.vue index f83eaf113..077b2c172 100644 --- a/src/views/bigTrainRunplanManage/stationTrack.vue +++ b/src/views/bigTrainRunplanManage/stationTrack.vue @@ -38,10 +38,14 @@ width="100" /> + > + + + + + + + Date: Thu, 18 Aug 2022 15:35:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trainingManage.js | 58 +++++++ src/scripts/ConstConfig.js | 4 + src/views/designPlatform/trainingDesign.vue | 4 +- src/views/trainingManage/create.vue | 122 +++++++++++++ src/views/trainingManage/demonMenu.vue | 86 +++++++++ src/views/trainingManage/trainingList.vue | 183 ++++++++++++++++++++ 6 files changed, 456 insertions(+), 1 deletion(-) create mode 100644 src/api/trainingManage.js create mode 100644 src/views/trainingManage/create.vue create mode 100644 src/views/trainingManage/demonMenu.vue create mode 100644 src/views/trainingManage/trainingList.vue diff --git a/src/api/trainingManage.js b/src/api/trainingManage.js new file mode 100644 index 000000000..6c9647bff --- /dev/null +++ b/src/api/trainingManage.js @@ -0,0 +1,58 @@ +import request from '@/utils/request'; + +/** 获取当前用户的所有实训草稿数据 */ +export function getAllTrainingList(params) { + return request({ + url: `/api/v2/draft/training/all`, + method: 'get', + params + }); +} +/** 分页获取当前用户的实训草稿数据 */ +export function getTrainingList(data) { + return request({ + url: `/api/v2/draft/training/info/page`, + method: 'post', + data + }); +} +/** 创建实训草稿 */ +export function createTraining(data) { + return request({ + url: `/api/v2/draft/training/create`, + method: 'post', + data + }); +} +/** 更新当前用户的某个实训草稿 */ +export function updateTraining(data) { + return request({ + url: `/api/v2/draft/training`, + method: 'post', + data + }); +} +/** 修改实训所有步骤 */ +export function updateTrainingStep(id, data) { + return request({ + url: ` /api/v2/draft/training/${id}/step/update`, + method: 'put', + data: data + }); +} +/** 删除当前用户的实训草稿 */ +export function deleteTraining(data) { + return request({ + url: `/api/v2/draft/training`, + method: 'delete', + data: {trainingDraftIds: data} + }); +} +/** 当前用户发布自己的实训草稿 */ +export function publishTraining(data) { + return request({ + url: `/api/v2/draft/training/publish`, + method: 'post', + data + }); +} diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js index 2459fa196..d4c4be54c 100644 --- a/src/scripts/ConstConfig.js +++ b/src/scripts/ConstConfig.js @@ -253,6 +253,10 @@ export default { { label: 'S', value: 'S' }, { label: 'SF', value: 'SF' }, { label: 'SD', value: 'SD' } + ], + trainingType: [ // 实训类型 + { enlabel: 'single operation', label: '单操', value: 'single'}, + { enlabel: 'scene operation', label: '场景', value: 'scene'} ] } }; diff --git a/src/views/designPlatform/trainingDesign.vue b/src/views/designPlatform/trainingDesign.vue index 4f7904ca8..a11058c73 100644 --- a/src/views/designPlatform/trainingDesign.vue +++ b/src/views/designPlatform/trainingDesign.vue @@ -2,6 +2,7 @@
+
@@ -19,11 +20,12 @@ import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp'; import { getToken } from '@/utils/auth'; import chatBox from '@/views/newMap/chatView/chatBox.vue'; import VoiceChatBox from '@/views/newMap/chatView/voiceChatBox.vue'; - +import MenuDemon from '@/views/trainingManage/demonMenu.vue'; export default { name: 'TrainingDesign', components: { JlmapVisual, + MenuDemon, chatBox, VoiceChatBox }, diff --git a/src/views/trainingManage/create.vue b/src/views/trainingManage/create.vue new file mode 100644 index 000000000..2d2cdebc6 --- /dev/null +++ b/src/views/trainingManage/create.vue @@ -0,0 +1,122 @@ + + + + diff --git a/src/views/trainingManage/demonMenu.vue b/src/views/trainingManage/demonMenu.vue new file mode 100644 index 000000000..83709498b --- /dev/null +++ b/src/views/trainingManage/demonMenu.vue @@ -0,0 +1,86 @@ + + + diff --git a/src/views/trainingManage/trainingList.vue b/src/views/trainingManage/trainingList.vue new file mode 100644 index 000000000..641d416fc --- /dev/null +++ b/src/views/trainingManage/trainingList.vue @@ -0,0 +1,183 @@ + + + + From 3c7768c970a27c4191674f90bb75255e6e40de5e Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 18 Aug 2022 16:10:22 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=A4=A7=E9=93=81=E9=A1=B9=E7=9B=AE=20=20?= =?UTF-8?q?=E8=BD=A6=E5=8A=A1=E7=AE=A1=E7=90=86=E7=BB=88=E7=AB=AF=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=82=A1=E9=81=93=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=20=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 --- .../theme/components/utils/menuOperate.js | 6 ++ src/scripts/cmdPlugin/CommandEnum.js | 2 + src/scripts/cmdPlugin/OperationHandler.js | 8 ++- .../bigTrainRunplanManage/stationTrack.vue | 67 ++++++++++--------- .../terminalStationList.vue | 8 ++- .../trackInformation.vue | 2 +- .../bigTrainRunplanManage/trainFixedPath.vue | 2 +- 7 files changed, 61 insertions(+), 34 deletions(-) diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index 79c308b83..454bcf7e5 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -771,6 +771,12 @@ export const menuOperate = { operation: OperationEvent.CTCCommand.releaseTrainFixedPath.menu.operation, cmdType: CMD.CTC.CTC_RELEASE_RUN_PLAN_TO_SIMULATION }, + // 获取股道列表 + getStationTrack:{ + operation: OperationEvent.CTCCommand.getStationTrack.menu.operation, + cmdType: CMD.CTC.CTC_STATION_DETAIL_LIST // TODO + }, + setRoute: { operation: OperationEvent.CTCCommand.setRoute.menu.operation, cmdType: CMD.CTC.CTC_SET_ROUTE diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index 9616eaa65..b12a2314f 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -446,6 +446,8 @@ export default { CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA', label: '导入列车固定径路'}, CTC_REMOVE_RUN_PLAN_FROM_EDIT_AREA:{value: 'CTC_REMOVE_RUN_PLAN_FROM_EDIT_AREA', label: '删除列车固定径路'}, CTC_RELEASE_RUN_PLAN_TO_SIMULATION:{value: 'CTC_RELEASE_RUN_PLAN_TO_SIMULATION', label: '运行计划发布至CTC'}, + CTC_STATION_DETAIL_LIST:{value: 'station_detail_list', label: ' 获取股道列表'}, // TODO + CTC_SET_ROUTE:{value: 'CTC_SET_ROUTE', label: 'CTC办理进路'}, CTC_STATION_SIGN_RUN_PLAN:{value:'CTC_STATION_SIGN_RUN_PLAN', label: '车站签收阶段计划'}, diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index c33196803..333b63f8b 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -3958,8 +3958,14 @@ export const OperationEvent = { operation: '1149', domId: '_Tips-CTC-logSaveRunplan-Menu{TOP}' } + }, + // 获取股道列表 + getStationTrack:{ + menu: { + operation: '1150', + domId: 'getStationTrackTerminalStationTree' + } } - // // CTC_ZONE_SAVE_TRIP_NUMBER // CTC_ZONE_SAVE_STATION }, diff --git a/src/views/bigTrainRunplanManage/stationTrack.vue b/src/views/bigTrainRunplanManage/stationTrack.vue index 077b2c172..5f89ea6be 100644 --- a/src/views/bigTrainRunplanManage/stationTrack.vue +++ b/src/views/bigTrainRunplanManage/stationTrack.vue @@ -2,7 +2,7 @@
- +
@@ -37,22 +37,24 @@ label="序号" width="100" /> + + + + + + + { + if (valid) { + this.tableData = response.data; + } + }); + // getStationTrackTerminalStationTree + // this.tableData = [ + // {trackSectionCode:'T97', lineType:'1', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1', + // sewageEqu:'1', military:'1'}, + // {trackSectionCode:'T105', lineType:'2', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1', + // sewageEqu:'1', military:'1' } + // ]; }, rowDbClick(row, column, event) { this.currentRow = row; diff --git a/src/views/bigTrainRunplanManage/terminalStationList.vue b/src/views/bigTrainRunplanManage/terminalStationList.vue index 5f6c4251b..8851e42bf 100644 --- a/src/views/bigTrainRunplanManage/terminalStationList.vue +++ b/src/views/bigTrainRunplanManage/terminalStationList.vue @@ -13,7 +13,7 @@
- +