diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue index 62c8b4047..52c1f1391 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/alxeEffective.vue @@ -84,6 +84,7 @@ import { mouseCancelState } from '../utils/menuItemStatus'; import NoticeInfo from './childDialog/childDialog/noticeInfo' import PopupAlarm from './childDialog/popupAlarm'; + import CMD from '@/scripts/cmdPlugin/CommandEnum'; export default { name: 'AlxeEffective', @@ -293,7 +294,7 @@ operate.operation = OperationEvent.Switch.alxeEffective.confirm1.operation } - 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.type = 'password'; @@ -321,7 +322,7 @@ operate.operation = OperationEvent.Switch.alxeEffective.choose1.operation } - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); }) }, @@ -344,7 +345,7 @@ operate.operation = OperationEvent.Switch.alxeEffective.choose2.operation } - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); }) }, @@ -352,9 +353,11 @@ commit() { let operate = { send: true, + over:true, type: this.operate.type, operation: '', - val: this.selected.code + val: this.selected.code, + cmdType: CMD.Switch.CMD_SWITCH_COMFIRMATION_AXLE, } if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { @@ -369,7 +372,7 @@ this.stepNum = 3; this.loading = true; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.loading = false; if (valid) { this.type = 'text'; @@ -378,7 +381,7 @@ this.$refs.popupAlarm.doShow(Object.assign(this.operate, { val: operate.val }), [`集中站 ${this.model.stationName} 区段 ${this.model.sectionName}报告恢复计轴有效`]); } - }).catch(error => { + }).catch(() => { this.$refs.noticeInfo.doShow(operate); }) } else { @@ -400,7 +403,7 @@ if (valid) { this.doClose(); } - }).catch(error => { + }).catch(() => { this.doClose(); }); } diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue index 2bed358f9..c016f5682 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/sectionControl.vue @@ -1,207 +1,219 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/speedLimitControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/speedLimitControl.vue index d21d7f8f7..2a0bb41f0 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/speedLimitControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/speedLimitControl.vue @@ -75,480 +75,514 @@ \ No newline at end of file diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/switchControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/switchControl.vue index b446fb596..4fc85576b 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/switchControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/switchControl.vue @@ -1,259 +1,271 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/chengdu_01/menus/dialog/platformDwell.vue b/src/jmapNew/theme/chengdu_01/menus/dialog/platformDwell.vue new file mode 100644 index 000000000..ee2ebfdbb --- /dev/null +++ b/src/jmapNew/theme/chengdu_01/menus/dialog/platformDwell.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/src/jmapNew/theme/chengdu_01/menus/index.vue b/src/jmapNew/theme/chengdu_01/menus/index.vue index 9318790ad..cebf4ac02 100644 --- a/src/jmapNew/theme/chengdu_01/menus/index.vue +++ b/src/jmapNew/theme/chengdu_01/menus/index.vue @@ -13,7 +13,7 @@ - + @@ -86,6 +86,11 @@ export default { this.$nextTick(() => { this.$store.dispatch('config/updateMenuBar'); }); + }, + methods: { + popMenuStationStand(param) { + this.$refs.menuStationStand.doShow(param.position, param.type); + } } }; diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue index 66a66673c..4e8382e87 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue @@ -364,12 +364,12 @@ export default { Signal_Code: `${this.selected.code}` } }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - if (valid) { - this.$refs.routeControl.doShow(step, this.selected); - } - }); + // this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // if (valid) { + // this.$refs.routeControl.doShow(step, this.selected); + // } + // }); }, // 总人解 humanTrainRoute() { @@ -416,14 +416,14 @@ export default { } }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.routeControl.doShow(step, this.selected); - } - }).catch(() => { - this.$refs.noticeInfo.doShow(step); - }); + // this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.routeControl.doShow(step, this.selected); + // } + // }).catch(() => { + // this.$refs.noticeInfo.doShow(step); + // }); }, // 信号解封 unlock() { @@ -435,12 +435,12 @@ export default { Signal_Code: `${this.selected.code}` } }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.routeControl.doShow(step, this.selected); - } - }); + // this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.routeControl.doShow(step, this.selected); + // } + // }); }, // 进路交人工控 humanControl() { diff --git a/src/jmapNew/theme/chengdu_01/menus/menuStationPlatform.vue b/src/jmapNew/theme/chengdu_01/menus/menuStationPlatform.vue index ae2abb147..fac411ace 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuStationPlatform.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuStationPlatform.vue @@ -10,20 +10,36 @@ :modal="false" :close-on-click-modal="false" > - -
EUROPA - PLATFORM 2
-
- - - - - - - - Ok - Apply - Cancel - Help + +
EUROPA - PLATFORM 2
+
+ +
Field Devices
+
Control Requests
+
Field Indications
+
+ + +
Platform
+
+ +
+ IN SERVICE
Adjust Dwell +
+
+ +
Not Communicating
+
+
+ + +
Stopping Profile
+
+ +
Northbound
Southbound
+
+ +
@@ -43,6 +59,7 @@ export default { operation: null, dialogShow: false, loading: false, + position: '' }; }, computed: { @@ -77,15 +94,9 @@ export default { }); }, methods: { - doShow(operate) { - this.operate = operate || {}; - // this.operation = operate.operation; - - // 非断电激活时设置初始值 - if (!this.dialogShow) { - this.loading = false; - } - + doShow(position) { + // this.operate = operate || {}; + this.position = position; this.dialogShow = true; this.$nextTick(function () { this.$store.dispatch('training/emitTipFresh'); @@ -96,7 +107,15 @@ export default { this.dialogShow = false; this.$store.dispatch('training/emitTipFresh'); }, + clickEvent(val) { + this.dialogShow = false; + this.$emit('popMenuStationStand', {position:this.position, type:val}); + event.stopPropagation(); + }, commit() { + this.$refs['form'].validate((valid) => { + + }); // this.$refs['form'].validate((valid) => { // if (valid) { // const operate = { diff --git a/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue b/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue index 04ad8e49d..364441a2d 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuStationStand.vue @@ -4,6 +4,7 @@ +
@@ -12,9 +13,10 @@ import PopMenu from '@/components/PopMenu'; import StandControl from './dialog/standControl'; import StandDetail from './dialog/standDetail'; import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo'; +import PlatformDwell from './dialog/platformDwell'; import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; -import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; +import { OperateMode } from '@/scripts/ConstDic'; import Handler from '@/scripts/cmdPlugin/Handler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; @@ -25,7 +27,8 @@ export default { PopMenu, StandControl, StandDetail, - NoticeInfo + NoticeInfo, + PlatformDwell }, props: { selected: { @@ -38,6 +41,46 @@ export default { data() { return { menu: [], + StoppingProfile: { + Local: [], + Center: [ + { + label: 'Platform Dwell ADJUST DWELL', // 设置停站时间 + handler: this.setStopTime, + cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME + }, + { + label: 'Platform Dwell', + handler: '', + cmdType: '' + }, + { + label: 'Help', + handler: '', + cmdType: '' + } + ] + }, + know: { + Local: [], + Center: [ + { + label: 'Skip Next Station', + handler: '', + cmdType: '' + }, + { + label: 'Skip Next Station', + handler: '', + cmdType: '' + }, + { + label: 'Help', + handler: '', + cmdType: '' + } + ] + }, menuNormal: { Local: [ { @@ -128,9 +171,17 @@ export default { self.doClose(); }; }, - initMenu() { + initMenu(type) { // 编辑模式菜单列表 - this.menu = MenuContextHandler.covert(this.menuNormal); + switch (type) { + case 'stoppingProfile': + this.menu = MenuContextHandler.covert(this.StoppingProfile); + break; + case 'know': + this.menu = MenuContextHandler.covert(this.StoppingProfile); + break; + } + // this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { @@ -138,9 +189,10 @@ export default { } }, - doShow(point) { + doShow(point, type) { + this.menu = []; this.clickEvent(); - this.initMenu(); + this.initMenu(type); if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) { this.$refs.popMenu.resetShowPosition(point); } @@ -272,13 +324,15 @@ export default { StationStand_Code: `${this.selected.code}` } }; - this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => { + this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {StationStand_Code: `${this.selected.code}`}).then(resp => { - const tempData = resp.data; - this.$refs.standControl.doShow(step, this.selected, tempData); - }); + this.$refs.platformDwell.doShow(step, this.selected); + // Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {StationStand_Code: `${this.selected.code}`}).then(resp => { + // const tempData = resp.data; + // this.$refs.standControl.doShow(step, this.selected, tempData); + // }); + } }).catch(() => { this.$refs.noticeInfo.doShow(step); diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue b/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue index 9f9c45293..8673f6b54 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSwitch.vue @@ -210,12 +210,12 @@ export default { Switch_Code: this.selected.code } }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.switchControl.doShow(operate, this.selected); - } - }); + // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.switchControl.doShow(operate, this.selected); + // } + // }); }, // 道岔解锁 unlock() { @@ -226,12 +226,12 @@ export default { Switch_Code: this.selected.code } }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.switchControl.doShow(operate, this.selected); - } - }); + // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.switchControl.doShow(operate, this.selected); + // } + // }); }, // 道岔封锁 block() { @@ -306,12 +306,12 @@ export default { Switch_Code: this.selected.code } }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.switchControl.doShow(operate, this.selected); - } - }); + // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.switchControl.doShow(operate, this.selected); + // } + // }); }, // 单操到反位 reverse() { @@ -322,12 +322,12 @@ export default { Switch_Code: this.selected.code } }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.switchControl.doShow(operate, this.selected); - } - }); + // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + // if (valid) { + // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + // this.$refs.switchControl.doShow(operate, this.selected); + // } + // }); }, undeveloped() { this.doClose(); diff --git a/src/views/newMap/mapsystemNew/common/index.vue b/src/views/newMap/mapsystemNew/common/index.vue index 352cc2b8f..09cdad72c 100644 --- a/src/views/newMap/mapsystemNew/common/index.vue +++ b/src/views/newMap/mapsystemNew/common/index.vue @@ -87,6 +87,11 @@ export default { deviceType.Signal, deviceType.StationStand ]; + const lineCode = this.$store.getters['map/lineCode']; + if (em.deviceType === 'StationStand' && lineCode === '01') { + const menu = getDeviceMenuByDeviceType(device._type) || []; + this.$store.dispatch('menuOperation/setPopMenu', { position: { x: em.clientX, y: em.clientY }, menu: menu }); + } if (em.deviceCode) { device = this.getDeviceByEm(em);