diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index b09702c7b..90f0e51a5 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -750,11 +750,15 @@ export const menuOperate = { operation: OperationEvent.CTCCommand.setEndRunplan.menu.operation, cmdType: CMD.CTC.CTC_LOG_SET_END_RUN_PLAN }, - + // 修改列车固定径路 + modifyTrainFixedPath:{ + operation: OperationEvent.CTCCommand.modifyTrainFixedPath.menu.operation, + cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_EDIT + }, // 增加列车固定径路 addTrainFixedPath:{ operation: OperationEvent.CTCCommand.addTrainFixedPath.menu.operation, - cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_EDIT + cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_SAVE }, // 批量增加列车固定径路 batchTrainFixedPath:{ diff --git a/src/jmapNew/theme/datie_02/menus/dialog/blockDevice.vue b/src/jmapNew/theme/datie_02/menus/dialog/blockDevice.vue new file mode 100644 index 000000000..d960ada1e --- /dev/null +++ b/src/jmapNew/theme/datie_02/menus/dialog/blockDevice.vue @@ -0,0 +1,128 @@ + + + + + diff --git a/src/jmapNew/theme/datie_02/menus/dialog/mapVisual.vue b/src/jmapNew/theme/datie_02/menus/dialog/mapVisual.vue index 6f0e8d119..c2073391e 100644 --- a/src/jmapNew/theme/datie_02/menus/dialog/mapVisual.vue +++ b/src/jmapNew/theme/datie_02/menus/dialog/mapVisual.vue @@ -113,6 +113,7 @@ export default { if (this.mapData && this.mapData.skinVO) { const parser = parserFactory(ParserType.Graph.value); this.mapDevice = parser.parser(this.mapData, this.mapData.skinVO.code, this.map.getShowConfig()); + console.log('parsed mapDevice', this.mapDevice) } }, loadData() { @@ -154,7 +155,7 @@ export default { const type = elem._type; // 列车不需要设置默认状态 type != deviceType.Train && - list.push({ code, _type: type, _free: true }); + list.push({ code, _type: type, _free: true }); }); this.map.update(list, false); diff --git a/src/jmapNew/theme/datie_02/menus/dialog/powerSupplyArmSetting.vue b/src/jmapNew/theme/datie_02/menus/dialog/powerSupplyArmSetting.vue new file mode 100644 index 000000000..80d49c381 --- /dev/null +++ b/src/jmapNew/theme/datie_02/menus/dialog/powerSupplyArmSetting.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/src/jmapNew/theme/datie_02/menus/dialog/railViewSetting.vue b/src/jmapNew/theme/datie_02/menus/dialog/railViewSetting.vue index 6a3a8986f..31f54c8c8 100644 --- a/src/jmapNew/theme/datie_02/menus/dialog/railViewSetting.vue +++ b/src/jmapNew/theme/datie_02/menus/dialog/railViewSetting.vue @@ -31,7 +31,10 @@
车站 - + + + +
@@ -92,6 +95,9 @@ export default { data() { return { show: false, + form: { + station: 'shenyang', + }, } }, methods: { diff --git a/src/jmapNew/theme/datie_02/menus/dialog/regionBatchOperation.vue b/src/jmapNew/theme/datie_02/menus/dialog/regionBatchOperation.vue new file mode 100644 index 000000000..8b9348ede --- /dev/null +++ b/src/jmapNew/theme/datie_02/menus/dialog/regionBatchOperation.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue b/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue index 7ca446d5e..03bb36e82 100644 --- a/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue +++ b/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue @@ -207,10 +207,13 @@ export default { loadUpdateTrainFixedPath() { commitOperate(menuOperate.CTC.loadUpdateStationTrainFixedPath, { stationCode: this.stationCode }, 3).then(({valid, response}) => { if (valid) { + this.$message.success('加载成功!'); this.$nextTick(function () { this.$store.dispatch('training/emitTipFresh'); }); } + }).catch(()=>{ + this.$message.error('加载失败'); }); }, // 固定列车经路从生效区更新 @@ -222,7 +225,7 @@ export default { if (valid) { const title = '固定径路信息'; this.trainFixedPathList = response.data.data; - this.title = title + ' 版本:' + response.data.version; + this.title = title + ' 版本 :' + response.data.version; this.$nextTick(function () { this.$store.dispatch('training/emitTipFresh'); }); diff --git a/src/jmapNew/theme/datie_02/menus/menuPanel.vue b/src/jmapNew/theme/datie_02/menus/menuPanel.vue index 4810414c2..b8c29b616 100644 --- a/src/jmapNew/theme/datie_02/menus/menuPanel.vue +++ b/src/jmapNew/theme/datie_02/menus/menuPanel.vue @@ -31,6 +31,9 @@ + + +
@@ -49,6 +52,9 @@ import { EventBus } from '@/scripts/event-bus' import SettingsMenu from './components/menu.vue' import BoardViewSetting from './dialog/boardViewSetting.vue' import RailViewSetting from './dialog/railViewSetting.vue' +import PowerSupplyArmSetting from './dialog/powerSupplyArmSetting.vue' +import BlockDevice from './dialog/blockDevice' +import RegionBatchOperation from './dialog/regionBatchOperation' export default { name: 'MenuPanel', @@ -57,6 +63,9 @@ export default { SettingsMenu, BoardViewSetting, RailViewSetting, + PowerSupplyArmSetting, + BlockDevice, + RegionBatchOperation, }, data() { return { @@ -82,22 +91,38 @@ export default { { label: '调车参数配置', id: 'shuntingParam', - children: [{ label: '标准站', id: 'std' }, { label: '标准甲站', id: 'std1' }, { label: '标准乙站', id: 'std2' }], + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], }, { label: '调车优先级配置', id: 'shuntingPriority', - children: [{ label: '标准站', id: 'std' }, { label: '标准甲站', id: 'std1' }, { label: '标准乙站', id: 'std2' }], + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], }, { label: '调车规则配置', id: 'shuntingRule', - children: [{ label: '标准站', id: 'std' }, { label: '标准甲站', id: 'std1' }, { label: '标准乙站', id: 'std2' }], + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], }, { label: '功能按钮设置', id: 'functionButton', - children: [{ label: '标准站', id: 'std' }, { label: '标准甲站', id: 'std1' }, { label: '标准乙站', id: 'std2' }], + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], }, { label: '站场界面显示设置', id: 'UIDisplay' }, { label: '报警提示设置', id: 'alarm' }, @@ -106,12 +131,42 @@ export default { T3MenuItems: [ { label: '设置供电臂状态', id: 'powerSupplyArm', ctc: true }, { label: '封锁设备操作', id: 'blockedDeviceOperation', ctc: true }, - { label: '区域批量设备操作', id: 'regionBatchOperation', children: [{}], ctc: true }, - { label: '站存车管理', id: 'stationTrainManage', children: [{}], ctc: true }, - { label: '设备影响分析', id: 'deviceAffectAnalyze', children: [{}], ctc: true }, - { label: '操作日志查询', id: 'operationLog', ctc: true }, - { label: '防溜设置查询', id: 'deviceAffectAnalyze', ctc: true }, - { label: '设备影响分析', id: 'deviceAffectAnalyze', ctc: true }, + { + label: '区域批量设备操作', + id: 'regionBatchOperation', + children: [{}], + ctc: true, + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], + }, + { + label: '站存车管理', + id: 'stationTrainManage', + children: [{}], + ctc: true, + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], + }, + { + label: '设备影响分析', + id: 'deviceAffectAnalyze', + children: [{}], + ctc: true, + children: [ + { label: '标准站', id: 'Station58852' }, + { label: '标准甲站', id: 'Station32295' }, + { label: '标准丙站', id: 'Station47980' }, + ], + }, + { label: '操作日志查询', id: 'operationLog' }, + { label: '防溜设置查询', id: 'deviceAffectAnalyze' }, + { label: '设备影响分析', id: 'deviceAffectAnalyze' }, ], } }, @@ -188,6 +243,19 @@ export default { }, handleT3MenuSelect(id) { console.log(id) + this.closeMenus() + const params = id.split('-') + switch (params[0]) { + case 'powerSupplyArm': + this.$refs.powerSupplyArmSetting.doShow() + break + case 'blockedDeviceOperation': + this.$refs.blockDevice.doShow() + break + case 'regionBatchOperation': + if (!params[1]) return + this.$refs.regionBatchOperation.doShow(params[1]) + } }, dragEvent() { const offset = this.offset diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/mapVisual.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/mapVisual.vue index fac7a7a4d..490cfb79c 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/mapVisual.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/mapVisual.vue @@ -71,6 +71,7 @@ export default { }, methods: { init() { + console.log(123) document.getElementById(this.canvasId).oncontextmenu = function (e) { return false; }; diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index abeebd05b..a7a5df465 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -455,7 +455,9 @@ export default { CTC_STATION_IO_GATE_PUBLISH:{value: 'STATION_IO_GATE_PUBLISH', label: '出入口发布生效区'}, CTC_STATION_IO_GATE_LIST:{value: 'STATION_IO_GATE_LIST', label: '获取出入口列表'}, CTC_STATION_IO_GATE_EDIT:{value: 'STATION_IO_GATE_EDIT', label: '修改出入口'}, - CTC_REGULAR_TRAIN_LINE_EDIT:{value: 'REGULAR_TRAIN_LINE_EDIT', label: '增加列车固定径路'}, + CTC_REGULAR_TRAIN_LINE_EDIT:{value: 'REGULAR_TRAIN_LINE_EDIT', label: '修改列车固定径路'}, + CTC_REGULAR_TRAIN_LINE_SAVE:{value: 'REGULAR_TRAIN_LINE_SAVE', label: '增加列车固定径路'}, + CTC_REGULAR_TRAIN_LINE_BATCH:{value: 'REGULAR_TRAIN_LINE_BATCH', label: '批量增加列车固定径路'}, CTC_REGULAR_TRAIN_LINE_STATION_UPDATE:{value: 'REGULAR_TRAIN_LINE_STATION_UPDATE', label: '固定列车径路从生效区更新'}, diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index a4f160dc6..dc8c8e0d4 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -4042,6 +4042,13 @@ export const OperationEvent = { operation: '1161', domId: '_Tips-CTC-loadUpdateStationTrainFixedPath-Menu{TOP}' } + }, + // 修改列车固定径路 + modifyTrainFixedPath:{ + menu: { + operation: '1161', + domId: '_Tips-CTC-loadUpdateStationTrainFixedPath-Menu{TOP}' + } } // CTC_ZONE_SAVE_TRIP_NUMBER // CTC_ZONE_SAVE_STATION diff --git a/src/views/bigTrainRunplanManage/addRunplan.vue b/src/views/bigTrainRunplanManage/addRunplan.vue index dba9dcc5f..304f013ac 100644 --- a/src/views/bigTrainRunplanManage/addRunplan.vue +++ b/src/views/bigTrainRunplanManage/addRunplan.vue @@ -144,6 +144,7 @@ export default { loading: false, title:'', // mapStationDirectionList:[], + isAdd:false, mapStationDirectionMap:{}, enterDirList:[], // 入口列表 outDirList:[], @@ -231,7 +232,9 @@ export default { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; }, domIdConfirm() { - return this.dialogShow ? OperationEvent.CTCCommand.addTrainFixedPath.menu.domId : ''; + return this.dialogShow + ? (this.isAdd ? OperationEvent.CTCCommand.addTrainFixedPath.menu.domId : OperationEvent.CTCCommand.modifyTrainFixedPath.menu.domId) + : ''; } }, methods:{ @@ -239,16 +242,18 @@ export default { this.mapStationDirectionMap = mapStationDirectionMap; const mapStationDirectionList = Object.values(mapStationDirectionMap); this.enterDirList = mapStationDirectionList.filter(stationDirection=>{ - return stationDirection.runStatus == 'R'; + return stationDirection.runStatus == 'R' && stationDirection.stationCode == stationCode; }); this.outDirList = mapStationDirectionList.filter(stationDirection=>{ - return stationDirection.runStatus == 'D'; + return stationDirection.runStatus == 'D' && stationDirection.stationCode == stationCode; }); if (row) { this.addModel = Object.assign({}, row); this.title = '修改列车固定径路'; + this.isAdd = false; } else { this.title = '增加列车固定径路'; + this.isAdd = true; this.addModel.stationCode = stationCode; } this.filterSectionList = Object.values(filterSectionMap); @@ -311,16 +316,29 @@ export default { if (valid) { this.loading = true; const param = Object.assign({}, this.addModel); - if (this.title == '增加列车固定径路') { delete param.code; } - commitOperate(menuOperate.CTC.addTrainFixedPath, param, 3).then(({valid})=>{ - if (valid) { + if (this.isAdd) { + delete param.code; + commitOperate(menuOperate.CTC.addTrainFixedPath, param, 3).then(({valid})=>{ + if (valid) { + this.doClose(); + this.$emit('refresh'); + } + }).catch(() => { this.doClose(); - this.$emit('refresh'); - } - }).catch(() => { - this.doClose(); - this.$emit('noticeInfo'); - }); + this.$emit('noticeInfo'); + }); + } else { + commitOperate(menuOperate.CTC.modifyTrainFixedPath, param, 3).then(({valid})=>{ + if (valid) { + this.doClose(); + this.$emit('refresh'); + } + }).catch(() => { + this.doClose(); + this.$emit('noticeInfo'); + }); + } + } }); }, diff --git a/src/views/bigTrainRunplanManage/directionInformation.vue b/src/views/bigTrainRunplanManage/directionInformation.vue index e6a437e8e..f50364d77 100644 --- a/src/views/bigTrainRunplanManage/directionInformation.vue +++ b/src/views/bigTrainRunplanManage/directionInformation.vue @@ -68,6 +68,7 @@