From b3830f2cc5dd314ce3328252d1a76811fc6de1eb Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 25 Sep 2019 10:46:35 +0800 Subject: [PATCH] =?UTF-8?q?desc:=20=E6=96=B0=E5=A2=9E=E7=8E=B0=E5=9C=B0=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialog/childDialog/passwordInputBox.vue | 7 +- .../chengdu_03/menus/dialog/routeControl.vue | 7 +- src/jmap/theme/chengdu_03/menus/menuBar.vue | 182 +---------- src/jmap/theme/chengdu_03/menus/menuLimit.vue | 228 +++++++------- .../theme/chengdu_03/menus/menuSection.vue | 6 - .../theme/chengdu_03/menus/menuSignal.vue | 14 +- .../theme/chengdu_03/menus/menuStation.vue | 18 +- .../chengdu_03/menus/menuStationControl.vue | 128 ++++---- .../chengdu_03/menus/menuStationStand.vue | 36 --- .../theme/chengdu_03/menus/menuSwitch.vue | 12 - src/jmap/theme/chengdu_03/menus/menuTool.vue | 291 +++++++++--------- src/jmap/theme/chengdu_03/menus/statusBar.vue | 31 -- .../menus/statusDownTrainDetail.vue | 31 -- .../chengdu_03/menus/statusUpTrainDetail.vue | 31 -- src/scripts/ConstDic.js | 4 +- src/scripts/OperationConfig.js | 35 ++- .../SignalRouteOperationConverter.js | 22 +- src/scripts/plugin/converter/manager.js | 3 +- src/views/demonstration/detail/index.vue | 18 +- src/views/jointTraining/chatWindow.vue | 17 +- src/views/jointTraining/menuDemon.vue | 24 +- src/views/map/mapdraft/mapedit/configMap.vue | 19 +- .../mapdraft/mapedit/dataRelation/index.vue | 29 +- 23 files changed, 424 insertions(+), 769 deletions(-) delete mode 100644 src/jmap/theme/chengdu_03/menus/statusBar.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/statusDownTrainDetail.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/statusUpTrainDetail.vue 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 @@