diff --git a/src/jmapNew/shape/StationStand/index.js b/src/jmapNew/shape/StationStand/index.js index 0072c490e..ee5ce2dfa 100644 --- a/src/jmapNew/shape/StationStand/index.js +++ b/src/jmapNew/shape/StationStand/index.js @@ -332,7 +332,7 @@ class StationStand extends Group { fontWeight: style.StationStand.text.fontWeight, fontSize: style.StationStand.text.fontSize, fontFamily: style.fontFamily, - text: '上行扣车', + text: '下行扣车', textFill: '#fff', textAlign: 'middle', textVerticalAlign: 'top' diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue index fc0c9c26e..8c5d0e597 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue @@ -149,7 +149,7 @@ export default { }).catch(error => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(operate, error.message); }); }, // 信号关灯 @@ -169,7 +169,7 @@ export default { } }).catch((error) => { this.loading = false; - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(operate, error.message); }); }, // 信号重开 @@ -189,7 +189,7 @@ export default { }).catch(error => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(operate, error.message); }); }, // 取消 diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue index c101932cb..7a13648bc 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue @@ -137,7 +137,7 @@ export default { } else { return ''; } - }, + } }, watch: { }, @@ -306,7 +306,7 @@ export default { }).catch((error) => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(operate, error.message); }); }, // 进路交自动控 @@ -329,7 +329,7 @@ export default { }).catch((error) => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(operate, error.message); }); }, cancel() { diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeLock.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeLock.vue deleted file mode 100644 index b3172930b..000000000 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeLock.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue index 797e1f213..98f9690c7 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue @@ -195,7 +195,7 @@ export default { // 设置新选的进路区段为切除状态 row.routeSectionList.forEach(elem => { const section = deepAssign({}, this.$store.getters['map/getDeviceByCode'](elem)); - if (section.logicSectionCodeList && section.logicSectionCodeList.length){ + if (section.logicSectionCodeList && section.logicSectionCodeList.length) { section.logicSectionCodeList.forEach(item => { const sec = deepAssign({}, this.$store.getters['map/getDeviceByCode'](item)); sec.cutOff = true; @@ -246,7 +246,7 @@ export default { }).catch((error) => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(operate, error.message); }); } }, diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index 1482dbb83..1d2575e64 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -22,10 +22,9 @@ import AlxeEffective from './dialog/alxeEffective'; import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo'; import { mapGetters } from 'vuex'; import { OperateMode } from '@/scripts/ConstDic'; -import { MapDeviceType, OperationEvent, DeviceMenu } from '@/scripts/ConstDic'; +import { OperationEvent, DeviceMenu } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; -import { mouseCancelState } from './utils/menuItemStatus'; export default { name: 'SectionMenu', @@ -137,6 +136,11 @@ export default { } else { this.doClose(); } + }, + '$store.state.menuOperation.selectedCount': function(val) { + if (this.buttonOperation && this.$store.state.menuOperation.selected._type == 'Section') { + this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected); + } } }, computed: { @@ -176,6 +180,18 @@ export default { this.$refs.popMenu.close(); } }, + operationHandler(buttonOperation, selectType) { + switch (buttonOperation) { + case OperationEvent.Signal.guide.button.operation: { + // 区故解 + break; + } + case OperationEvent.Signal.guide.button.operation: { + // 计轴复位 + break; + } + } + }, // // 设置计轴失效 // alxeFailure() { // const operate = { diff --git a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue index 68d334a51..1e7ef8439 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue @@ -2,7 +2,6 @@
- @@ -15,7 +14,6 @@ import PopMenu from '@/components/PopMenu'; import RouteControl from './dialog/routeControl'; import RouteSelection from './dialog/routeSelection'; -import RouteLock from './dialog/routeLock'; import RouteCmdControl from './dialog/routeCmdControl'; import RouteHandControl from './dialog/routeHandControl'; import RouteDetail from './dialog/routeDetail'; @@ -24,7 +22,7 @@ import { mapGetters } from 'vuex'; import { OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; -import { MapDeviceType, OperationEvent, DeviceMenu } from '@/scripts/ConstDic'; +import {OperationEvent, DeviceMenu } from '@/scripts/ConstDic'; import { mouseCancelState } from './utils/menuItemStatus'; export default { @@ -33,7 +31,6 @@ export default { PopMenu, RouteControl, RouteSelection, - RouteLock, RouteCmdControl, RouteHandControl, RouteDetail, @@ -160,9 +157,9 @@ export default { } }, '$store.state.menuOperation.selectedCount': function(val) { - if (this.buttonOperation) { - this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected._type); - } + if (this.buttonOperation && this.$store.state.menuOperation.selected._type == 'Signal') { + this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected); + } } }, computed: { @@ -175,7 +172,7 @@ export default { ]), ...mapGetters('map', [ 'routeList' - ]), + ]) }, methods: { clickEvent() { @@ -235,16 +232,18 @@ export default { // 引导总锁 break; } - case OperationEvent.Signal.guide.button.operation: { + case OperationEvent.Signal.setAutoInterlock.button.operation: { // 自动进路 - break; - } - case OperationEvent.Signal.guide.button.operation: { - // 区故解 - break; - } - case OperationEvent.Signal.guide.button.operation: { - // 计轴复位 + if (selectType.fleetMode != undefined) { + if (selectType.fleetMode) { + this.singalCancelPassModel(selectType); + } else { + this.singalPassModel(selectType); + } + + } else { + this.$refs.noticeInfo.doShow({}, `信号机[${selectType.name}(${selectType.code})]没有已锁闭进路,不能设置联锁自动进路`); + } break; } } @@ -340,42 +339,6 @@ export default { } }); }, - // // 信号封锁 - // 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/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/nextNew', operate).then(({ valid }) => { - // if (valid) { - // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - // this.$refs.routeCmdControl.doShow(operate, this.selected); - // } - // }); - // }, // 信号重开 reopenSignal() { const operate = { @@ -456,6 +419,44 @@ export default { } }); }, + // 设置通过模式 + singalPassModel(selectType) { + const operate = { + start: true, + over: true, + operation: OperationEvent.Signal.setAutoInterlock.menu.operation, + param: { + signalCode:selectType.code + }, + cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + } + }).catch(error => { + this.$refs.noticeInfo.doShow(operate, error.message); + }); + }, + // 取消通过模式 + singalCancelPassModel(selectType) { + const operate = { + start: true, + over: true, + operation: OperationEvent.Signal.cancelAutoInterlock.menu.operation, + param: { + signalCode:selectType.code + }, + cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + } + }).catch(error => { + this.$refs.noticeInfo.doShow(operate, error.message); + }); + }, // 查询进路状态 detail() { const step = { diff --git a/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue b/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue index 202a8a862..69f3d5e7a 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue @@ -52,16 +52,16 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '轨道切除', - handler: this.split, - cmdType: CMD.Switch.CMD_SWITCH_CUT_OFF - }, - { - label: '轨道激活', - handler: this.active, - cmdType: CMD.Switch.CMD_SWITCH_ACTIVE - } + // { + // label: '轨道切除', + // handler: this.split, + // cmdType: CMD.Switch.CMD_SWITCH_CUT_OFF + // }, + // { + // label: '轨道激活', + // handler: this.active, + // cmdType: CMD.Switch.CMD_SWITCH_ACTIVE + // } // { // label: '查看站场设备状态', // handler: this.undeveloped