From 646c2fb5d601786b8433a895913d1ffa7cde572f Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 31 Aug 2022 10:55:45 +0800 Subject: [PATCH 1/6] =?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/stationTrack.vue | 4 ++-- src/views/bigTrainRunplanManage/trackInformation.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/bigTrainRunplanManage/stationTrack.vue b/src/views/bigTrainRunplanManage/stationTrack.vue index bea9c169d..eb22a3467 100644 --- a/src/views/bigTrainRunplanManage/stationTrack.vue +++ b/src/views/bigTrainRunplanManage/stationTrack.vue @@ -175,9 +175,9 @@ export default { 'D':'上下行' }, typeMap:{ - 'VAN':'客车', + 'VAN':'客货车', 'GOODS_VAN':'货车', - 'PASSENGER':'客货车' + 'PASSENGER':'客车' }, transfiniteTypeMap:{ 'NO':'不能接发超限列车', diff --git a/src/views/bigTrainRunplanManage/trackInformation.vue b/src/views/bigTrainRunplanManage/trackInformation.vue index bc871ca4a..61a3c422e 100644 --- a/src/views/bigTrainRunplanManage/trackInformation.vue +++ b/src/views/bigTrainRunplanManage/trackInformation.vue @@ -147,9 +147,9 @@ export default { {label:'上下行', value:'D'} ], typeList:[ - {label:'客车', value:'VAN'}, + {label:'客货车', value:'VAN'}, {label:'货车', value:'GOODS_VAN'}, - {label:'客货车', value:'PASSENGER'} + {label:'客车', value:'PASSENGER'} ], transfiniteTypeList:[ {label:'不能接发超限列车', value:'NO'}, From 19a87a79dbe758357be122496cd08955a624b316 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 31 Aug 2022 11:22:58 +0800 Subject: [PATCH 2/6] =?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/designPlatform/trainingDesign.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/designPlatform/trainingDesign.vue b/src/views/designPlatform/trainingDesign.vue index e3df62ac5..6fd1df737 100644 --- a/src/views/designPlatform/trainingDesign.vue +++ b/src/views/designPlatform/trainingDesign.vue @@ -6,7 +6,7 @@ {{ faultMode?'切换到普通模式':'切换到故障模式' }}
- 初始化 + 初始化 暂停 恢复 开始 @@ -33,7 +33,7 @@ export default { }, data() { return { - groupModel: '', + loading: false, faultMode: false }; }, @@ -76,6 +76,7 @@ export default { this.$store.dispatch('trainingNew/clearStepOrder'); this.$store.dispatch('trainingNew/clearOperateOrder'); this.$store.dispatch('trainingNew/changeTeachMode', ''); + this.$store.dispatch('trainingNew/setSimulationPause', false); }, mounted() { }, @@ -148,7 +149,6 @@ export default { this.$store.dispatch('socket/clearTrainingStepTip'); this.$store.dispatch('trainingNew/clearStepOrder'); this.$store.dispatch('trainingNew/changeTeachMode', ''); - this.$store.dispatch('trainingNew/setSimulationPause', false); }).catch(() => { this.$message.error('结束实训失败!'); }); @@ -182,6 +182,6 @@ export default { .fault-button{ position: absolute; top: 15px; - right: 32px; + right: 10px; } From e2c9fa3c3e9cd844bf96b317944c6d37a4512b76 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 31 Aug 2022 14:20:36 +0800 Subject: [PATCH 3/6] =?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/designPlatform/trainingDesign.vue | 9 ++++++--- src/views/trainingManage/trainingList.vue | 8 +++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/designPlatform/trainingDesign.vue b/src/views/designPlatform/trainingDesign.vue index 6fd1df737..ee4d3bfda 100644 --- a/src/views/designPlatform/trainingDesign.vue +++ b/src/views/designPlatform/trainingDesign.vue @@ -6,9 +6,9 @@ {{ faultMode?'切换到普通模式':'切换到故障模式' }}
- 初始化 - 暂停 - 恢复 + 初始化 + 暂停 + 恢复 开始 结束 返回 @@ -38,6 +38,9 @@ export default { }; }, computed: { + record() { // 编制 + return this.$route.query.record; + }, mapId() { return this.$route.query.mapId; }, diff --git a/src/views/trainingManage/trainingList.vue b/src/views/trainingManage/trainingList.vue index 9d0fa359d..a1f7f4eed 100644 --- a/src/views/trainingManage/trainingList.vue +++ b/src/views/trainingManage/trainingList.vue @@ -182,7 +182,10 @@ export default { return list; }, drawUp(index, row) { - console.log('编辑', index, row); + const qObj = {...this.$route.query}; + qObj.record = true; + this.$router.push({ query:{...qObj}}); + console.log('编辑', qObj, index, row); getTrainingAll(row.id).then(resp => { this.$store.dispatch('trainingNew/setTrainingDetail', null); if (resp.data && resp.data.mapLocationJson) { @@ -239,6 +242,9 @@ export default { this.$message.error('请先结束当前实训后再加载新的实训!'); return; } + const qObj = {...this.$route.query}; + delete qObj.record; + this.$router.push({ query:{...qObj}}); try { const detailResp = await getTrainingAll(data.id); this.training = detailResp.data; From fca267fde12d9643679df122cbb646c042bdf0b6 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 31 Aug 2022 14:34:24 +0800 Subject: [PATCH 4/6] =?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/trainingManage/trainingList.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/trainingManage/trainingList.vue b/src/views/trainingManage/trainingList.vue index a1f7f4eed..74d3dd37f 100644 --- a/src/views/trainingManage/trainingList.vue +++ b/src/views/trainingManage/trainingList.vue @@ -182,6 +182,10 @@ export default { return list; }, drawUp(index, row) { + if (this.trainingSwitch) { + this.$message.error('请先结束当前实训再编制!'); + return; + } const qObj = {...this.$route.query}; qObj.record = true; this.$router.push({ query:{...qObj}}); From 4f99b40a2b4204f8d889d84dd74f32caa01691b9 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 31 Aug 2022 14:49:01 +0800 Subject: [PATCH 5/6] =?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/trainingManage/editDetails.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/trainingManage/editDetails.vue b/src/views/trainingManage/editDetails.vue index c72563768..a3a9b7428 100644 --- a/src/views/trainingManage/editDetails.vue +++ b/src/views/trainingManage/editDetails.vue @@ -1,7 +1,7 @@