diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue index 7fed4b130..a03d5a05c 100644 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue +++ b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue @@ -134,9 +134,12 @@ export default { const operate = { send: true, type: this.operate.type, - operation: this.operate.operateCode, - val: this.operate.val + operation: this.operate.operateCode }; + if (this.operate.val) { + operate['val'] = this.operate.val; + } + console.log(operate); if (this.passwordCheck === this.correctPassword) { this.$store.dispatch('training/next', operate).then(({ valid }) => { this.loading = false; diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue index 003a0b7d6..d959ba7e3 100644 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue +++ b/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue @@ -203,12 +203,14 @@ export default { humanTrainRoute() { const operate = { type: MapDeviceType.Signal.type, - operation: OperationEvent.Signal.humanTrainRoute.menu.operation + operation: OperationEvent.Signal.humanTrainRoute.menu.operation, + operateCode: OperationEvent.Signal.humanTrainRoute.confirm.operation }; this.$store.dispatch('training/next', operate).then(({ valid }) => { if (valid) { - this.$refs.password.doShow(); + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + this.$refs.password.doShow(operate); } }).catch(() => { this.loading = false; @@ -271,7 +273,6 @@ export default { // 进路收人工控 humanControl() { const operate = { - // send: true, type: MapDeviceType.Signal.type, operation: OperationEvent.Signal.humanControl.menu.operation, operateCode: OperationEvent.Signal.humanControl.confirm.operation, diff --git a/src/jmap/theme/chengdu_03/menus/menuBar.vue b/src/jmap/theme/chengdu_03/menus/menuBar.vue index 29f4231cd..296a52a59 100644 --- a/src/jmap/theme/chengdu_03/menus/menuBar.vue +++ b/src/jmap/theme/chengdu_03/menus/menuBar.vue @@ -8,13 +8,7 @@