From 80d016a2b50bb4518699fef8bc82ae3ec3457622 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 28 May 2020 16:40:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=85=AC=E5=85=B1=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../beijing_01/menus/dialog/trainAddPlan.vue | 222 ------------------ .../theme/beijing_01/menus/menuSection.vue | 14 +- .../theme/beijing_01/menus/menuSignal.vue | 30 +-- .../beijing_01/menus/menuStationStand.vue | 10 +- .../theme/beijing_01/menus/menuSwitch.vue | 9 +- .../beijing_01/menus/utils/menuOperate.js | 11 +- .../chengdu_01/menus/dialog/trainInitPlan.vue | 214 ----------------- .../theme/chengdu_01/menus/menuSection.vue | 14 +- .../theme/chengdu_01/menus/menuSignal.vue | 9 +- .../chengdu_01/menus/menuStationStand.vue | 9 +- .../theme/chengdu_01/menus/menuSwitch.vue | 9 +- .../chengdu_01/menus/utils/menuOperate.js | 4 +- .../chengdu_03/menus/dialog/trainInitPlan.vue | 208 ---------------- .../theme/chengdu_03/menus/menuSection.vue | 14 +- .../theme/chengdu_03/menus/menuSignal.vue | 9 +- .../chengdu_03/menus/menuStationStand.vue | 9 +- .../theme/chengdu_03/menus/menuSwitch.vue | 9 +- .../chengdu_03/menus/utils/menuOperate.js | 4 +- .../foshan_01/menus/dialog/trainAddPlan.vue | 212 ----------------- .../theme/foshan_01/menus/menuSection.vue | 14 +- .../theme/foshan_01/menus/menuSignal.vue | 9 +- .../foshan_01/menus/menuStationStand.vue | 9 +- .../theme/foshan_01/menus/menuSwitch.vue | 9 +- .../foshan_01/menus/utils/menuOperate.js | 4 +- .../fuzhou_01/menus/dialog/trainAddPlan.vue | 212 ----------------- .../theme/fuzhou_01/menus/menuSection.vue | 14 +- .../theme/fuzhou_01/menus/menuSignal.vue | 9 +- .../fuzhou_01/menus/menuStationStand.vue | 9 +- .../theme/fuzhou_01/menus/menuSwitch.vue | 9 +- .../fuzhou_01/menus/utils/menuOperate.js | 4 +- .../haerbin_01/menus/dialog/trainInitPlan.vue | 210 ----------------- .../theme/haerbin_01/menus/menuSection.vue | 14 +- .../theme/haerbin_01/menus/menuSignal.vue | 9 +- .../haerbin_01/menus/menuStationStand.vue | 9 +- .../theme/haerbin_01/menus/menuSwitch.vue | 9 +- .../haerbin_01/menus/utils/menuOperate.js | 4 +- .../ningbo_01/menus/dialog/trainAddPlan.vue | 212 ----------------- .../theme/ningbo_01/menus/menuSection.vue | 14 +- .../theme/ningbo_01/menus/menuSignal.vue | 9 +- .../ningbo_01/menus/menuStationStand.vue | 9 +- .../theme/ningbo_01/menus/menuSwitch.vue | 9 +- .../ningbo_01/menus/utils/menuOperate.js | 4 +- .../newMap/mapsystemNew/common/commonMenu.vue | 39 ++- .../mapsystemNew/common/menus/noticeInfo.vue | 11 +- .../mapsystemNew/common/menus/setFault.vue | 39 +-- .../common/menus/trainAddPlan.vue | 42 +--- 46 files changed, 188 insertions(+), 1777 deletions(-) delete mode 100644 src/jmapNew/theme/beijing_01/menus/dialog/trainAddPlan.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menus/dialog/trainInitPlan.vue delete mode 100644 src/jmapNew/theme/chengdu_03/menus/dialog/trainInitPlan.vue delete mode 100644 src/jmapNew/theme/foshan_01/menus/dialog/trainAddPlan.vue delete mode 100644 src/jmapNew/theme/fuzhou_01/menus/dialog/trainAddPlan.vue delete mode 100644 src/jmapNew/theme/haerbin_01/menus/dialog/trainInitPlan.vue delete mode 100644 src/jmapNew/theme/ningbo_01/menus/dialog/trainAddPlan.vue diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/trainAddPlan.vue b/src/jmapNew/theme/beijing_01/menus/dialog/trainAddPlan.vue deleted file mode 100644 index 5c382edd1..000000000 --- a/src/jmapNew/theme/beijing_01/menus/dialog/trainAddPlan.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index 9e2f25d9b..b8cd5cca4 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -5,8 +5,6 @@ - - @@ -23,8 +21,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; -import TrainAddPlan from './dialog/trainAddPlan'; export default { name: 'SectionMenu', @@ -33,9 +29,7 @@ export default { SectionControl, SpeedLimitControl, AlxeEffective, - NoticeInfo, - SetFault, - TrainAddPlan + NoticeInfo }, props: { selected: { @@ -183,7 +177,7 @@ export default { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainAddPlan.doShow(operate, this.selected); + this.$store.dispatch('training/setCommonMenuStep', operate); } }); }, @@ -277,7 +271,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -285,7 +279,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); } diff --git a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue index 6c533599b..8442ea0f2 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue @@ -7,7 +7,6 @@ - @@ -24,10 +23,8 @@ import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu } from '@/scripts/ConstDic'; -import { mouseCancelState } from './utils/menuItemStatus'; import PasswordBox from './dialog/childDialog/passwordInputBox.vue'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'SignalMenu', @@ -38,8 +35,7 @@ export default { RouteHandControl, RouteDetail, NoticeInfo, - PasswordBox, - SetFault + PasswordBox }, props: { selected: { @@ -94,16 +90,16 @@ export default { ] }, menuForce: [ - { - label: '设置故障', - handler: this.setStoppage, - cmdType: CMD.Fault.CMD_SET_FAULT - }, - { - label: '取消故障', - handler: this.cancelStoppage, - cmdType: CMD.Fault.CMD_CANCEL_FAULT - } + { + label: '设置故障', + handler: this.setStoppage, + cmdType: CMD.Fault.CMD_SET_FAULT + }, + { + label: '取消故障', + handler: this.cancelStoppage, + cmdType: CMD.Fault.CMD_CANCEL_FAULT + } ] }; }, @@ -284,7 +280,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -292,7 +288,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue b/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue index e5087be1f..948dea0c8 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuStationStand.vue @@ -8,7 +8,6 @@ - @@ -27,9 +26,7 @@ import {DeviceMenu } from '@/scripts/ConstDic'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; -import { mouseCancelState } from './utils/menuItemStatus'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'StationStandMenu', @@ -41,8 +38,7 @@ export default { StandRunLevel, NoticeInfo, StandBackStrategy, - StandStopTime, - SetFault + StandStopTime }, props: { selected: { @@ -202,7 +198,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -210,7 +206,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue b/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue index fa303a19d..f5fcf10f8 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue @@ -6,7 +6,6 @@ - @@ -24,7 +23,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'SwitchMenu', @@ -34,8 +32,7 @@ export default { SwitchControl, SpeedLimitControl, AlxeEffective, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -196,7 +193,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -204,7 +201,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js b/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js index c8a60f23d..504137582 100644 --- a/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js @@ -196,7 +196,16 @@ export const menuOperate = { operation: OperationEvent.StationControl.emergencyStationControl.menu.operation, cmdType:CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL } - + }, + Common: { + setFault: { + operation: OperationEvent.MixinCommand.stoppage.menu.operation, + cmdType: CMD.Fault.CMD_SET_FAULT + }, + cancelFault: { + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, + cmdType: CMD.Fault.CMD_CANCEL_FAULT + } } }; diff --git a/src/jmapNew/theme/chengdu_01/menus/dialog/trainInitPlan.vue b/src/jmapNew/theme/chengdu_01/menus/dialog/trainInitPlan.vue deleted file mode 100644 index 22bc9a791..000000000 --- a/src/jmapNew/theme/chengdu_01/menus/dialog/trainInitPlan.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue index 334a91b4b..f8eb3c589 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue @@ -5,8 +5,6 @@ - - @@ -21,9 +19,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import TrainInitPlan from './dialog/trainInitPlan'; export default { name: 'SectionMenu', @@ -32,9 +28,7 @@ export default { NoticeInfo, SpeedLimitControl, SectionControl, - SectionCmdControl, - SetFault, - TrainInitPlan + SectionCmdControl }, props: { selected: { @@ -139,7 +133,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainInitPlan.doShow(step, this.selected); + this.$store.dispatch('training/setCommonMenuStep', step); } }); }, @@ -180,7 +174,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -188,7 +182,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue index 0e623ebb7..ec42c1333 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue @@ -3,7 +3,6 @@ - @@ -16,7 +15,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -24,8 +22,7 @@ export default { components: { PopMenu, NoticeInfo, - CreateDeviceLabel, - SetFault + CreateDeviceLabel }, props: { selected: { @@ -260,7 +257,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -268,7 +265,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue b/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue index 0522b8bad..20c05cd3d 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue @@ -3,7 +3,6 @@ - @@ -16,7 +15,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -24,8 +22,7 @@ export default { components: { PopMenu, NoticeInfo, - PlatformDwell, - SetFault + PlatformDwell }, props: { selected: { @@ -143,7 +140,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -151,7 +148,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue b/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue index b74d34dc1..2fc655cc5 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue @@ -4,7 +4,6 @@ - @@ -19,7 +18,6 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -28,8 +26,7 @@ export default { PopMenu, NoticeInfo, CreateDeviceLabel, - SwitchControl, - SetFault + SwitchControl }, mixins: [ CancelMouseState @@ -183,7 +180,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -191,7 +188,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_01/menus/utils/menuOperate.js b/src/jmapNew/theme/chengdu_01/menus/utils/menuOperate.js index 85d6fd6f6..4e9b5627d 100644 --- a/src/jmapNew/theme/chengdu_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/chengdu_01/menus/utils/menuOperate.js @@ -215,11 +215,11 @@ export const menuOperate = { }, Common: { setFault: { - operation: OperationEvent.Section.stoppage.menu.operation, + operation: OperationEvent.MixinCommand.stoppage.menu.operation, cmdType: CMD.Fault.CMD_SET_FAULT }, cancelFault: { - operation: OperationEvent.Section.cancelStoppage.menu.operation, + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, cmdType: CMD.Fault.CMD_CANCEL_FAULT } } diff --git a/src/jmapNew/theme/chengdu_03/menus/dialog/trainInitPlan.vue b/src/jmapNew/theme/chengdu_03/menus/dialog/trainInitPlan.vue deleted file mode 100644 index 8188f5ac8..000000000 --- a/src/jmapNew/theme/chengdu_03/menus/dialog/trainInitPlan.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue index eb68564cf..86ce03d25 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue @@ -5,8 +5,6 @@ - - @@ -21,9 +19,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import TrainInitPlan from './dialog/trainInitPlan'; export default { name: 'SectionMenu', @@ -32,9 +28,7 @@ export default { SectionControl, SectionDetail, TrainCreate, - NoticeInfo, - SetFault, - TrainInitPlan + NoticeInfo }, props: { selected: { @@ -201,7 +195,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -209,7 +203,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, @@ -234,7 +228,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainInitPlan.doShow(step, this.selected); + this.$store.dispatch('training/setCommonMenuStep', step); } }); } diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue b/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue index 9501c8ced..7a4796ad3 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue @@ -8,7 +8,6 @@ - @@ -26,7 +25,6 @@ import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import PasswordBox from './dialog/childDialog/passwordInputBox'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -39,8 +37,7 @@ export default { RouteDetail, RouteGuide, NoticeInfo, - PasswordBox, - SetFault + PasswordBox }, props: { selected: { @@ -233,7 +230,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -241,7 +238,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue b/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue index d1d1307dc..c3d91a8dd 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue @@ -4,7 +4,6 @@ - @@ -18,7 +17,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -27,8 +25,7 @@ export default { PopMenu, StandControl, StandDetail, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -157,7 +154,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -165,7 +162,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue b/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue index 4abe91ca7..15c1d3593 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue @@ -4,7 +4,6 @@ - @@ -20,7 +19,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'SwitchMenu', @@ -28,8 +26,7 @@ export default { PopMenu, SectionControl, SwitchControl, - NoticeInfo, - SetFault + NoticeInfo }, mixins: [ CancelMouseState @@ -156,7 +153,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -164,7 +161,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/chengdu_03/menus/utils/menuOperate.js b/src/jmapNew/theme/chengdu_03/menus/utils/menuOperate.js index 85d6fd6f6..4e9b5627d 100644 --- a/src/jmapNew/theme/chengdu_03/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/chengdu_03/menus/utils/menuOperate.js @@ -215,11 +215,11 @@ export const menuOperate = { }, Common: { setFault: { - operation: OperationEvent.Section.stoppage.menu.operation, + operation: OperationEvent.MixinCommand.stoppage.menu.operation, cmdType: CMD.Fault.CMD_SET_FAULT }, cancelFault: { - operation: OperationEvent.Section.cancelStoppage.menu.operation, + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, cmdType: CMD.Fault.CMD_CANCEL_FAULT } } diff --git a/src/jmapNew/theme/foshan_01/menus/dialog/trainAddPlan.vue b/src/jmapNew/theme/foshan_01/menus/dialog/trainAddPlan.vue deleted file mode 100644 index ecce5bd0b..000000000 --- a/src/jmapNew/theme/foshan_01/menus/dialog/trainAddPlan.vue +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue index 59173aa4e..b652821a2 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue @@ -5,8 +5,6 @@ - - @@ -21,8 +19,6 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; -import TrainAddPlan from './dialog/trainAddPlan'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; export default { @@ -32,9 +28,7 @@ export default { SectionControl, SectionUnLock, SpeedLimitControl, - NoticeInfo, - SetFault, - TrainAddPlan + NoticeInfo }, props: { selected: { @@ -166,7 +160,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainAddPlan.doShow(step, this.selected); + this.$store.dispatch('training/setCommonMenuStep', step); } }); }, @@ -174,7 +168,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -182,7 +176,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/foshan_01/menus/menuSignal.vue b/src/jmapNew/theme/foshan_01/menus/menuSignal.vue index 4ce8a70fc..bb566411e 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuSignal.vue @@ -9,7 +9,6 @@ - @@ -23,7 +22,6 @@ import RouteHandControl from './dialog/routeHandControl'; import RouterCommand from './dialog/routerCommand'; import RouteDetail from './dialog/routeDetail'; import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; @@ -43,8 +41,7 @@ export default { RouteHandControl, RouteDetail, RouterCommand, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -220,7 +217,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -228,7 +225,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/foshan_01/menus/menuStationStand.vue b/src/jmapNew/theme/foshan_01/menus/menuStationStand.vue index 566388699..32480089d 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuStationStand.vue @@ -9,7 +9,6 @@ - @@ -29,7 +28,6 @@ import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'StationStandMenu', @@ -42,8 +40,7 @@ export default { NoticeInfo, StandBackStrategy, StandStopTime, - StandDetainTrainAll, - SetFault + StandDetainTrainAll }, props: { selected: { @@ -199,7 +196,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -207,7 +204,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue b/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue index d21fcadbb..ab5115a25 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue @@ -5,7 +5,6 @@ - @@ -21,7 +20,6 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'SwitchMenu', @@ -30,8 +28,7 @@ export default { SwitchControl, SwitchUnLock, SpeedLimitControl, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -148,7 +145,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -156,7 +153,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js b/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js index 85d6fd6f6..4e9b5627d 100644 --- a/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js @@ -215,11 +215,11 @@ export const menuOperate = { }, Common: { setFault: { - operation: OperationEvent.Section.stoppage.menu.operation, + operation: OperationEvent.MixinCommand.stoppage.menu.operation, cmdType: CMD.Fault.CMD_SET_FAULT }, cancelFault: { - operation: OperationEvent.Section.cancelStoppage.menu.operation, + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, cmdType: CMD.Fault.CMD_CANCEL_FAULT } } diff --git a/src/jmapNew/theme/fuzhou_01/menus/dialog/trainAddPlan.vue b/src/jmapNew/theme/fuzhou_01/menus/dialog/trainAddPlan.vue deleted file mode 100644 index 0e36c6c80..000000000 --- a/src/jmapNew/theme/fuzhou_01/menus/dialog/trainAddPlan.vue +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue index f890aa92c..7824937d6 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue @@ -5,8 +5,6 @@ - - @@ -22,9 +20,7 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import TrainAddPlan from './dialog/trainAddPlan'; export default { name: 'SectionMenu', @@ -33,9 +29,7 @@ export default { SectionControl, SectionCmdControl, SpeedCmdControl, - NoticeInfo, - SetFault, - TrainAddPlan + NoticeInfo }, props: { selected: { @@ -202,7 +196,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainAddPlan.doShow(step, this.selected); + this.$store.dispatch('training/setCommonMenuStep', step); } }); }, @@ -222,7 +216,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -230,7 +224,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSignal.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSignal.vue index bfd31336c..bfe6fa94d 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSignal.vue @@ -8,7 +8,6 @@ - @@ -27,7 +26,6 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import { querySignalStatus } from '@/api/simulation'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -40,8 +38,7 @@ export default { RouteCmdControl, RouteHandControl, RouteDetail, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -220,7 +217,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -228,7 +225,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue b/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue index dccd12408..4b40f358f 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue @@ -8,7 +8,6 @@ - @@ -27,7 +26,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -40,8 +38,7 @@ export default { NoticeInfo, StandBackStrategy, StandStopTime, - StandDetainTrainAll, - SetFault + StandDetainTrainAll }, props: { selected: { @@ -225,7 +222,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -233,7 +230,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue index d805cad83..9cc956792 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue @@ -5,7 +5,6 @@ - @@ -20,7 +19,6 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -30,8 +28,7 @@ export default { SwitchControl, SwitchCmdControl, SpeedCmdControl, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -244,7 +241,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -252,7 +249,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/fuzhou_01/menus/utils/menuOperate.js b/src/jmapNew/theme/fuzhou_01/menus/utils/menuOperate.js index 09a216171..600b6e83b 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/fuzhou_01/menus/utils/menuOperate.js @@ -266,11 +266,11 @@ export const menuOperate = { }, Common: { setFault: { - operation: OperationEvent.Section.stoppage.menu.operation, + operation: OperationEvent.MixinCommand.stoppage.menu.operation, cmdType: CMD.Fault.CMD_SET_FAULT }, cancelFault: { - operation: OperationEvent.Section.cancelStoppage.menu.operation, + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, cmdType: CMD.Fault.CMD_CANCEL_FAULT } } diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/trainInitPlan.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/trainInitPlan.vue deleted file mode 100644 index 062b0be99..000000000 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/trainInitPlan.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue index 54f00512c..d90b2d0eb 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue @@ -5,8 +5,6 @@ - - @@ -21,9 +19,7 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import TrainInitPlan from './dialog/trainInitPlan'; export default { name: 'SectionMenu', @@ -32,9 +28,7 @@ export default { SectionControl, SectionCmdControl, SpeedCmdControl, - NoticeInfo, - SetFault, - TrainInitPlan + NoticeInfo }, props: { selected: { @@ -160,7 +154,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainInitPlan.doShow(step, this.selected); + this.$store.dispatch('training/setCommonMenuStep', step); } }); }, @@ -168,7 +162,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -176,7 +170,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSignal.vue b/src/jmapNew/theme/haerbin_01/menus/menuSignal.vue index 67b88f525..1f4f343fe 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuSignal.vue @@ -8,7 +8,6 @@ - @@ -27,7 +26,6 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; // import { querySignalStatus } from '@/api/simulation'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -40,8 +38,7 @@ export default { RouteCmdControl, RouteHandControl, RouteDetail, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -177,7 +174,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -185,7 +182,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/haerbin_01/menus/menuStationStand.vue b/src/jmapNew/theme/haerbin_01/menus/menuStationStand.vue index 703394751..6af6665aa 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuStationStand.vue @@ -8,7 +8,6 @@ - @@ -27,7 +26,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -40,8 +38,7 @@ export default { NoticeInfo, StandBackStrategy, StandStopTime, - StandDetainTrainAll, - SetFault + StandDetainTrainAll }, props: { selected: { @@ -225,7 +222,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -233,7 +230,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue b/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue index e6dd094c1..38bf263c1 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuSwitch.vue @@ -5,7 +5,6 @@ - @@ -20,7 +19,6 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import {menuOperate, commitOperate} from './utils/menuOperate'; export default { @@ -30,8 +28,7 @@ export default { SwitchControl, SwitchCmdControl, SpeedCmdControl, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -144,7 +141,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -152,7 +149,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/haerbin_01/menus/utils/menuOperate.js b/src/jmapNew/theme/haerbin_01/menus/utils/menuOperate.js index 09a216171..600b6e83b 100644 --- a/src/jmapNew/theme/haerbin_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/haerbin_01/menus/utils/menuOperate.js @@ -266,11 +266,11 @@ export const menuOperate = { }, Common: { setFault: { - operation: OperationEvent.Section.stoppage.menu.operation, + operation: OperationEvent.MixinCommand.stoppage.menu.operation, cmdType: CMD.Fault.CMD_SET_FAULT }, cancelFault: { - operation: OperationEvent.Section.cancelStoppage.menu.operation, + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, cmdType: CMD.Fault.CMD_CANCEL_FAULT } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainAddPlan.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainAddPlan.vue deleted file mode 100644 index d887bf47d..000000000 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainAddPlan.vue +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - - - - - diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue index 890c0ce08..00ee84aea 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue @@ -6,8 +6,6 @@ - - @@ -23,8 +21,6 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import {menuOperate, commitOperate} from './utils/menuOperate'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; -import TrainAddPlan from './dialog/trainAddPlan'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; export default { @@ -35,9 +31,7 @@ export default { SectionUnLock, SpeedLimitControl, AlxeEffective, - NoticeInfo, - SetFault, - TrainAddPlan + NoticeInfo }, props: { selected: { @@ -184,7 +178,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainAddPlan.doShow(step, this.selected); + this.$store.dispatch('training/setCommonMenuStep', step); } }); }, @@ -259,7 +253,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -267,7 +261,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); } diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue index a5d218da8..955704219 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue @@ -9,7 +9,6 @@ \ - @@ -28,7 +27,6 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import { mapGetters } from 'vuex'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'SignalMenu', @@ -41,8 +39,7 @@ export default { RouteHandControl, RouteDetail, RouterCommand, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -349,7 +346,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -357,7 +354,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); } diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue index c451a5280..04105b935 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue @@ -9,7 +9,6 @@ - @@ -29,7 +28,6 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; export default { name: 'StationStandMenu', @@ -42,8 +40,7 @@ export default { StandRunLevel, NoticeInfo, StandBackStrategy, - StandStopTime, - SetFault + StandStopTime }, props: { selected: { @@ -206,7 +203,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -214,7 +211,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); }, diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue index c47a6cc6f..0b5012920 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue @@ -6,7 +6,6 @@ - @@ -18,7 +17,6 @@ import SpeedLimitControl from './dialog/speedLimitControl'; import AlxeEffective from './dialog/alxeEffective'; import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo'; import { mapGetters } from 'vuex'; -import SetFault from '@/views/newMap/mapsystemNew/plugin/setFault'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; @@ -33,8 +31,7 @@ export default { SwitchUnLock, SpeedLimitControl, AlxeEffective, - NoticeInfo, - SetFault + NoticeInfo }, props: { selected: { @@ -278,7 +275,7 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); } }); }, @@ -286,7 +283,7 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); + this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); } }); } diff --git a/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js b/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js index 09a216171..600b6e83b 100644 --- a/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js @@ -266,11 +266,11 @@ export const menuOperate = { }, Common: { setFault: { - operation: OperationEvent.Section.stoppage.menu.operation, + operation: OperationEvent.MixinCommand.stoppage.menu.operation, cmdType: CMD.Fault.CMD_SET_FAULT }, cancelFault: { - operation: OperationEvent.Section.cancelStoppage.menu.operation, + operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, cmdType: CMD.Fault.CMD_CANCEL_FAULT } } diff --git a/src/views/newMap/mapsystemNew/common/commonMenu.vue b/src/views/newMap/mapsystemNew/common/commonMenu.vue index f10404952..461ff8f8e 100644 --- a/src/views/newMap/mapsystemNew/common/commonMenu.vue +++ b/src/views/newMap/mapsystemNew/common/commonMenu.vue @@ -1,7 +1,7 @@ - - + + @@ -24,6 +24,11 @@ export default { } } }, + data() { + return { + className: '' + }; + }, computed: { ...mapGetters('config', [ 'width' @@ -42,6 +47,36 @@ export default { break; } } + }, + created() { + switch (this.$route.query.lineCode) { + case '02': + case '05': + this.className = 'fuzhou-01__systerm'; + break; + case '03': + this.className = 'beijing-01__systerm'; + break; + case '04': + this.className = 'chengdou-03__systerm'; + break; + case '06': + this.className = 'ningbo-01__systerm'; + break; + case '07': + this.className = 'haerbin-01__systerm'; + break; + case '08': + this.className = 'foshan-01__systerm'; + break; + case '09': + this.className = 'xian-02__system'; + break; + case '10': + case '11': + this.className = 'xian-01__systerm'; + break; + } } }; diff --git a/src/views/newMap/mapsystemNew/common/menus/noticeInfo.vue b/src/views/newMap/mapsystemNew/common/menus/noticeInfo.vue index 672cfec3d..b957fd437 100644 --- a/src/views/newMap/mapsystemNew/common/menus/noticeInfo.vue +++ b/src/views/newMap/mapsystemNew/common/menus/noticeInfo.vue @@ -1,7 +1,8 @@ { this.$store.dispatch('training/tipReload'); diff --git a/src/views/newMap/mapsystemNew/common/menus/trainAddPlan.vue b/src/views/newMap/mapsystemNew/common/menus/trainAddPlan.vue index d30bee7e2..a4817a9de 100644 --- a/src/views/newMap/mapsystemNew/common/menus/trainAddPlan.vue +++ b/src/views/newMap/mapsystemNew/common/menus/trainAddPlan.vue @@ -2,6 +2,7 @@ 取 消 - + @@ -58,13 +59,20 @@ export default { components: { NoticeInfo }, + props: { + className: { + type: String, + default() { + return ''; + } + } + }, data() { return { trainNoList: [], selected: null, tripNumberList: [], serviceNumberList: [], - className: '', addModel: { serviceNumber: '', // 服务号 tripNumber: '' // 车次号 @@ -101,36 +109,6 @@ export default { return '创建计划车'; } }, - created() { - switch (this.$route.query.lineCode) { - case '02': - case '05': - this.className = 'fuzhou-01__systerm stand-stop-time'; - break; - case '03': - this.className = 'beijing-01__systerm stand-stop-time'; - break; - case '04': - this.className = 'chengdou-03__systerm stand-stop-time'; - break; - case '06': - this.className = 'ningbo-01__systerm stand-stop-time'; - break; - case '07': - this.className = 'haerbin-01__systerm stand-stop-time'; - break; - case '08': - this.className = 'foshan-01__systerm stand-stop-time'; - break; - case '09': - this.className = 'xian-02__system stand-stop-time'; - break; - case '10': - case '11': - this.className = 'xian-01__systerm stand-stop-time'; - break; - } - }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); From 5e97623b060b1919160d9ec9c83c731fa15ba6ad Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 28 May 2020 17:47:52 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=8C=BA=E6=AE=B5?= =?UTF-8?q?=E5=A7=8B=E7=BB=88=E7=82=B9=E5=81=8F=E7=A7=BB=E9=87=8F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jsxt/competition/result.vue | 6 +++++- .../newMap/newMapdraft/mapoperate/section/batchSettings.vue | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/jsxt/competition/result.vue b/src/views/jsxt/competition/result.vue index 9882d484a..9d88b72e9 100644 --- a/src/views/jsxt/competition/result.vue +++ b/src/views/jsxt/competition/result.vue @@ -13,7 +13,11 @@ --> - + + + + + > diff --git a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue index 96c775e40..d1df4d8d7 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue @@ -293,13 +293,13 @@ export default { }); while (sectionMap[startPoint]) { const model = deepAssign({}, sectionMap[startPoint]); - model.logicSectionStartOffset = startOffset; - model.logicSectionEndOffset = (section.lengthFact * 1000 - startOffset * 1000) / 1000; - models.push(model); if (!model.lengthFact) { const length = section.lengthFact / section.logicSectionCodeList.length; model.lengthFact = length.toFixed(3); } + model.logicSectionStartOffset = startOffset; + model.logicSectionEndOffset = (model.lengthFact * 1000 + startOffset * 1000) / 1000; + models.push(model); startOffset = (startOffset * 1000 + model.lengthFact * 1000) / 1000; startPoint = model.points[model.points.length - 1].x + 's' + model.points[model.points.length - 1].y; } From fffd6f0be774951c23bd6985ed118ee4aa7e8454 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 28 May 2020 18:28:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=9B=BE=E5=8A=A0=E8=BD=BDlineCode=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 4 ++-- src/views/planSchedule/index.vue | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 836771751..778caeb7b 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,11 +2,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 - BASE_API = 'http://192.168.3.82:9000'; // 杜康 + // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 diff --git a/src/views/planSchedule/index.vue b/src/views/planSchedule/index.vue index 913942880..5ebd90bad 100644 --- a/src/views/planSchedule/index.vue +++ b/src/views/planSchedule/index.vue @@ -38,9 +38,7 @@ export default { } }, data() { - return { - lineCode: '' - }; + return {}; }, computed: { skinCode() { @@ -51,6 +49,9 @@ export default { }, height() { return this.$store.state.app.height; + }, + lineCode() { + return this.$route.query.lineCode; } }, methods: {