From 74a2bbb1c6fd2c746ecd00732901cae083a8696f Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 18 Oct 2019 18:20:17 +0800 Subject: [PATCH] =?UTF-8?q?desc:=20=E8=B0=83=E6=95=B4=E6=88=90=E9=83=BD?= =?UTF-8?q?=E4=B8=89=E5=8F=B7=E7=8E=B0=E5=9C=B0=EF=BC=8C=E8=A1=8C=E8=B0=83?= =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chengdu_03/menus/dialog/routeGuide.vue | 45 +- .../menus/dialog/routeHandControl.vue | 95 ++-- .../theme/chengdu_03/menus/menuButton.vue | 1 + src/scripts/ConstDic.js | 6 +- src/scripts/OperationConfig.js | 63 ++- .../converter/TrainOperationConverter.js | 426 +++++++++--------- src/utils/baseUrl.js | 4 +- 7 files changed, 287 insertions(+), 353 deletions(-) diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue index 3ab16dd4b..a17a5c0a5 100644 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue +++ b/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue @@ -22,17 +22,7 @@
进路列表 - + @@ -78,7 +68,6 @@ export default { dialogShow: false, loading: false, selected: null, - row: null, operation: '', display: true, stationName: '', @@ -163,44 +152,18 @@ export default { doClose() { this.loading = false; this.dialogShow = false; - this.guide(); this.$refs.table.setCurrentRow(); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, - guide() { - // 恢复之前选中设备 - if (this.beforeSectionList && this.beforeSectionList.length) { - this.beforeSectionList.forEach(elem => { - elem.cutOff = false; - }); - } - - this.$store.dispatch('training/updateMapState', [...this.beforeSectionList]); - this.beforeSectionList = []; - }, clickEvent(row, event, column) { - this.row = row; if (row) { - // 恢复进路区段的切除状态 - this.guide(); - row.canSetting = true; - // 设置选中区段为切除状态 - if (row.containSectionList && row.containSectionList.length) { - // 设置新选的进路区段为切除状态 - row.containSectionList.forEach(elem => { - elem.cutOff = true; - }); - } - - this.$store.dispatch('training/updateMapState', [...row.containSectionList]); - this.beforeSectionList = row.containSectionList || []; - - // 设置选中指令 const operate = { + repeat: true, type: MapDeviceType.Signal.type, operation: OperationEvent.Signal.guide.choose.operation, - val: row.code + val: row.code, + selection: row }; this.$store.dispatch('training/next', operate).then(({ valid }) => { diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue index 78513f431..1d0b730c5 100644 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue +++ b/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue @@ -14,16 +14,7 @@
- - - - +