From 36364f9f26cbbbe414e23678222d699930cce5eb Mon Sep 17 00:00:00 2001 From: lVAL Date: Sat, 20 Feb 2021 17:14:52 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=EF=BC=9A=E5=AE=81?= =?UTF-8?q?=E6=B3=A21=20=E9=97=AE=E9=A2=98=EF=BC=9A=E9=81=93=E5=B2=94?= =?UTF-8?q?=E5=92=8C=E5=8C=BA=E6=AE=B5=20=E9=80=89=E6=8B=A9=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=90=8E=E9=AB=98=E4=BA=AE=E5=9C=A8=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=87=BA=E6=9D=A5=E5=90=8E=E6=B6=88=E5=A4=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 1 - src/jmapNew/shape/Section/EMouse.js | 28 +++++++++++++++------------- src/jmapNew/shape/Switch/EMouse.js | 26 +++++++++++++------------- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 8131e2a24..b616e4738 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -143,7 +143,6 @@ class Jlmap { this.$painter.updateScreen(options); } else { this.$options.update(options); - console.log(options, this.$options); this.$painter.updateTransform(this.$options); } if (this.$options.disabled == true) { diff --git a/src/jmapNew/shape/Section/EMouse.js b/src/jmapNew/shape/Section/EMouse.js index e7bb0f6de..046a2042e 100644 --- a/src/jmapNew/shape/Section/EMouse.js +++ b/src/jmapNew/shape/Section/EMouse.js @@ -154,19 +154,21 @@ class EMouse extends Group { } mouseout(e) { - if (this.device.model.switchSection && this.device.model.relSwitchCode) { - const instance = this.getInstanceByCode(this.device.model.relSwitchCode); - if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) { - instance.mouseEvent.mouseout(e); - } - } - this.TextName && this.TextName.hide(); - this.sectionTextBorder && this.sectionTextBorder.hide(); - this.lineBorder && this.lineBorder.hide(); - const instance = this.getInstanceByCode(this.device.model.trainWindowCode); - if (instance && instance.mouseEvent && instance.mouseEvent.mouseLeave) { - instance.mouseEvent.mouseLeave(e); - } + if (!this.device.model.down) { + if (this.device.model.switchSection && this.device.model.relSwitchCode) { + const instance = this.getInstanceByCode(this.device.model.relSwitchCode); + if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) { + instance.mouseEvent.mouseout(e); + } + } + this.TextName && this.TextName.hide(); + this.sectionTextBorder && this.sectionTextBorder.hide(); + this.lineBorder && this.lineBorder.hide(); + const instance = this.getInstanceByCode(this.device.model.trainWindowCode); + if (instance && instance.mouseEvent && instance.mouseEvent.mouseLeave) { + instance.mouseEvent.mouseLeave(e); + } + } } mouseEnter(e) { diff --git a/src/jmapNew/shape/Switch/EMouse.js b/src/jmapNew/shape/Switch/EMouse.js index 1a69f881f..d1da3c538 100644 --- a/src/jmapNew/shape/Switch/EMouse.js +++ b/src/jmapNew/shape/Switch/EMouse.js @@ -71,21 +71,21 @@ class EMouse extends Group { } mouseout(e) { - // if (!this.device.model.down) { - this.switchBorder && this.switchBorder.hide(); - this.device.setTextStyle({ - textFill: this.device.style.backgroundColor - }); - this.textRect && this.textRect.hide(); - this.device.setState(this.device.model); + if (!this.device.model.down) { + this.switchBorder && this.switchBorder.hide(); + this.device.setTextStyle({ + textFill: this.device.style.backgroundColor + }); + this.textRect && this.textRect.hide(); + this.device.setState(this.device.model); - const section = store.getters['map/getDeviceByCode'](this.device.model.sectionACode) || {}; - const parentSection = store.getters['map/getDeviceByCode'](section.parentCode) || {}; - const instance = this.getInstanceByCode(parentSection.trainWindowCode); - if (instance && instance.mouseEvent && instance.mouseEvent.mouseLeave) { - instance.mouseEvent.mouseLeave(e); + const section = store.getters['map/getDeviceByCode'](this.device.model.sectionACode) || {}; + const parentSection = store.getters['map/getDeviceByCode'](section.parentCode) || {}; + const instance = this.getInstanceByCode(parentSection.trainWindowCode); + if (instance && instance.mouseEvent && instance.mouseEvent.mouseLeave) { + instance.mouseEvent.mouseLeave(e); + } } - // } } mouseover(e) { From faf2bc09a1a8de6736ba616714d903fa5e78cc9d Mon Sep 17 00:00:00 2001 From: lVAL Date: Sat, 20 Feb 2021 17:24:49 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=EF=BC=9A=E5=AE=81?= =?UTF-8?q?=E6=B3=A21=20=E9=97=AE=E9=A2=98=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=AD=E7=BB=84=E4=BB=B6=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=AF=BC=E8=87=B4=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue | 1 - src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue index 6b0e6dcef..8daa10ebc 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/buttonConfirm.vue @@ -66,7 +66,6 @@ import {commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; export default { - name: 'ConfirmTip', data() { return { dialogShow: false, diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue index f823e1b03..df1752dc2 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuStationLight.vue @@ -20,7 +20,7 @@ import OperateConfirm from './dialog/childDialog/operateConfirm'; import ButtonConfirm from './dialog/childDialog/buttonConfirm'; export default { - name: 'StationControlLight', + name: 'StationStationLight', components: { PopMenu, PasswordInput, From 6d7abac8d8c884e10d420afc043b6dd891c36567 Mon Sep 17 00:00:00 2001 From: lVAL Date: Sat, 20 Feb 2021 18:23:26 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=EF=BC=9A=20=E5=8C=97?= =?UTF-8?q?=E4=BA=AC1=20=E5=AE=81=E6=B3=A21=20=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=20=E5=85=B3=E4=BA=8E=E9=80=89=E6=8B=A9=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E4=B8=A4=E6=AC=A1=E6=93=8D=E4=BD=9C=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E6=93=8D=E4=BD=9C=E4=B8=AD=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E5=80=99=E6=97=A0=E6=95=85=E9=AB=98=E4=BA=AE=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 4 ++++ .../beijing_01/menus/dialog/alxeEffective.vue | 1 + .../menus/dialog/routeSelection.vue | 1 + .../menus/dialog/standBackStrategy.vue | 1 + .../beijing_01/menus/dialog/standDetail.vue | 1 + .../menus/dialog/stationCmdControl.vue | 1 + .../menus/dialog/stationHumanControlAll.vue | 1 + .../dialog/stationSetRouteControlAll.vue | 1 + .../beijing_01/menus/dialog/trainDefine.vue | 4 ++-- .../beijing_01/menus/dialog/trainDelete.vue | 1 + .../menus/dialog/trainDeletePlan.vue | 3 +++ .../beijing_01/menus/dialog/trainEdit.vue | 4 ++-- .../beijing_01/menus/dialog/trainFlag.vue | 4 ++-- .../beijing_01/menus/dialog/trainMove.vue | 4 ++-- .../menus/dialog/trainMoveEvently.vue | 3 +++ .../beijing_01/menus/dialog/trainSetHead.vue | 4 ++-- .../beijing_01/menus/dialog/trainSetPlan.vue | 4 ++-- .../beijing_01/menus/dialog/trainSetWork.vue | 4 ++-- src/jmapNew/theme/beijing_01/menus/index.vue | 19 +++++++++++++++++++ .../menus/dialog/cancelAllLimit.vue | 1 + .../components/menus/dialog/routeControl.vue | 1 + .../components/menus/dialog/routeDetail.vue | 1 + .../menus/dialog/routeHandControl.vue | 1 + .../menus/dialog/sectionControl.vue | 1 + .../components/menus/dialog/sectionUnLock.vue | 1 + .../components/menus/dialog/setFault.vue | 3 +++ .../menus/dialog/setTrainOperation.vue | 3 +++ .../menus/dialog/speedCmdControl.vue | 1 + .../components/menus/dialog/standControl.vue | 2 +- .../components/menus/dialog/standDetail.vue | 2 +- .../menus/dialog/standJumpStopControl.vue | 2 +- .../components/menus/dialog/standRunLevel.vue | 2 +- .../components/menus/dialog/standStopTime.vue | 2 +- .../menus/dialog/stationCmdControl.vue | 1 + .../menus/dialog/stationHumanControlAll.vue | 7 +++++-- .../dialog/stationSetRouteControlAll.vue | 1 + .../components/menus/dialog/switchControl.vue | 1 + .../menus/dialog/switchHookLock.vue | 1 + .../components/menus/dialog/trainAddPlan.vue | 1 + .../components/menus/dialog/trainControl.vue | 1 + .../menus/dialog/trainSpeedLimit.vue | 1 + .../ningbo_01/menus/dialog/alxeEffective.vue | 1 + .../ningbo_01/menus/dialog/buttonDown.vue | 7 +++++-- .../dialog/childDialog/buttonConfirm.vue | 1 + .../ningbo_01/menus/dialog/routeSelection.vue | 1 + .../ningbo_01/menus/dialog/routerCommand.vue | 1 + .../menus/dialog/sectionAlxeReset.vue | 7 +++++-- .../menus/dialog/standBulkBuckleTrain.vue | 2 +- .../menus/dialog/stationBackStrategy.vue | 1 + .../ningbo_01/menus/dialog/stationControl.vue | 1 + .../ningbo_01/menus/dialog/trainDefine.vue | 4 ++-- .../ningbo_01/menus/dialog/trainDelete.vue | 1 + .../ningbo_01/menus/dialog/trainMove.vue | 1 + .../ningbo_01/menus/dialog/trainSetHead.vue | 1 + .../ningbo_01/menus/dialog/trainSetPlan.vue | 1 + .../ningbo_01/menus/dialog/trainSetWork.vue | 1 + .../menus/dialog/trainSetWorkATP.vue | 1 + .../menus/dialog/turnBackControl.vue | 1 + src/jmapNew/theme/ningbo_01/menus/index.vue | 19 +++++++++++++++++++ .../ningbo_01/menus/menuStationStand.vue | 18 ------------------ 60 files changed, 126 insertions(+), 46 deletions(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index b616e4738..03c2971a0 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -640,6 +640,10 @@ class Jlmap { }); } + clearEvent() { + this.$zr.curEvent = null; + } + clear() { this.lineCode = ''; this.style = {}; diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue index 248909bea..40bdfdea3 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue @@ -293,6 +293,7 @@ export default { }, doClose() { this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue index 54818b9de..d25914d36 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue @@ -159,6 +159,7 @@ export default { this.loading = false; this.dialogShow = false; this.restoreBeforeDevices(); + this.$root.$emit('dialogClose', this.selected); this.$refs.table.setCurrentRow(); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue index 113f6ad75..511f5a541 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue @@ -177,6 +177,7 @@ export default { doClose() { this.loading = false; this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue index 15a9d8250..b2de8a649 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standDetail.vue @@ -232,6 +232,7 @@ export default { doClose() { this.loading = false; this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue index d4b1e7c2c..35dc51e08 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/stationCmdControl.vue @@ -225,6 +225,7 @@ export default { }, doClose() { this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue b/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue index e8673779a..855283f97 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue @@ -75,6 +75,7 @@ export default { doClose() { this.loading = false; this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue b/src/jmapNew/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue index 1a4b552b8..bb8ada826 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue @@ -93,6 +93,7 @@ export default { doClose() { this.loading = false; this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); }, diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/trainDefine.vue b/src/jmapNew/theme/beijing_01/menus/dialog/trainDefine.vue index 13f7eab80..5a868ad19 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/trainDefine.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/trainDefine.vue @@ -109,6 +109,7 @@ export default { doClose() { this.loading = false; this.dialogShow = false; + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); this.$store.dispatch('map/setTrainWindowShow', false); mouseCancelState(this.selected); @@ -161,13 +162,12 @@ export default { } }; -