From 4ceaba9c59bb66fe6a1e3a177053e5b4e7f3aff9 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 11 Mar 2020 10:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=97=E4=BA=AC=E4=B8=80=E5=8F=B7=E7=BA=BF?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=8C=87=E4=BB=A4=E4=BB=A3=E7=A0=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menus/dialog/sectionCmdControl.vue | 840 +++++++++--------- .../menus/dialog/sectionControl.vue | 21 +- .../theme/beijing_01/menus/menuSection.vue | 44 - 3 files changed, 433 insertions(+), 472 deletions(-) diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/sectionCmdControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/sectionCmdControl.vue index b2364f5b6..7f7cd65b0 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/sectionCmdControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/sectionCmdControl.vue @@ -1,435 +1,455 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue index 7e9264dfc..ec4708039 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue @@ -77,9 +77,7 @@ export default { return this.dialogShow ? getDomIdByOperation(this.operation) : ''; }, title() { - if (this.operation == OperationEvent.Section.lock.menu.operation) { - return '区段封锁'; - } else if (this.operation == OperationEvent.Section.split.menu.operation) { + if (this.operation == OperationEvent.Section.split.menu.operation) { this.radio = '2'; return '区段控制'; } else if (this.operation == OperationEvent.Section.active.menu.operation) { @@ -129,10 +127,7 @@ export default { mouseCancelState(this.selected); }, commit() { - if (this.operation == OperationEvent.Section.lock.menu.operation) { - /** 区段封锁*/ - this.lock(); - } else if (this.operation == OperationEvent.Section.split.menu.operation) { + if (this.operation == OperationEvent.Section.split.menu.operation) { /** 轨道区段切除*/ this.split(); } else if (this.operation == OperationEvent.Section.active.menu.operation) { @@ -140,16 +135,6 @@ export default { this.active(); } }, - // 道岔单锁 - lock() { - const operate = { - over:true, - operation: OperationEvent.Section.lock.menu.operation, - cmdType: CMD.Section.CMD_SWITCH_SINGLE_LOCK - }; - - this.sendCommand(operate); - }, // 轨道区段切除 split() { const operate = { @@ -197,7 +182,7 @@ export default { this.doClose(); this.$refs.noticeInfo.doShow(operate, error.message); }); - }, + } } }; diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index 1d2575e64..77fdccda0 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -71,16 +71,6 @@ export default { handler: this.axlePreReset, cmdType: CMD.Section.CMD_SECTION_AXIS_PRE_RESET }, - { - label: '区段封锁', - handler: this.lock, - cmdType: CMD.Section.CMD_SECTION_BLOCK - }, - { - label: '区段解封', - handler: this.unlock, - cmdType: CMD.Section.CMD_SECTION_UNBLOCK - }, { label: '区段设置限速', handler: this.setSpeed, @@ -307,40 +297,6 @@ export default { } }); }, - // 区段解锁 - lock() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Section.lock.menu.operation, - param: { - sectionCode: `${this.selected.code}` - } - }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.sectionControl.doShow(operate, this.selected); - } - }); - }, - // 区段封锁 - unlock() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Section.unlock.menu.operation, - param: { - sectionCode: `${this.selected.code}` - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.sectionCmdControl.doShow(operate, this.selected); - } - }); - }, // 设置速度 setSpeed() { // let operate = {