diff --git a/src/jmapNew/shape/graph/Station/index.js b/src/jmapNew/shape/graph/Station/index.js index a983a60bb..cd309652e 100644 --- a/src/jmapNew/shape/graph/Station/index.js +++ b/src/jmapNew/shape/graph/Station/index.js @@ -149,13 +149,13 @@ export default class Station extends Group { createControlMode() { const model = this.model; if (!this.style.Station.StationControl.disPlayNone) { - const queryList = window.location.search.substring(1).split('&'); - const queryCtc = queryList.find(item => { - return item.includes('ctc'); - }); - if (queryCtc) { - this.createCtcControlMode() - } else if (this.style.Station.StationControl.special) { + const queryList = window.location.search.substring(1).split('&'); + const queryCtc = queryList.find(item => { + return item.includes('ctc'); + }); + if (queryCtc) { + this.createCtcControlMode(); + } else if (this.style.Station.StationControl.special) { if (model.visible && model.createControlMode) { // model.createControlMode 控制模式 this.createControlModeAU(); this.createControlModeCC(); @@ -168,129 +168,129 @@ export default class Station extends Group { this.createCenterControl(); // 中控按钮 this.createSubstationControl(); // 站控按钮 this.createInterconnectedControl(); // 联锁控 - this.createVeryControl(); - this.createSelfDiscipline(); + this.createVeryControl(); + this.createSelfDiscipline(); } } } this.setState(model); } - createCtcControlMode() {//大铁 - //非常站控 - const model = this.model; - // 分散自律 - this.selfDisciplineThree = new EThreeLamp({ - _subType: 'veryControl', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.selfDisciplineThree.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineThree.offset.y - }, - context: this.style.Station.StationControl.selfDisciplineThree.text, - pop: false - }); - this.add(this.selfDisciplineThree); - // 非常站控 - this.veryControl = new ESingleControl({ - _subType: 'veryControl', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.veryControl.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.veryControl.offset.y - }, - context: this.style.Station.StationControl.veryControl.text, - pop: false - }); - this.add(this.veryControl); - //按图排路 - this.graphRoad = new ESingleControl({ - _subType: 'graphRoad', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.graphRoad.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.graphRoad.offset.y - }, - context: this.style.Station.StationControl.graphRoad.text, - pop: false - }); - this.add(this.graphRoad); - //计划控制 - this.planControl = new ESingleControl({ - _subType: 'planControl', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.planControl.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.planControl.offset.y - }, - context: this.style.Station.StationControl.planControl.text, - pop: false - }); - this.add(this.planControl); - //中心通信 - this.centerCommunication = new ESingleControl({ - _subType: 'centerCommunication', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.centerCommunication.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.centerCommunication.offset.y - }, - context: this.style.Station.StationControl.centerCommunication.text, - pop: false - }); - this.add(this.centerCommunication); - //自律机通信 - this.selfDisciplineCommunication = new ESingleControl({ - _subType: 'selfDisciplineCommunication', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.selfDisciplineCommunication.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineCommunication.offset.y - }, - context: this.style.Station.StationControl.selfDisciplineCommunication.text, - pop: false - }); - this.add(this.selfDisciplineCommunication); - //允许转回 - this.allowedTurnBack = new ESingleControl({ - _subType: 'allowedTurnBack', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.allowedTurnBack.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.allowedTurnBack.offset.y - }, - context: this.style.Station.StationControl.allowedTurnBack.text, - pop: false - }); - this.add(this.allowedTurnBack); - // 列控 - this.trainControl = new ESingleControl({ - _subType: 'trainControl', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.trainControl.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.trainControl.offset.y - }, - context: this.style.Station.StationControl.trainControl.text, - pop: false - }); - this.add(this.trainControl); - } + createCtcControlMode() { // 大铁 + // 非常站控 + const model = this.model; + // 分散自律 + this.selfDisciplineThree = new EThreeLamp({ + _subType: 'veryControl', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.selfDisciplineThree.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineThree.offset.y + }, + context: this.style.Station.StationControl.selfDisciplineThree.text, + pop: false + }); + this.add(this.selfDisciplineThree); + // 非常站控 + this.veryControl = new ESingleControl({ + _subType: 'veryControl', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.veryControl.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.veryControl.offset.y + }, + context: this.style.Station.StationControl.veryControl.text, + pop: false + }); + this.add(this.veryControl); + // 按图排路 + this.graphRoad = new ESingleControl({ + _subType: 'graphRoad', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.graphRoad.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.graphRoad.offset.y + }, + context: this.style.Station.StationControl.graphRoad.text, + pop: false + }); + this.add(this.graphRoad); + // 计划控制 + this.planControl = new ESingleControl({ + _subType: 'planControl', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.planControl.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.planControl.offset.y + }, + context: this.style.Station.StationControl.planControl.text, + pop: false + }); + this.add(this.planControl); + // 中心通信 + this.centerCommunication = new ESingleControl({ + _subType: 'centerCommunication', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.centerCommunication.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.centerCommunication.offset.y + }, + context: this.style.Station.StationControl.centerCommunication.text, + pop: false + }); + this.add(this.centerCommunication); + // 自律机通信 + this.selfDisciplineCommunication = new ESingleControl({ + _subType: 'selfDisciplineCommunication', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.selfDisciplineCommunication.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineCommunication.offset.y + }, + context: this.style.Station.StationControl.selfDisciplineCommunication.text, + pop: false + }); + this.add(this.selfDisciplineCommunication); + // 允许转回 + this.allowedTurnBack = new ESingleControl({ + _subType: 'allowedTurnBack', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 / 3 + this.style.Station.StationControl.allowedTurnBack.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.allowedTurnBack.offset.y + }, + context: this.style.Station.StationControl.allowedTurnBack.text, + pop: false + }); + this.add(this.allowedTurnBack); + // 列控 + this.trainControl = new ESingleControl({ + _subType: 'trainControl', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 2 + this.style.Station.StationControl.trainControl.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.trainControl.offset.y + }, + context: this.style.Station.StationControl.trainControl.text, + pop: false + }); + this.add(this.trainControl); + } createControlModeAU() { // 西安二 const model = this.model; this.stationControlAU = new Text({ @@ -428,95 +428,95 @@ export default class Station extends Group { } } } - createSelfDiscipline() { + createSelfDiscipline() { const model = this.model; if (this.style.Station.StationControl.selfDiscipline) { this.selfDiscipline = new ESingleControl({ - _subType: 'self_discipline', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.selfDiscipline.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.selfDiscipline.offset.y - }, - context: this.style.Station.StationControl.selfDiscipline.text, - pop: false - }); + _subType: 'self_discipline', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.selfDiscipline.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.selfDiscipline.offset.y + }, + context: this.style.Station.StationControl.selfDiscipline.text, + pop: false + }); this.add(this.selfDiscipline); - } + } if (this.style.Station.StationControl.selfDisciplineControl) { this.selfDisciplineControl = new ESingleControl({ - _subType: 'self_discipline_control', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.selfDisciplineControl.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineControl.offset.y - }, - context: this.style.Station.StationControl.selfDisciplineControl.text, - pop: false - }); + _subType: 'self_discipline_control', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x - this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.selfDisciplineControl.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.selfDisciplineControl.offset.y + }, + context: this.style.Station.StationControl.selfDisciplineControl.text, + pop: false + }); this.add(this.selfDisciplineControl); - } - } - createVeryControl() { + } + } + createVeryControl() { const model = this.model; if (this.style.Station.StationControl.veryControl) { this.veryControl = new ESingleControl({ - _subType: 'very', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.veryControl.offset.x, - y: model.controlModePoint.y + this.style.Station.StationControl.centerControl.offset.y - }, - context: this.style.Station.StationControl.veryControl.text, - pop: false - }); + _subType: 'very', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance / 2 + this.style.Station.StationControl.veryControl.offset.x, + y: model.controlModePoint.y + this.style.Station.StationControl.centerControl.offset.y + }, + context: this.style.Station.StationControl.veryControl.text, + pop: false + }); this.add(this.veryControl); - } + } if (this.style.Station.StationControl.veryControlButton) { this.veryControlButton = new Rect({ - zlevel: this.zlevel, - z: this.z, - _subType: 'veryControlButton', - shape: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.x - this.style.Station.StationControl.lamp.radiusR, - y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y - this.style.Station.StationControl.lamp.radiusR, - width: this.style.Station.StationControl.lamp.radiusR * 2, - height: this.style.Station.StationControl.lamp.radiusR * 2 - }, - style: { - lineWidth: 1, - stroke: '#fff', - fill: this.style.Station.StationControl.veryControlButton.defaultColor - } - }); + zlevel: this.zlevel, + z: this.z, + _subType: 'veryControlButton', + shape: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.x - this.style.Station.StationControl.lamp.radiusR, + y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y - this.style.Station.StationControl.lamp.radiusR, + width: this.style.Station.StationControl.lamp.radiusR * 2, + height: this.style.Station.StationControl.lamp.radiusR * 2 + }, + style: { + lineWidth: 1, + stroke: '#fff', + fill: this.style.Station.StationControl.veryControlButton.defaultColor + } + }); this.add(this.veryControlButton); this.veryControlButtonText = new Text({ - zlevel: this.zlevel, - z: this.z, - _subType: 'veryControlButtonText', - position: [0, 0], - style: { - x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.y, - y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y + this.style.Station.StationControl.lamp.radiusR + this.style.Station.StationControl.text.distance, - fontWeight: this.style.Station.StationControl.text.fontWeight, - fontSize: this.style.Station.StationControl.text.fontSize, - fontFamily: this.style.fontFamily, - text: this.style.Station.StationControl.veryControlButton.text, - textFill: this.style.Station.StationControl.text.fontColor, - textAlign: this.style.Station.StationControl.text.textAlign, - textVerticalAlign: this.style.Station.StationControl.text.textVerticalAlign - }, - pop: false, - }); + zlevel: this.zlevel, + z: this.z, + _subType: 'veryControlButtonText', + position: [0, 0], + style: { + x: model.controlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.y, + y: model.controlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y + this.style.Station.StationControl.lamp.radiusR + this.style.Station.StationControl.text.distance, + fontWeight: this.style.Station.StationControl.text.fontWeight, + fontSize: this.style.Station.StationControl.text.fontSize, + fontFamily: this.style.fontFamily, + text: this.style.Station.StationControl.veryControlButton.text, + textFill: this.style.Station.StationControl.text.fontColor, + textAlign: this.style.Station.StationControl.text.textAlign, + textVerticalAlign: this.style.Station.StationControl.text.textVerticalAlign + }, + pop: false + }); this.add(this.veryControlButtonText); - } - } + } + } createCenterControl() { // 中控按钮 const model = this.model; if (this.style.Station.StationControl.centerControl.show) { @@ -695,7 +695,7 @@ export default class Station extends Group { }); this.add(this.interconnectedControl); } - } + } handleCenter() { // 中控 this.noneBeforeMode = 'Center'; @@ -765,9 +765,9 @@ export default class Station extends Group { this.centerControl && this.centerControl.setTextColor(this.style.Station.StationControl.lamp.grayColor); this.interconnectedControl && this.interconnectedControl.setColor(this.style.Station.StationControl.lamp.purpleColor); this.interconnectedControl && this.interconnectedControl.setTextColor(this.style.Station.StationControl.lamp.purpleColor); - this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.lightColor); - this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.lightColor }); - } + this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.lightColor); + this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.lightColor }); + } handleNone() { // 空 if (this.style.Station.stationText.noneModeColor) { @@ -794,11 +794,11 @@ export default class Station extends Group { this.troButton && this.troButton.hide(); this.substationArrowsControl && this.substationArrowsControl.setColor(this.style.Station.StationControl.lamp.grayColor); this.emergencyArrowsControl && this.emergencyArrowsControl.setColor(this.style.Station.StationControl.lamp.grayColor); - this.stationControlCC && this.stationControlCC.setStyle({text:'EL', textFill:this.style.Station.StationControl.text.emergencyControlColor}); - this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.defaultColor); - this.selfDiscipline && this.selfDiscipline.setColor(this.style.Station.StationControl.selfDiscipline.defaultColor); - this.selfDisciplineControl && this.selfDisciplineControl.setColor(this.style.Station.StationControl.selfDisciplineControl.defaultColor); - this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.defaultColor }); + this.stationControlCC && this.stationControlCC.setStyle({text:'EL', textFill:this.style.Station.StationControl.text.emergencyControlColor}); + this.veryControl && this.veryControl.setColor(this.style.Station.StationControl.veryControl.defaultColor); + this.selfDiscipline && this.selfDiscipline.setColor(this.style.Station.StationControl.selfDiscipline.defaultColor); + this.selfDisciplineControl && this.selfDisciplineControl.setColor(this.style.Station.StationControl.selfDisciplineControl.defaultColor); + this.veryControlButton && this.veryControlButton.setStyle({ fill: this.style.Station.StationControl.veryControlButton.defaultColor }); if (this.style.Station.stationText.isSpecialType) { this.stationText.setColor(this.style.Station.stationText.noneModeColor); this.stationText.setBackground(this.style.Station.stationText.defaultBackColor); diff --git a/src/jmapNew/theme/datie_02/menus/index.vue b/src/jmapNew/theme/datie_02/menus/index.vue index 321a08f9a..645d03ed7 100644 --- a/src/jmapNew/theme/datie_02/menus/index.vue +++ b/src/jmapNew/theme/datie_02/menus/index.vue @@ -58,6 +58,7 @@ + @@ -102,6 +103,7 @@ import CtcBarIcon16 from '@/assets/ctc_icon/pic16.png'; import CtcBarIcon17 from '@/assets/ctc_icon/pic17.png'; import CtcBarIcon18 from '@/assets/ctc_icon/pic18.png'; import cmdManage from '@/views/dispatcherStationManage/cmdManage.vue'; +import signedCmd from '@/views/dispatcherStationManage/signedCmd.vue'; export default { name: 'Menus', @@ -124,7 +126,8 @@ export default { // DispatcherLoger, BottomTable, MenuPanel, - cmdManage + cmdManage, + signedCmd }, props: { selected: { @@ -243,8 +246,19 @@ export default { window.onclick = function (e) {}; }, methods: { + changeSignedStatus(info) { + this.isCtc && this.$refs.cmdManage.changeSignedStatus(info); + }, + signedCmdClose() { + this.isCtc && this.$refs.cmdManage.doShow(); + }, showCmdManage() { - this.$refs.cmdManage.doShow(); + if (!this.isCtc) { return; } + if (this.hasCommandMsg) { + this.$refs.signedCmd.doShow(); + } else { + this.$refs.cmdManage.doShow(); + } }, getRailwaySimulationRunplanSend() { const stationCode = this.$store.state.training.roleDeviceCode; diff --git a/src/jmapNew/theme/datie_tky/menus/menuSection.vue b/src/jmapNew/theme/datie_tky/menus/menuSection.vue new file mode 100644 index 000000000..1abfbb0d5 --- /dev/null +++ b/src/jmapNew/theme/datie_tky/menus/menuSection.vue @@ -0,0 +1,113 @@ + + diff --git a/src/router/index.js b/src/router/index.js index 180b90074..150820229 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -76,6 +76,7 @@ const IscsStationConfig = () => import('@/views/iscs/iscsSystem/stationConfig/in const NewMapDraft = () => import('@/views/newMap/newMapdraft/index'); const NewMapDraftSystem = () => import('@/views/newMap/newMapdraftSystem/index'); +const MapDraftPicture = () => import('@/views/newMap/mapDraftPicture/index'); const NewDesignPlatformUser = () => import('@/views/newMap/newDesignUser/index'); const Taskmanage = () => import('@/views/lesson/taskmanage/list'); @@ -1356,6 +1357,11 @@ export const asyncRouter = [ component: NewMapDraftSystem, hidden: true }, + { // 地图画面管理 + path: 'usermap/map/pictureDraw/:mapId/:view', + component: MapDraftPicture, + hidden: true + }, { path:'iscs/design', redirect: '/iscs/design', diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js index 1b223db8b..b68910090 100644 --- a/src/scripts/ConstConfig.js +++ b/src/scripts/ConstConfig.js @@ -73,7 +73,8 @@ export default { {label: '电力调度', value: 'ELECTRIC_DISPATCHER', enLabel: 'Electric dispatcher'}, {label: '行调', value: 'DISPATCHER', enLabel: 'Dispatcher '}, {label: '上级部门', value: 'PARENT_DEPARTMENT', enLabel: 'Parent department'}, - {label: '停车场信号楼', value: 'PARKING_LOT_SIGNAL_BUILDING', enLabel: 'Parking Signal Building'} + {label: '停车场信号楼', value: 'PARKING_LOT_SIGNAL_BUILDING', enLabel: 'Parking Signal Building'}, + {label: '车站助理', value: 'STATION_ASSISTANT', enLabel: 'StationAssistant'} ], releaseReview: [ diff --git a/src/scripts/ConstDic.js b/src/scripts/ConstDic.js index ff4a74f3c..2883b871e 100644 --- a/src/scripts/ConstDic.js +++ b/src/scripts/ConstDic.js @@ -143,7 +143,7 @@ export const IbpOperation = { PRERESET_Z: {operate: '14', event: 'PRERESET_Z', name: '计轴预复位'}, SD: {operate: '15', event: 'SD', name: '试灯'}, XXGM: {operate: '16', event: 'XXGM', name: '下行屏蔽门开门'}, - SXGM: {operate: '17', event: 'SXGM', name: '上行屏蔽门开门'}, + SXGM: {operate: '17', event: 'SXGM', name: '上行屏蔽门开门'} }; /** @@ -167,7 +167,8 @@ export const SimulationType = { DISPATCHER: '行调', STATION_SUPERVISOR: '车站值班员', DRIVER: '司机', - MAINTAINER: '通号' + MAINTAINER: '通号', + STATION_ASSISTANT: '车站助理' }; export const UrlConfig = { displayNew: '/displayNew', diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index d14ff73dc..30bf92c6f 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -24,10 +24,11 @@ export function handlerUrl(data) { if (process.env.NODE_ENV === 'development') { // const data = null; // 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.233/rtss-server'; // BASE_API = 'http://114.116.51.125/jlcloud'; // BASE_API = 'http://192.168.8.152:9000'; // 袁琪 - BASE_API = 'http://192.168.3.94:9000'; // 旭强 + // BASE_API = 'http://192.168.3.94:9000'; // 旭强 // BASE_API = 'http://192.168.3.15:9000'; // 张赛 // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 diff --git a/src/views/dispatcherStationManage/cmdManage.vue b/src/views/dispatcherStationManage/cmdManage.vue index 6d5b2aaba..dbfb0745c 100644 --- a/src/views/dispatcherStationManage/cmdManage.vue +++ b/src/views/dispatcherStationManage/cmdManage.vue @@ -25,7 +25,7 @@
收令箱
- + @@ -193,6 +193,13 @@ export default { this.searchCmd(); }, methods:{ + tableRowClassName({row, rowIndex}) { + const status = this.getSignInfo(row.receiverInfos).signedStatus; + if (status === 'SIGNED') { + return 'signed-row'; + } + return 'unsigned-row'; + }, doShow() { this.dialogShow = true; this.$store.commit('socket/clearDispatchCommandMsg'); @@ -219,27 +226,14 @@ export default { }, signCmd(status) { if (!this.commandId) { return; } + const signInfo = { commandId: this.commandId, signedBy: this.getActiveUser.memberId, signedStatus: status }; const data = { - signInfo: { - commandId: this.commandId, - signedBy: this.getActiveUser.memberId, - signedStatus: status - } + signInfo: signInfo }; sendCommandNew(this.group, 'CTC_SIGN_DISPATCH_COMMAND', data).then((res) => { console.log(res, '---res'); if (res.code == 200) { - const index = this.cmdTableData.findIndex(item => { - return item.id == this.commandId; - }); - if (index >= 0) { - const obj = this.cmdTableData[index]; - const mId = this.getActiveUser.memberId; - obj.receiverInfos[mId].signedBy = mId; - obj.receiverInfos[mId].signedStatus = status; - obj.receiverInfos[mId].time = parseTime(this.initTime); - this.cmdTableData.splice(index, 1, obj); - } + this.changeSignedStatus(signInfo); } else { this.$messageBox(`${this.signedStatusObj[status]}调度命令失败:${res.message}`); } @@ -247,6 +241,19 @@ export default { this.$messageBox(`${this.signedStatusObj[status]}调度命令失败:${error.message}`); }); }, + changeSignedStatus(signInfo) { + const index = this.cmdTableData.findIndex(item => { + return item.id == signInfo.commandId; + }); + if (index >= 0) { + const obj = this.cmdTableData[index]; + const mId = signInfo.signedBy; + obj.receiverInfos[mId].signedBy = mId; + obj.receiverInfos[mId].signedStatus = signInfo.signedStatus; + obj.receiverInfos[mId].time = parseTime(this.initTime); + this.cmdTableData.splice(index, 1, obj); + } + }, searchCmd() { sendCommandNew(this.group, 'CTC_QUERY_DISPATCH_COMMAND').then((res) => { console.log(res, '---res'); @@ -298,6 +305,16 @@ export default { .content-box { width: calc(100% - 150px); padding-left: 10px; + .box-top { + .el-table { + /deep/ .signed-row { + color: red; + } + /deep/ .unsigned-row { + color: blue; + } + } + } .box-middle { padding-top: 10px; display: flex; diff --git a/src/views/dispatcherStationManage/dispatchCmd.vue b/src/views/dispatcherStationManage/dispatchCmd.vue index c03eb7dfb..53b3c352f 100644 --- a/src/views/dispatcherStationManage/dispatchCmd.vue +++ b/src/views/dispatcherStationManage/dispatchCmd.vue @@ -19,7 +19,7 @@
- 新建调度命令 + 新建调度命令
@@ -253,6 +253,16 @@ export default { beforeDestroy() {}, mounted() {}, methods:{ + createCmd() { + this.$confirm('当前调度命令已经被编辑修改过了,你要放弃所有的修改吗?', '操作提示', { + confirmButtonText: '是', + cancelButtonText: '否' + }).then(() => { + this.initData(); + }).catch(() => { + console.log('取消新建调度命令!'); + }); + }, initData() { this.command = { title: '', @@ -284,6 +294,7 @@ export default { } }, getSenderName() { + this.memberDataList = Object.values(this.memberData); const activeUser = this.memberDataList.find(item => { return item.userId == this.$store.state.user.id; }); @@ -293,7 +304,6 @@ export default { } }, doShow() { - this.memberDataList = Object.values(this.memberData); this.getSenderName(); this.dialogShow = true; }, diff --git a/src/views/dispatcherStationManage/signedCmd.vue b/src/views/dispatcherStationManage/signedCmd.vue new file mode 100644 index 000000000..38841a6e5 --- /dev/null +++ b/src/views/dispatcherStationManage/signedCmd.vue @@ -0,0 +1,275 @@ + + + diff --git a/src/views/jlmap3d/drive/jl3ddrive.vue b/src/views/jlmap3d/drive/jl3ddrive.vue index efa228ca0..8f29e416e 100644 --- a/src/views/jlmap3d/drive/jl3ddrive.vue +++ b/src/views/jlmap3d/drive/jl3ddrive.vue @@ -1,20 +1,19 @@ + + + + + + + + + + diff --git a/src/views/newMap/mapDraftPicture/mapoperate/device.vue b/src/views/newMap/mapDraftPicture/mapoperate/device.vue new file mode 100644 index 000000000..f22c94614 --- /dev/null +++ b/src/views/newMap/mapDraftPicture/mapoperate/device.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/views/newMap/mapDraftPicture/mapoperate/index.vue b/src/views/newMap/mapDraftPicture/mapoperate/index.vue new file mode 100644 index 000000000..20b7f8573 --- /dev/null +++ b/src/views/newMap/mapDraftPicture/mapoperate/index.vue @@ -0,0 +1,236 @@ + + + + diff --git a/src/views/newMap/mapDraftPicture/mapoperate/multiSelect.vue b/src/views/newMap/mapDraftPicture/mapoperate/multiSelect.vue new file mode 100644 index 000000000..26a859df9 --- /dev/null +++ b/src/views/newMap/mapDraftPicture/mapoperate/multiSelect.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/newMap/newDesignUser/demonList.vue b/src/views/newMap/newDesignUser/demonList.vue index 412380d16..dd19c1b0a 100644 --- a/src/views/newMap/newDesignUser/demonList.vue +++ b/src/views/newMap/newDesignUser/demonList.vue @@ -45,173 +45,190 @@