From 4dde67b582e40de6d2574a72ea49cc6bef5dd05c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 8 Jan 2020 16:23:45 +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=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialog/childDialog/confirmControl.vue | 663 +++++++++--------- .../beijing_01/menus/dialog/routeControl.vue | 415 ++++++----- .../beijing_01/menus/dialog/standStopTime.vue | 457 ++++++------ .../theme/beijing_01/menus/menuSignal.vue | 168 +++-- 4 files changed, 871 insertions(+), 832 deletions(-) diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue index 25e224a51..d4d96094f 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue @@ -1,355 +1,370 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue index 08b7b789a..5c4c5001a 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue @@ -1,223 +1,214 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue index df28e585e..3ee954e29 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standStopTime.vue @@ -1,238 +1,253 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue index c06da16fb..e56aeeb73 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue @@ -207,15 +207,17 @@ export default { setStoppage() { const operate = { start: true, - send: true, - code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.stoppage.menu.operation + code: `${this.selected.code}`, + operation: OperationEvent.Signal.stoppage.menu.operation, + cmdType: CMD.Signal.CMD_SIGNAL_ADD_FAULT, + param: { + Signal_Code: `${this.selected.code}` + } + }; mouseCancelState(this.selected); - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { @@ -229,15 +231,16 @@ export default { cancelStoppage() { const operate = { start: true, - send: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.cancelStoppage.menu.operation + cmdType: CMD.Signal.CMD_SIGNAL_REMOVE_FAULT, + operation: OperationEvent.Signal.cancelStoppage.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; mouseCancelState(this.selected); - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { @@ -251,14 +254,17 @@ export default { arrangementRoute() { const operate = { start: true, - send: true, + // send: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.arrangementRoute.menu.operation + // type: MapDeviceType.Signal.type, + // label: MapDeviceType.Signal.label, + operation: OperationEvent.Signal.arrangementRoute.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; - this.$store.dispatch('training/next', operate).then(({ valid, response }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); if (valid) { var tempData = null; @@ -276,63 +282,65 @@ export default { const operate = { start: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.cancelTrainRoute.menu.operation + operation: OperationEvent.Signal.cancelTrainRoute.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); if (valid) { this.$refs.routeControl.doShow(operate, this.selected); } }); }, - // 信号封锁 - lock() { - const operate = { - start: true, - send: true, - code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.lock.menu.operation - }; + // // 信号封锁 + // lock() { + // const operate = { + // start: true, + // send: true, + // code: this.selected.code, + // type: MapDeviceType.Signal.type, + // label: MapDeviceType.Signal.label, + // operation: OperationEvent.Signal.lock.menu.operation + // }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.routeLock.doShow(operate.operation, this.selected); - } - }).catch(() => { - this.$refs.noticeInfo.doShow(operate); - }); - }, - // 信号解封 - unlock() { - const operate = { - start: true, - code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.unlock.menu.operation - }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.routeCmdControl.doShow(operate, this.selected); - } - }); - }, + // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.routeLock.doShow(operate.operation, this.selected); + // } + // }).catch(() => { + // this.$refs.noticeInfo.doShow(operate); + // }); + // }, + // // 信号解封 + // unlock() { + // const operate = { + // start: true, + // code: this.selected.code, + // type: MapDeviceType.Signal.type, + // label: MapDeviceType.Signal.label, + // operation: OperationEvent.Signal.unlock.menu.operation + // }; + // this.$store.dispatch('training/next', operate).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.routeCmdControl.doShow(operate, this.selected); + // } + // }); + // }, // 信号重开 reopenSignal() { const operate = { start: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.reopenSignal.menu.operation + operation: OperationEvent.Signal.reopenSignal.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.routeControl.doShow(operate, this.selected); @@ -344,11 +352,12 @@ export default { const operate = { start: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.signalClose.menu.operation + operation: OperationEvent.Signal.signalClose.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.routeControl.doShow(operate, this.selected); @@ -359,11 +368,14 @@ export default { humanControl() { const operate = { start: true, - send: true, + // send: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.humanControl.menu.operation + // type: MapDeviceType.Signal.type, + // label: MapDeviceType.Signal.label, + operation: OperationEvent.Signal.humanControl.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; this.$store.dispatch('training/next', operate).then(({ valid, response }) => { if (valid) { @@ -380,11 +392,14 @@ export default { atsAutoControl() { const operate = { start: true, - send: true, + // send: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.atsAutoControl.menu.operation + // type: MapDeviceType.Signal.type, + // label: MapDeviceType.Signal.label, + operation: OperationEvent.Signal.atsAutoControl.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; this.$store.dispatch('training/next', operate).then(({ valid, response }) => { if (valid) { @@ -401,11 +416,14 @@ export default { detail() { const operate = { start: true, - send: true, + // send: true, code: this.selected.code, - type: MapDeviceType.Signal.type, - label: MapDeviceType.Signal.label, - operation: OperationEvent.Signal.detail.menu.operation + // type: MapDeviceType.Signal.type, + // label: MapDeviceType.Signal.label, + operation: OperationEvent.Signal.detail.menu.operation, + param: { + Signal_Code: `${this.selected.code}` + } }; this.$store.dispatch('training/next', operate).then(({ valid, response }) => { if (valid) {