From c570e418e1e15341e5bb9a521fe11ad3eb17f321 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 24 Jun 2020 17:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=9B=E5=B1=B1=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=AE=9A=E4=B9=89=EF=BC=8C=E8=B0=83=E6=95=B4=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/menus/dialog/standRunLevel.vue | 2 +- .../childDialog/confirmControlSpeed.vue | 50 ++++++----- .../menus/dialog/speedLimitControl.vue | 6 +- .../theme/foshan_01/menus/menuButton.vue | 2 +- .../theme/foshan_01/operationConfig.js | 82 +++++++++++++++---- src/layout/components/userInfo.vue | 40 +-------- src/views/newMap/displayNew/index.vue | 6 ++ src/views/newMap/displayNew/menuLesson.vue | 6 +- 8 files changed, 106 insertions(+), 88 deletions(-) diff --git a/src/jmapNew/theme/components/menus/dialog/standRunLevel.vue b/src/jmapNew/theme/components/menus/dialog/standRunLevel.vue index 1f2a39786..2d4cae945 100644 --- a/src/jmapNew/theme/components/menus/dialog/standRunLevel.vue +++ b/src/jmapNew/theme/components/menus/dialog/standRunLevel.vue @@ -276,7 +276,7 @@ export default { checkChange(check) { const operate = { operation: OperationEvent.StationStand.setRunLevel.check.operation, - val: `${check}` + val: `${!!check}` }; this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { diff --git a/src/jmapNew/theme/foshan_01/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/foshan_01/menus/dialog/childDialog/confirmControlSpeed.vue index 3e06d8f0b..aaeec0c42 100644 --- a/src/jmapNew/theme/foshan_01/menus/dialog/childDialog/confirmControlSpeed.vue +++ b/src/jmapNew/theme/foshan_01/menus/dialog/childDialog/confirmControlSpeed.vue @@ -44,37 +44,35 @@ export default { return this.dialogShow && !this.$store.state.menuOperation.break; }, title() { - if (this.dialogShow) { - if (this.operation === OperationEvent.Section.setSpeed.order.operation) { - return '区段设置限速'; - } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { - return '区段取消限速'; - } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { - return '道岔设置限速'; - } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { - return '道岔取消限速'; - } + if (this.operation === OperationEvent.Section.setSpeed.order.operation) { + return '区段设置限速'; + } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { + return '区段取消限速'; + } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { + return '道岔设置限速'; + } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { + return '道岔取消限速'; } + return ''; }, domIdCancel() { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; }, domIdConfirm() { - if (this.dialogShow) { - if (this.operation === OperationEvent.Section.setSpeed.order.operation) { - /** 区段设置限速*/ - return OperationEvent.Section.setSpeed.confirm.domId; - } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { - /** 区段取消限速*/ - return OperationEvent.Section.cancelSpeed.confirm.domId; - } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { - /** 道岔设置限速*/ - return OperationEvent.Switch.setSpeed.confirm.domId; - } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { - /** 道岔取消限速*/ - return OperationEvent.Switch.cancelSpeed.confirm.domId; - } + if (this.operation === OperationEvent.Section.setSpeed.order.operation) { + /** 区段设置限速*/ + return OperationEvent.Section.setSpeed.confirm.domId; + } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { + /** 区段取消限速*/ + return OperationEvent.Section.cancelSpeed.confirm.domId; + } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { + /** 道岔设置限速*/ + return OperationEvent.Switch.setSpeed.confirm.domId; + } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { + /** 道岔取消限速*/ + return OperationEvent.Switch.cancelSpeed.confirm.domId; } + return ''; } }, mounted() { @@ -103,7 +101,7 @@ export default { }, commit() { const operate = { - type: this.type + operation: '' }; if (this.operation === OperationEvent.Section.setSpeed.order.operation) { @@ -121,7 +119,7 @@ export default { } this.loading = true; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.loading = false; this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); if (valid) { diff --git a/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue b/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue index 0abdfa413..b452c3adc 100644 --- a/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue +++ b/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue @@ -238,7 +238,7 @@ export default { return ''; }, domIdClose() { - return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; + return this.dialogShow ? OperationEvent.Command.close.menu.domId : ''; }, isCancelSpeed() { return this.operation == OperationEvent.Section.cancelSpeed.menu.operation || this.operation == OperationEvent.Switch.cancelSpeed.menu.operation; @@ -350,7 +350,8 @@ export default { }, speedSelectChange(val) { const operate = { - operation: '' + operation: '', + val: `${val}` }; if (this.operation == OperationEvent.Section.setSpeed.menu.operation) { @@ -523,7 +524,6 @@ export default { }, close() { const operate = { - type: this.type, operation: OperationEvent.Command.close.menu.operation }; this.writeRecord({ order: ++this.order, date: now(), context: '点击关闭', result: '' }); diff --git a/src/jmapNew/theme/foshan_01/menus/menuButton.vue b/src/jmapNew/theme/foshan_01/menus/menuButton.vue index 0393b55bb..4603a9296 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuButton.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuButton.vue @@ -1,5 +1,5 @@ @@ -58,6 +58,10 @@ export default { type: Number, required: true }, + tipBottom: { + type: Number, + default: 0 + }, showSelectStation: { type: Boolean, default() {