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() {