From 3f7eccdc2f65ac0b8156f76d947f9a9633bdf656 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 10 Dec 2020 13:53:34 +0800 Subject: [PATCH 01/15] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E7=BC=96?= =?UTF-8?q?=E5=88=B6=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en/map.js | 3 ++- src/i18n/langs/zh/map.js | 3 ++- .../newMap/newMapdraft/mapoperate/counter.vue | 2 +- .../newMapdraft/mapoperate/delayunlock.vue | 2 +- .../newMap/newMapdraft/mapoperate/station.vue | 2 +- .../editTool/menus/gernaratePlanTrain.vue | 27 +++++++++++++++---- .../editTool/menus/populatingGenericData.vue | 6 ++--- .../editTool/routingoperate/runplanConfig.vue | 2 +- 8 files changed, 33 insertions(+), 14 deletions(-) diff --git a/src/i18n/langs/en/map.js b/src/i18n/langs/en/map.js index 7a34dba2a..0f48d8051 100644 --- a/src/i18n/langs/en/map.js +++ b/src/i18n/langs/en/map.js @@ -168,7 +168,8 @@ export default { automaticSignalUpdateSucceeded: 'Automatic signal update successful!', automaticSignalUpdateFailed: 'Automatic signal update failed', - stationName: 'The station name:', + stationName: 'The station name', + stationNameColon: 'The station name:', property: 'attribute', counterCoding: 'Counter coding:', diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js index fc0e2b613..d7f07394d 100644 --- a/src/i18n/langs/zh/map.js +++ b/src/i18n/langs/zh/map.js @@ -156,7 +156,8 @@ export default { interconnected: '联锁控名称', buttonType: '所属类型', - stationName: '车站名称:', + stationNameColon: '车站名称:', + stationName: '车站名称', property: '属性', counterCoding: '计数器编码:', diff --git a/src/views/newMap/newMapdraft/mapoperate/counter.vue b/src/views/newMap/newMapdraft/mapoperate/counter.vue index 628c30a78..45acf25f3 100644 --- a/src/views/newMap/newMapdraft/mapoperate/counter.vue +++ b/src/views/newMap/newMapdraft/mapoperate/counter.vue @@ -137,7 +137,7 @@ export default { all:{ name:'', item: [ - { prop: 'stationCode', label: this.$t('map.stationName'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList }, + { prop: 'stationCode', label: this.$t('map.stationNameColon'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList }, { prop: 'type', label: this.$t('map.counterType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.typeList } ] } diff --git a/src/views/newMap/newMapdraft/mapoperate/delayunlock.vue b/src/views/newMap/newMapdraft/mapoperate/delayunlock.vue index 1c3294446..4461746fd 100644 --- a/src/views/newMap/newMapdraft/mapoperate/delayunlock.vue +++ b/src/views/newMap/newMapdraft/mapoperate/delayunlock.vue @@ -135,7 +135,7 @@ export default { all:{ name:'', item: [ - { prop: 'stationCode', label: this.$t('map.stationName'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList } + { prop: 'stationCode', label: this.$t('map.stationNameColon'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList } ] } } diff --git a/src/views/newMap/newMapdraft/mapoperate/station.vue b/src/views/newMap/newMapdraft/mapoperate/station.vue index a8a3755d8..fa07b7d77 100644 --- a/src/views/newMap/newMapdraft/mapoperate/station.vue +++ b/src/views/newMap/newMapdraft/mapoperate/station.vue @@ -163,7 +163,7 @@ export default { name: this.$t('map.drawData'), item: [ { prop: 'code', label: this.$t('map.stationCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList, deviceChange: this.deviceChange }, - { prop: 'name', label: this.$t('map.stationName'), type: 'input' }, + { prop: 'name', label: this.$t('map.stationNameColon'), type: 'input' }, { prop: 'number', label: this.$t('map.stationNumber'), type: 'input' }, { prop: 'sn', label: '车站序号', type: 'input' }, { prop: 'position', label: this.$t('map.stationPosition'), type: 'coordinate', width: '120px', children: [ diff --git a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue index 672d99668..3fe654efb 100644 --- a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue +++ b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue @@ -43,10 +43,12 @@ export default { { value: 5, label: '等级五' } ], formModel: { + gernarateType:'01', serviceNumber:'', // 服务号 beginTime: '', // 开始时间 overTime: '', // 结束时间 runLevel:'', // 运行等级 + departureInterval:0, // 发车间隔 inboundRouting:'', // 回库交路code outboundRouting:'', // 出库交路code runningRouting1: '', // 环路code1 @@ -66,6 +68,9 @@ export default { runLevel: [ { required: true, message: '请选择运行等级', trigger: 'change' } ], + departureInterval:[ + { required: true, message: '请填写发车间隔', trigger: 'blur' } + ], inboundRouting: [ { required: true, message: '请选择回库交路', trigger: 'change' } ], @@ -93,14 +98,19 @@ export default { labelWidth: '100px', size:'small', items: [ - { prop: 'serviceNumber', label: '服务号', type: 'text', rightWidth:true, maxlength:3 }, + { prop: 'gernarateType', label: '生成类型', type: 'checkBox', children: [ + { name: '单条服务', value: '01' }, + { name: '多条服务', value: '02' } + ] }, + { prop: 'serviceNumber', label: '服务号', type: 'text', rightWidth:true, maxlength:3, show:this.formModel.gernarateType == '01'}, { prop: 'beginTime', label: '开始时间', type: 'timePicker'}, { prop: 'overTime', label: '结束时间', type: 'timePicker'}, { prop: 'runLevel', label: '运行等级', type: 'select', options: this.runLevelList }, - { prop: 'outboundRouting', label: '出库交路', type: 'select', options: this.covertRouting('OUTBOUND'), noDataText:'请先设置交路' }, - { prop: 'runningRouting1', label: '环路交路1', type: 'select', options: this.covertRouting('LOOP'), noDataText:'请先设置交路', change:true, onChange:this.changeRoute('runningRouting2')}, - { prop: 'runningRouting2', label: '环路交路2', type: 'select', options: this.covertRouting('LOOP'), noDataText:'请先设置交路', change:true, onChange:this.changeRoute('runningRouting1')}, - { prop: 'inboundRouting', label: '入库交路', type: 'select', options: this.covertRouting('INBOUND'), noDataText:'请先设置交路' } + { prop: 'departureInterval', label: '发车间隔', type: 'number', show:this.formModel.gernarateType == '02', min:0, step:1, precisionFlag:true, precision:0 }, + { prop: 'outboundRouting', label: '出库交路', type: 'select', options: this.covertRouting('OUTBOUND'), noDataText:'请先设置交路'}, + { prop: 'runningRouting1', label: '环路交路1', type: 'select', show:true, options: this.covertRouting('LOOP'), noDataText:'请先设置交路', change:true, onChange:this.changeRoute2 }, + { prop: 'runningRouting2', label: '环路交路2', type: 'select', show:true, options: this.covertRouting('LOOP'), noDataText:'请先设置交路', change:true, onChange:this.changeRoute1}, + { prop: 'inboundRouting', label: '入库交路', type: 'select', options: this.covertRouting('INBOUND'), noDataText:'请先设置交路'} ] }; } @@ -141,6 +151,12 @@ export default { } } }, + changeRoute2() { + this.changeRoute('runningRouting2'); + }, + changeRoute1() { + this.changeRoute('runningRouting1'); + }, changeRoute(runningRouting) { if (this.formModel[runningRouting]) { this.$refs.dataform.validateField([runningRouting]); } }, @@ -158,6 +174,7 @@ export default { this.$messageBox('结束时间必须大于开始时间'); return false; } + delete this.formModel.gernarateType; this.loading = true; generatePlanTrain(this.$route.query.planId || this.loadRunPlanId, this.formModel).then(res => { this.loading = false; diff --git a/src/views/planMonitor/editTool/menus/populatingGenericData.vue b/src/views/planMonitor/editTool/menus/populatingGenericData.vue index 8c832b617..8e943aae1 100644 --- a/src/views/planMonitor/editTool/menus/populatingGenericData.vue +++ b/src/views/planMonitor/editTool/menus/populatingGenericData.vue @@ -82,9 +82,9 @@ export default { items: [ { prop: 'beginTime', label: '开始时间', type: 'timePicker'}, { prop: 'overTime', label: '结束时间', type: 'timePicker'}, - { prop: 'departureTimeInterval', label: '发车间隔', type: 'number'}, - { prop: 'parkedTime', label: '停站时间', type: 'number'}, - { prop: 'reentryTime', label: '折返时间', type: 'number'}, + { prop: 'departureTimeInterval', label: '发车间隔', type: 'number', min:0, step:1, precisionFlag:true, precision:0 }, + { prop: 'parkedTime', label: '停站时间', type: 'number', min:0, step:1, precisionFlag:true, precision:0}, + { prop: 'reentryTime', label: '折返时间', type: 'number', min:0, step:1, precisionFlag:true, precision:0}, { prop: 'right', label: '发车类型', type: 'checkBox', children: [ { name: '上行发车', value: 1 }, { name: '下次发车', value: 2 }, diff --git a/src/views/planMonitor/editTool/routingoperate/runplanConfig.vue b/src/views/planMonitor/editTool/routingoperate/runplanConfig.vue index f17c887b8..c395aace6 100644 --- a/src/views/planMonitor/editTool/routingoperate/runplanConfig.vue +++ b/src/views/planMonitor/editTool/routingoperate/runplanConfig.vue @@ -32,7 +32,7 @@ height="300" class="el-parkSectionCode-table" > - + From 9114578e228a42694fe2740bf647fdb394cdb494 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 10 Dec 2020 14:40:41 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=89=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/ningbo_03/menus/menuBar.vue | 7 +- .../menuDialog/initSectionLimitSpeed.vue | 130 +++++++++++++++--- .../menus/menuDialog/initSectionOpen.vue | 15 +- .../menus/menuDialog/sectionLimitSpeed.vue | 100 +++++++++++--- .../menus/menuDialog/sectionOpen.vue | 8 +- .../menus/menuDialog/sectionShow.vue | 63 +++++++-- src/scripts/cmdPlugin/OperationHandler.js | 4 + 7 files changed, 269 insertions(+), 58 deletions(-) diff --git a/src/jmapNew/theme/ningbo_03/menus/menuBar.vue b/src/jmapNew/theme/ningbo_03/menus/menuBar.vue index 4a63d69ef..20049fe02 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuBar.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuBar.vue @@ -132,6 +132,7 @@ + - - From 80ebd84062a55285b949a26661e3e2368026c32f Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 10 Dec 2020 17:34:13 +0800 Subject: [PATCH 05/15] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=89=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/ningbo_03.js | 4 +- src/jmapNew/shape/Section/ELines.js | 10 +- src/jmapNew/shape/Section/index.js | 5 +- .../shape/StationStand/EPatternFilter.js | 5 +- .../StationStand/safeStand/ESolidStand.js | 9 +- .../theme/ningbo_03/menus/menuSection.vue | 90 ++++---- .../theme/ningbo_03/menus/menuSignal.vue | 210 +++++++++--------- .../theme/ningbo_03/menus/menuStation.vue | 70 +++--- .../ningbo_03/menus/menuStationControl.vue | 40 ++-- .../ningbo_03/menus/menuStationStand.vue | 160 ++++++------- .../theme/ningbo_03/menus/menuSwitch.vue | 152 ++++++------- .../newMapdraft/mapoperate/controlLamp.vue | 2 +- .../newMap/newMapdraft/mapoperate/models.js | 1 + 13 files changed, 384 insertions(+), 374 deletions(-) diff --git a/src/jmapNew/config/skinCode/ningbo_03.js b/src/jmapNew/config/skinCode/ningbo_03.js index 30df092d5..75bb13fa9 100644 --- a/src/jmapNew/config/skinCode/ningbo_03.js +++ b/src/jmapNew/config/skinCode/ningbo_03.js @@ -395,9 +395,9 @@ class SkinCode extends defaultStyle { designatedJumpStopColor: 'lightSkyBlue', // 站台指定列车跳停颜色 headFontSize: 10, // 站台首端字体大小 doorOpenColor:'#00FF00', // 车门开启状态颜色 - stopColor: 'yellow', // 站台列车停站颜色 + stopColor: '#0080C0', // 站台列车停站颜色 virtualColor: '#585858', // 虚拟站台颜色 - lineWidth: 3 // 站台线宽 + lineWidth: 6 // 站台线宽 }, // 站台紧急关闭 emergentRhombus:{ diff --git a/src/jmapNew/shape/Section/ELines.js b/src/jmapNew/shape/Section/ELines.js index 4f31954d4..b616dbadb 100644 --- a/src/jmapNew/shape/Section/ELines.js +++ b/src/jmapNew/shape/Section/ELines.js @@ -173,7 +173,7 @@ export default class ELines extends Group { }); this.routeArrowRight = new Isogon({ zlevel: this.zlevel, - origin: [cPointLeft.x, cPointLeft.y], + origin: [cPointRight.x, cPointRight.y], rotation: -Math.PI / 2 - triangleRight.getRotation(), z: Z + 9, shape: { @@ -191,7 +191,7 @@ export default class ELines extends Group { this.routeLineLeft = new Polyline({ zlevel: this.zlevel, progressive: model.progressive, - z: Z, + z: Z + 9, shape: { points: pointsLeft }, @@ -203,7 +203,7 @@ export default class ELines extends Group { this.routeLineRight = new Polyline({ zlevel: this.zlevel, progressive: model.progressive, - z: Z, + z: Z + 9, shape: { points: pointsRight }, @@ -344,8 +344,8 @@ export default class ELines extends Group { this.routeLineRight && this.routeLineRight.hide(); this.routeArrowLeft && this.routeArrowLeft.setStyle({ stroke: this.model.style.Section.routeArrow.defaultArrowStroke, fill: this.model.style.Section.routeArrow.defaultArrowFill }); this.routeArrowRight && this.routeArrowRight.setStyle({ stroke: this.model.style.Section.routeArrow.defaultArrowStroke, fill: this.model.style.Section.routeArrow.defaultArrowFill }); - this.routeLineLeft && this.routeLineLeft.setStyle({ fill: this.model.style.Section.routeArrow.defaultLineStroke }); - this.routeArrowRight && this.routeArrowRight.setStyle({ fill: this.model.style.Section.routeArrow.defaultLineStroke }); + this.routeLineLeft && this.routeLineLeft.setStyle({ stroke: this.model.style.Section.routeArrow.defaultLineStroke }); + this.routeLineRight && this.routeLineRight.setStyle({ stroke: this.model.style.Section.routeArrow.defaultLineStroke }); } getBoundingRect() { if (this.section) { diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 03e225d1e..8bb3e8274 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -147,12 +147,13 @@ export default class Section extends Group { }); } /** 进路锁闭 04*/ - routeLock() { + routeLock(lockRight) { if (this.line) { this.line.setStyle({ stroke: this.style.Section.line.routeLockColor, lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth }); + this.line.setRouteLock(lockRight); } } @@ -260,7 +261,7 @@ export default class Section extends Group { /** 道岔保护区段锁闭 */ model.overlapLock && this.protectiveLock(); /** 空闲锁闭或者叫进路锁闭 */ - model.routeLock && this.routeLock(); + model.routeLock && this.routeLock(model.lockRight); /** 轨道封锁 */ model.invalid && this.invalid(); /** 计轴故障 */ diff --git a/src/jmapNew/shape/StationStand/EPatternFilter.js b/src/jmapNew/shape/StationStand/EPatternFilter.js index e29c4c863..bf980c0b6 100644 --- a/src/jmapNew/shape/StationStand/EPatternFilter.js +++ b/src/jmapNew/shape/StationStand/EPatternFilter.js @@ -11,7 +11,10 @@ class EPatternFilter extends Group { create() { const model = this.model.modelData; const style = this.model.style; - const direction = model.right ? 1 : -1; + let direction = -1; + if ((model.right && model.inside) || (!model.right && !model.inside)) { + direction = 1; + } const startX = (model.width / 2 + style.StationStand.patternFilter.offset.x); const startY = model.position.y + (model.height / 2 + style.StationStand.patternFilter.offset.y) * direction + (1 + direction) / 2 * 14; diff --git a/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js b/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js index 5ef4d9b4b..60b2fc005 100644 --- a/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js +++ b/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js @@ -25,7 +25,9 @@ class ESolidStand extends Group { height: model.height }, style: { - 'fill':style.StationStand.solidStand.spareColor + fill:style.StationStand.solidStand.spareColor, + lineWidth: style.StationStand.solidStand.lineWidth || 0, + stroke: style.StationStand.solidStand.spareStrokeColor } }); this.add(this.stand); @@ -61,7 +63,9 @@ class ESolidStand extends Group { setColor(color) { this.stand.setStyle('fill', color); } - + setStroke(color) { + this.stand.setStyle('stroke', color); + } recover() { const style = this.model.style; this.setColor(style.StationStand.solidStand.spareColor); @@ -77,6 +81,7 @@ class ESolidStand extends Group { model.allSkip && this.setColor(style.StationStand.solidStand.jumpStopColor); // 停车 model.trainParking && this.setColor(style.StationStand.solidStand.stopColor); + model.trainParking && this.setStroke(style.StationStand.solidStand.doorOpenColor); // 紧急停车 model.emergencyClosed && this.setColor(this.style.StationStand.solidStand.spareColor); } else { diff --git a/src/jmapNew/theme/ningbo_03/menus/menuSection.vue b/src/jmapNew/theme/ningbo_03/menus/menuSection.vue index 3395cadc9..88d3b52c0 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuSection.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuSection.vue @@ -51,53 +51,53 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '区段故障解锁', - handler: this.fault, - cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK - }, - { - label: '区段跟踪激活', - handler: this.active, - cmdType: CMD.Section.CMD_SECTION_ACTIVE - }, - { - label: '区段跟踪切除', - handler: this.split, - cmdType: CMD.Section.CMD_SECTION_CUT_OFF - }, - { - label: '区段封锁', - handler: this.lock, - cmdType: CMD.Section.CMD_SECTION_BLOCK - }, - { - label: '区段解封', - handler: this.unlock, - cmdType: CMD.Section.CMD_SECTION_UNBLOCK - } + // { + // label: '区段故障解锁', + // handler: this.fault, + // cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK + // }, + // { + // label: '区段跟踪激活', + // handler: this.active, + // cmdType: CMD.Section.CMD_SECTION_ACTIVE + // }, + // { + // label: '区段跟踪切除', + // handler: this.split, + // cmdType: CMD.Section.CMD_SECTION_CUT_OFF + // }, + // { + // label: '区段封锁', + // handler: this.lock, + // cmdType: CMD.Section.CMD_SECTION_BLOCK + // }, + // { + // label: '区段解封', + // handler: this.unlock, + // cmdType: CMD.Section.CMD_SECTION_UNBLOCK + // } ], Center: [ - { - label: '区段跟踪激活', - handler: this.active, - cmdType: CMD.Section.CMD_SECTION_ACTIVE - }, - { - label: '区段跟踪切除', - handler: this.split, - cmdType: CMD.Section.CMD_SECTION_CUT_OFF - }, - { - label: '确认计轴有效', - handler: this.alxeEffective, - cmdType: CMD.Section.CMD_SECTION_COMFIRMATION_AXLE - }, - { - label: '设置临时限速', - handler: this.setSpeed, - cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED - } + // { + // label: '区段跟踪激活', + // handler: this.active, + // cmdType: CMD.Section.CMD_SECTION_ACTIVE + // }, + // { + // label: '区段跟踪切除', + // handler: this.split, + // cmdType: CMD.Section.CMD_SECTION_CUT_OFF + // }, + // { + // label: '确认计轴有效', + // handler: this.alxeEffective, + // cmdType: CMD.Section.CMD_SECTION_COMFIRMATION_AXLE + // }, + // { + // label: '设置临时限速', + // handler: this.setSpeed, + // cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED + // } ] }, menuForce: [ diff --git a/src/jmapNew/theme/ningbo_03/menus/menuSignal.vue b/src/jmapNew/theme/ningbo_03/menus/menuSignal.vue index 713dcd76e..87299c3fa 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuSignal.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuSignal.vue @@ -54,113 +54,113 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '排列进路', - handler: this.arrangementRoute, - cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE - }, - { - label: '取消进路', - handler: this.cancelTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE - }, - { - label: '信号重开', - handler: this.reopenSignal, - cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL - }, - { - label: '信号机引导办理', - handler: this.guide, - cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE - }, - { - label: '人工解锁进路', // 信号机引导取消 - handler: this.humanTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_GUIDE - }, - { - label: '信号封锁', - handler: this.lock, - cmdType: CMD.Signal.CMD_SIGNAL_BLOCK - }, - { - label: '信号解封', - handler: this.unlock, - cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK - }, - { - label: 'Fleet进路办理', - handler: this.singalPassModel, - cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO - }, - { - label: 'Fleet进路取消', - handler: this.singalCancelPassModel, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO - }, - { - label: '进路交人工控', - handler: this.humanControl, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING - }, - { - label: '进路交自动控', - handler: this.atsAutoControl, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING - }, - { - label: '查询进路控制状态', - handler: this.detail, - cmdType: CMD.Signal.CMD_SIGNAL_DETAIL - } + // { + // label: '排列进路', + // handler: this.arrangementRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE + // }, + // { + // label: '取消进路', + // handler: this.cancelTrainRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE + // }, + // { + // label: '信号重开', + // handler: this.reopenSignal, + // cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL + // }, + // { + // label: '信号机引导办理', + // handler: this.guide, + // cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE + // }, + // { + // label: '人工解锁进路', // 信号机引导取消 + // handler: this.humanTrainRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_GUIDE + // }, + // { + // label: '信号封锁', + // handler: this.lock, + // cmdType: CMD.Signal.CMD_SIGNAL_BLOCK + // }, + // { + // label: '信号解封', + // handler: this.unlock, + // cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK + // }, + // { + // label: 'Fleet进路办理', + // handler: this.singalPassModel, + // cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO + // }, + // { + // label: 'Fleet进路取消', + // handler: this.singalCancelPassModel, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO + // }, + // { + // label: '进路交人工控', + // handler: this.humanControl, + // cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING + // }, + // { + // label: '进路交自动控', + // handler: this.atsAutoControl, + // cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING + // }, + // { + // label: '查询进路控制状态', + // handler: this.detail, + // cmdType: CMD.Signal.CMD_SIGNAL_DETAIL + // } ], Center: [ - { - label: '排列进路', - handler: this.arrangementRoute, - cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE - }, - { - label: '取消进路', - handler: this.cancelTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE - }, - { - label: '人工解锁进路', // 信号机引导取消 - handler: this.humanTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_GUIDE - }, - { - label: '信号重开', - handler: this.reopenSignal, - cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL - }, - { - label: '进路交人工控', - handler: this.humanControl, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING - }, - { - label: '进路交自动控', - handler: this.atsAutoControl, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING - }, - { - label: '设置通过模式', - handler: this.singalPassModel, - cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO - }, - { - label: '取消通过模式', - handler: this.singalCancelPassModel, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO - }, - { - label: '查询进路控制状态', - handler: this.detail, - cmdType: CMD.Signal.CMD_SIGNAL_DETAIL - } + // { + // label: '排列进路', + // handler: this.arrangementRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE + // }, + // { + // label: '取消进路', + // handler: this.cancelTrainRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE + // }, + // { + // label: '人工解锁进路', // 信号机引导取消 + // handler: this.humanTrainRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_GUIDE + // }, + // { + // label: '信号重开', + // handler: this.reopenSignal, + // cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL + // }, + // { + // label: '进路交人工控', + // handler: this.humanControl, + // cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING + // }, + // { + // label: '进路交自动控', + // handler: this.atsAutoControl, + // cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING + // }, + // { + // label: '设置通过模式', + // handler: this.singalPassModel, + // cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO + // }, + // { + // label: '取消通过模式', + // handler: this.singalCancelPassModel, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO + // }, + // { + // label: '查询进路控制状态', + // handler: this.detail, + // cmdType: CMD.Signal.CMD_SIGNAL_DETAIL + // } ] }, menuForce: [ diff --git a/src/jmapNew/theme/ningbo_03/menus/menuStation.vue b/src/jmapNew/theme/ningbo_03/menus/menuStation.vue index 2dee4c8ad..18c2895bb 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuStation.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuStation.vue @@ -46,43 +46,43 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '全站设置联锁自动触发', - handler: this.setAutoTrigger, - cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER - }, - { - label: '全站取消联锁自动触发', - handler: this.cancelAutoTrigger, - cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER - }, - { - label: '上电解锁', - handler: this.powerUnLock, - cmdType: CMD.Station.CMD_STATION_POWER_ON_UNLOCK - }, - { - label: '执行关键操作测试', - handler: this.execKeyOperationTest, - cmdType: CMD.Station.CMD_STATION_KEY_OPERATION_TEST - } + // { + // label: '全站设置联锁自动触发', + // handler: this.setAutoTrigger, + // cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER + // }, + // { + // label: '全站取消联锁自动触发', + // handler: this.cancelAutoTrigger, + // cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER + // }, + // { + // label: '上电解锁', + // handler: this.powerUnLock, + // cmdType: CMD.Station.CMD_STATION_POWER_ON_UNLOCK + // }, + // { + // label: '执行关键操作测试', + // handler: this.execKeyOperationTest, + // cmdType: CMD.Station.CMD_STATION_KEY_OPERATION_TEST + // } ], Center: [ - { - label: '所有进路自排关', - handler: this.humanControlALL, - cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING - }, - { - label: '所有进路自排开', - handler: this.atsAutoControlALL, - cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING - }, - { - label: '执行关键操作测试', - handler: this.execKeyOperationTest, - cmdType: CMD.Station.CMD_STATION_KEY_OPERATION_TEST - } + // { + // label: '所有进路自排关', + // handler: this.humanControlALL, + // cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING + // }, + // { + // label: '所有进路自排开', + // handler: this.atsAutoControlALL, + // cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING + // }, + // { + // label: '执行关键操作测试', + // handler: this.execKeyOperationTest, + // cmdType: CMD.Station.CMD_STATION_KEY_OPERATION_TEST + // } ] }, menuForce: [ diff --git a/src/jmapNew/theme/ningbo_03/menus/menuStationControl.vue b/src/jmapNew/theme/ningbo_03/menus/menuStationControl.vue index 0425495e9..51c66c414 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuStationControl.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuStationControl.vue @@ -33,28 +33,28 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '请求站控', - handler: this.setStationControl, - cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL - }, - { - label: '请求遥控', - handler: this.setCenterControl, - cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL - } + // { + // label: '请求站控', + // handler: this.setStationControl, + // cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL + // }, + // { + // label: '请求遥控', + // handler: this.setCenterControl, + // cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL + // } ], Center: [ - { - label: '请求站控', - handler: this.setStationControl, - cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL - }, - { - label: '请求遥控', - handler: this.setCenterControl, - cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL - } + // { + // label: '请求站控', + // handler: this.setStationControl, + // cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL + // }, + // { + // label: '请求遥控', + // handler: this.setCenterControl, + // cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL + // } ] }, menuForce: [ diff --git a/src/jmapNew/theme/ningbo_03/menus/menuStationStand.vue b/src/jmapNew/theme/ningbo_03/menus/menuStationStand.vue index 7c3256916..3fadc687a 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuStationStand.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuStationStand.vue @@ -54,88 +54,88 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '扣车', - handler: this.setDetainTrain, - cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN - }, - { - label: '取消扣车', - handler: this.cancelDetainTrain, - cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN - }, - { - label: '提前发车', - handler: this.earlyDeparture, - cmdType:CMD.Stand.CMD_STAND_EARLY_DEPART - }, - { - label: '站台详细信息', - handler: this.detail, - cmdType:CMD.Stand.CMD_STAND_VIEW_STATUS - } + // { + // label: '扣车', + // handler: this.setDetainTrain, + // cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN + // }, + // { + // label: '取消扣车', + // handler: this.cancelDetainTrain, + // cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN + // }, + // { + // label: '提前发车', + // handler: this.earlyDeparture, + // cmdType:CMD.Stand.CMD_STAND_EARLY_DEPART + // }, + // { + // label: '站台详细信息', + // handler: this.detail, + // cmdType:CMD.Stand.CMD_STAND_VIEW_STATUS + // } ], Center: [ - { - label: '扣车', - handler: this.setDetainTrain, - cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN - }, - { - label: '取消扣车', - handler: this.cancelDetainTrain, - cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN - }, - { - label: '批量扣车', - handler: this.setBulkBuckleTrain, - cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_ALL - }, - { - label: '批量取消扣车', - handler: this.cancelBulkBuckleTrain, - cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_ALL - }, - { - label: '提前发车', - handler: this.earlyDeparture, - cmdType:CMD.Stand.CMD_STAND_EARLY_DEPART - }, - { - label: '设置跳停', - handler: this.setJumpStop, - cmdType:CMD.Stand.CMD_STAND_SET_JUMP_STOP - }, - { - label: '取消跳停', - handler: this.cancelJumpStop, - cmdType:CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP - }, - { - label: '设置停站时间', - handler: this.setStopTime, - cmdType:CMD.Stand.CMD_STAND_SET_PARK_TIME - }, - { - label: '设置运行等级', - handler: this.setRunLevel, - cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME - }, - { - label: '区间列车数量限制', - handler: this.setDetainTrainAll, - cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_AUTO - }, - { - label: '取消区间列车数量限制', - handler: this.cancelDetainTrainAll, - cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_AUTO - }, - { - label: '查看站台信息', - handler: this.detail, - cmdType:CMD.Stand.CMD_STAND_VIEW_STATUS - } + // { + // label: '扣车', + // handler: this.setDetainTrain, + // cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN + // }, + // { + // label: '取消扣车', + // handler: this.cancelDetainTrain, + // cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN + // }, + // { + // label: '批量扣车', + // handler: this.setBulkBuckleTrain, + // cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_ALL + // }, + // { + // label: '批量取消扣车', + // handler: this.cancelBulkBuckleTrain, + // cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_ALL + // }, + // { + // label: '提前发车', + // handler: this.earlyDeparture, + // cmdType:CMD.Stand.CMD_STAND_EARLY_DEPART + // }, + // { + // label: '设置跳停', + // handler: this.setJumpStop, + // cmdType:CMD.Stand.CMD_STAND_SET_JUMP_STOP + // }, + // { + // label: '取消跳停', + // handler: this.cancelJumpStop, + // cmdType:CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP + // }, + // { + // label: '设置停站时间', + // handler: this.setStopTime, + // cmdType:CMD.Stand.CMD_STAND_SET_PARK_TIME + // }, + // { + // label: '设置运行等级', + // handler: this.setRunLevel, + // cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME + // }, + // { + // label: '区间列车数量限制', + // handler: this.setDetainTrainAll, + // cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN_AUTO + // }, + // { + // label: '取消区间列车数量限制', + // handler: this.cancelDetainTrainAll, + // cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_AUTO + // }, + // { + // label: '查看站台信息', + // handler: this.detail, + // cmdType:CMD.Stand.CMD_STAND_VIEW_STATUS + // } ] }, menuForce: [ diff --git a/src/jmapNew/theme/ningbo_03/menus/menuSwitch.vue b/src/jmapNew/theme/ningbo_03/menus/menuSwitch.vue index a666f4f4f..ace1ccb4a 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuSwitch.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuSwitch.vue @@ -52,87 +52,87 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '定操', - handler: this.locate, - cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION - }, - { - label: '反操', - handler: this.reverse, - cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION - }, - { - label: '道岔单锁', - handler: this.lock, - cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK - }, - { - label: '道岔单解', - handler: this.unlock, - cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK - }, - { - label: '道岔封锁', - handler: this.block, - cmdType: CMD.Switch.CMD_SWITCH_BLOCK - }, - { - label: '道岔解封', - handler: this.unblock, - cmdType: CMD.Switch.CMD_SWITCH_UNBLOCK - } - ], - Center: [ - { - label: '定操', - handler: this.locate, - cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION - }, - { - label: '反操', - handler: this.reverse, - cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION - }, + // { + // label: '定操', + // handler: this.locate, + // cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION + // }, + // { + // label: '反操', + // handler: this.reverse, + // cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION + // }, // { // label: '道岔单锁', // handler: this.lock, // cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK // }, - { - type: 'separator' - }, - { - label: '区段激活', - handler: this.active, - cmdType: CMD.Switch.CMD_SWITCH_ACTIVE - }, - { - label: '区段切除', - handler: this.split, - cmdType: CMD.Switch.CMD_SWITCH_CUT_OFF - }, - { - type: 'separator' - }, - { - label: '确认计轴有效', - handler: this.alxeEffective, - cmdType: CMD.Switch.CMD_SWITCH_COMFIRMATION_AXLE - }, - { - label: '设置临时限速', - handler: this.setSpeed, - cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED - }, - { - type: 'separator' - }, - { - label: '查看公里标', - handler: this.undeveloped, - cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED - } + // { + // label: '道岔单解', + // handler: this.unlock, + // cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK + // }, + // { + // label: '道岔封锁', + // handler: this.block, + // cmdType: CMD.Switch.CMD_SWITCH_BLOCK + // }, + // { + // label: '道岔解封', + // handler: this.unblock, + // cmdType: CMD.Switch.CMD_SWITCH_UNBLOCK + // } + ], + Center: [ + // { + // label: '定操', + // handler: this.locate, + // cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION + // }, + // { + // label: '反操', + // handler: this.reverse, + // cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION + // }, + // { + // label: '道岔单锁', + // handler: this.lock, + // cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK + // }, + // { + // type: 'separator' + // }, + // { + // label: '区段激活', + // handler: this.active, + // cmdType: CMD.Switch.CMD_SWITCH_ACTIVE + // }, + // { + // label: '区段切除', + // handler: this.split, + // cmdType: CMD.Switch.CMD_SWITCH_CUT_OFF + // }, + // { + // type: 'separator' + // }, + // { + // label: '确认计轴有效', + // handler: this.alxeEffective, + // cmdType: CMD.Switch.CMD_SWITCH_COMFIRMATION_AXLE + // }, + // { + // label: '设置临时限速', + // handler: this.setSpeed, + // cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED + // }, + // { + // type: 'separator' + // }, + // { + // label: '查看公里标', + // handler: this.undeveloped, + // cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED + // } ] }, menuForce: [ diff --git a/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue b/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue index 8577e224c..58e202399 100644 --- a/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue +++ b/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue @@ -134,7 +134,7 @@ export default { name: this.$t('map.drawData'), item: [ { prop:'type', label: this.$t('map.saidLampType'), type: 'select', optionLabel: 'name', optionValue: 'value', options: this.typeList, deviceChange: this.typeChange }, - { prop: 'code', label: `${this.$t('map.code')}`, type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.selectLists, deviceChange: this.deviceChange }, + { prop: 'code', label: `${this.$t('map.code')}`, type: 'select', optionLabel: 'code', optionValue: 'code', options: this.selectLists, deviceChange: this.deviceChange }, { prop: 'name', label: this.$t('map.saidLampName'), type: 'input', isHidden: this.noNameTypeList.includes(this.editModel.type) }, { prop: 'position', label: this.$t('map.textPoints'), type: 'coordinate', width: '140px', children: [ { prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' }, diff --git a/src/views/newMap/newMapdraft/mapoperate/models.js b/src/views/newMap/newMapdraft/mapoperate/models.js index bd6b9a4d0..4349b849c 100644 --- a/src/views/newMap/newMapdraft/mapoperate/models.js +++ b/src/views/newMap/newMapdraft/mapoperate/models.js @@ -192,5 +192,6 @@ class Model { export default function getModel(type) { const model = new Model(type); + // console.log(model, type, '****'); return model; } From fd267160b1aa6e2dfa0a0c3121afca23093a4338 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 10 Dec 2020 18:02:59 +0800 Subject: [PATCH 06/15] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E7=BB=98?= =?UTF-8?q?=E5=9B=BE=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4=EF=BC=88=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E8=AE=BE=E7=BD=AE=E4=BF=A1=E5=8F=B7=E6=9C=BA=E5=BD=92?= =?UTF-8?q?=E5=B1=9E=E8=81=94=E9=94=81=E7=AB=99bug=EF=BC=89=20=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=9B=BE=E7=BC=96=E5=88=B6=E4=BB=A3=E7=A0=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapoperate/signal/batchSetting.vue | 483 ++++++++++++++++++ .../newMapdraft/mapoperate/signal/create.vue | 2 + .../newMapdraft/mapoperate/signal/index.vue | 434 +--------------- .../editTool/menus/gernaratePlanTrain.vue | 12 +- 4 files changed, 512 insertions(+), 419 deletions(-) create mode 100644 src/views/newMap/newMapdraft/mapoperate/signal/batchSetting.vue diff --git a/src/views/newMap/newMapdraft/mapoperate/signal/batchSetting.vue b/src/views/newMap/newMapdraft/mapoperate/signal/batchSetting.vue new file mode 100644 index 000000000..eb9a0d982 --- /dev/null +++ b/src/views/newMap/newMapdraft/mapoperate/signal/batchSetting.vue @@ -0,0 +1,483 @@ + + + diff --git a/src/views/newMap/newMapdraft/mapoperate/signal/create.vue b/src/views/newMap/newMapdraft/mapoperate/signal/create.vue index 278ba8a30..d9fc0a001 100644 --- a/src/views/newMap/newMapdraft/mapoperate/signal/create.vue +++ b/src/views/newMap/newMapdraft/mapoperate/signal/create.vue @@ -175,6 +175,8 @@ export default { }); this.$emit('updateMapModel', model); + this.$refs.createForm.resetForm(); + } else { this.$messageBox(this.$t('tip.selectedSectionEmpty')); } diff --git a/src/views/newMap/newMapdraft/mapoperate/signal/index.vue b/src/views/newMap/newMapdraft/mapoperate/signal/index.vue index f087cd2b0..3470f9dfd 100644 --- a/src/views/newMap/newMapdraft/mapoperate/signal/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/signal/index.vue @@ -15,156 +15,7 @@ - - - - - - - -
- 设置 - {{ $t('map.clearHint') }} -
-
- - -
{{ item }}
-
-
-
-
- - - - - - - - - - - - - -
- 设置 -
-
- - - - - - - - - - - - - -
- 设置 -
- - - - - - {{ $t('map.activate') }} - - - - - - - -
- 设置 -
-
- - - - - - - - - - - -
- 设置 -
-
- - - - - - -
- 设置 -
-
- - - - - - - - -
- 设置 -
-
- - - - - - -
- 设置 -
-
- -
- 设置 -
-
- - - - - - - {{ $t('map.activate') }} - - - - - - {{ $t('map.activate') }} - - -
- 设置 -
-
-
+
@@ -173,6 +24,7 @@ import { mapGetters } from 'vuex'; import { deepAssign } from '@/utils/index'; import createSignal from './create'; +import batchSetting from './batchSetting'; import OperateProperty from '../components/operateProperty'; import getModel from '../models.js'; @@ -180,7 +32,8 @@ export default { name: 'SignalDraft', components: { createSignal, - OperateProperty + OperateProperty, + batchSetting }, props: { selected: { @@ -193,81 +46,26 @@ export default { data() { return { activeName: 'first', - collapseActive: '', lazy: true, SignalDirectionList: [ { code: false, name: '向左' }, { code: true, name: '向右' } ], - SignalLeftOrRightList: [], + // SignalLeftOrRightList: [], SignalLampPostTypeList: [], SignalLampPositionTypeList: [], SignalPositionTypeList: [], - failTypes: [ - { code: '00', name: this.$t('map.normal') }, - { code: '01', name: this.$t('map.signalFilamentAlarm') } - ], + // failTypes: [ + // { code: '00', name: this.$t('map.normal') }, + // { code: '01', name: this.$t('map.signalFilamentAlarm') } + // ], signalTypeList: [ { code: 'PROTECTION', name: '防护信号机'}, { code: 'BLOCKING', name: '阻挡信号机'}, { code: 'PASSING', name: '通过信号机'} ], - signalScopeList: [ - { code: 'All', name: '全部信号机'}, - { code: 'Virtual', name: '虚拟信号机'}, - { code: 'NoVirtual', name: '非虚拟信号机'} - ], - questionList: [], field:'', editModel: getModel('Signal'), - addModel: { - number: 2 - }, - typeModel: { - scope: 'All', - type: 'PROTECTION' - }, - ciModel: { - stationList: [], - ciStation: [] - }, - ciModelForm: { - signalList: [], - ciStation: '' - }, - ctcModel: { - ctc: true - }, - noOverlapModel: { - noOverlap: false - }, - signalStationModel: { - signalStationCode: '', - signalLists: [] - }, - signalStationRules: { - signalStationCode: [ - { required: true, message: '请选择车站', trigger: 'change' } - ], - signalLists: [ - { required: true, message: '请选择信号机', trigger: 'change' } - ] - }, - ciModelFormRules: { - signalList: [ - { required: true, message: '请选择信号机', trigger: 'change' } - ], - ciStation: [ - { required: true, message: '请选择连锁站', trigger: 'change' } - ] - }, - guideModel: { - scope: 'All', - callOn: true - }, - lampPositionModel: { - lampPositionType: '' - }, centralizedStationList: [], // 设备集中站列表 ciStationList: [] // 联锁站列表 }; @@ -296,17 +94,6 @@ export default { } return list; }, - // 未设置联锁站信号机列表 - filterSignalList() { - let list = []; - if (this.signalList && this.signalList.length) { - list = this.signalList.filter(elem => { - return !elem.interlockStationCode; - }); - } - console.log(list, '过滤信号机联锁'); - return list; - }, form() { return { labelWidth: '150px', @@ -411,7 +198,7 @@ export default { } }, mounted() { - this.SignalLeftOrRightList = this.$ConstSelect.SignalLeftOrRightList; + // this.SignalLeftOrRightList = this.$ConstSelect.SignalLeftOrRightList; this.$Dictionary.signalLampPostType().then(list => { this.SignalLampPostTypeList = list; @@ -465,14 +252,16 @@ export default { this.field = ''; this.$emit('deviceSelect', ''); } else if (selected && selected._type == 'Station' && this.field == 'signalStationCodeType') { - this.signalStationModel.signalStationCode = selected.code; + // this.signalStationModel.signalStationCode = selected.code; + this.$refs.batchSetting.setData('signalStationCodeType', selected.code); this.activeName = 'three'; this.field = ''; this.$emit('deviceSelect', ''); } else if (selected && selected._type == 'Signal' && this.field == 'signalCodesType') { - if (!this.signalStationModel.signalLists.includes(selected.code)) { - this.signalStationModel.signalLists.push(selected.code); - } + this.$refs.batchSetting.setData('signalCodesType', selected.code); + // if (!this.signalStationModel.signalLists.includes(selected.code)) { + // this.signalStationModel.signalLists.push(selected.code); + // } this.activeName = 'three'; } else if (selected && selected._type == 'Signal' && this.field == 'signalIgnoreRouteEnd') { if (!this.editModel.ignoreRouteEnd.includes(selected.code) && this.editModel.code != selected.code) { @@ -480,9 +269,10 @@ export default { } this.activeName = 'first'; } else if (selected && selected._type == 'Signal' && this.field == 'signalCodes') { - if (!this.ciModelForm.signalList.includes(selected.code)) { - this.ciModelForm.signalList.push(selected.code); - } + // if (!this.ciModelForm.signalList.includes(selected.code)) { + // this.ciModelForm.signalList.push(selected.code); + // } + this.$refs.batchSetting.setData('signalCodes', selected.code); this.activeName = 'three'; } }, @@ -498,40 +288,6 @@ export default { this.$emit('deviceSelect', ''); } }, - // 构建信号机偏移量 - editAll() { - if (this.addModel.number != '') { - const models = []; - this.questionList = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); // 深拷贝 - const section = this.findSection(signalModel); // 关联区段model - if (section.code && item.sectionCode != section.code) { - signalModel.sectionCode = section.code; // 重置信号机所属区段 - } - if (!section.code) { - this.questionList.push(`${item.name}(${item.code}) 信号机位置可能不正确,请手动调试归属区段及偏移量.`); - } else { // 一旦不正确 不做偏移处理 - signalModel.sectionOffset = this.addModel.number; - if (signalModel.right) { - if (section.lengthFact) { - signalModel.sectionOffset = Math.abs(Number(section.lengthFact) - this.addModel.number); - } - } - } - models.push(signalModel); - if (this.editModel.code == signalModel.code) { - this.editModel.sectionCode = signalModel.sectionCode; - } - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - this.deviceSelect(); - - } else { - this.$message('请输入偏移量'); - } - }, virtualChange(val) { if (val) { this.editModel.turnBack = false; @@ -539,132 +295,6 @@ export default { this.editModel.turnBack = false; } }, - setAllSignalType(val) { - const models = []; - this.signalList.forEach(item => { - if (this.typeModel.scope === 'All' || (this.typeModel.scope === 'Virtual' && item.virtual) || (this.typeModel.scope === 'NoVirtual' && !item.virtual)) { - const signalModel = deepAssign({}, item); // 深拷贝 - signalModel.type = this.typeModel.type; - models.push(signalModel); - } - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - setCiStationSignal() { - const models = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); // 深拷贝 - if (this.ciModel.stationList.includes(item.stationCode)) { - signalModel.interlockStationCode = this.ciModel.ciStation; - } - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - setCiStationSignalLists() { - this.$refs['signalCiStation1'].validate(valid => { - if (valid) { - const models = []; - this.ciModelForm.signalList.forEach(code => { - const signalModel = deepAssign({}, this.$store.getters['map/getDeviceByCode'](code)); // 深拷贝 - signalModel.interlockStationCode = this.ciModelForm.ciStation; - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - this.ciModelForm.signalList = []; - } - }); - }, - setSignalCallOn() { - const models = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); // 深拷贝 - if (this.guideModel.scope === 'All' || (this.guideModel.scope === 'Virtual' && item.virtual) || (this.guideModel.scope === 'NoVirtual' && !item.virtual)) { - if (signalModel.type !== 'BLOCKING') { - signalModel.callOn = this.guideModel.callOn; - } - models.push(signalModel); - } - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - setCtcShow() { - const models = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); // 深拷贝 - signalModel.ctc = this.ctcModel.ctc; - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - setLampPosition() { - const models = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); // 深拷贝 - signalModel.lampPositionType = this.lampPositionModel.lampPositionType; - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - setLampNoOverlap() { - const models = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); - signalModel.noOverlap = this.noOverlapModel.noOverlap; - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - // 寻找信号机关联区段 - findSection(signal) { - // 01 向左 02 向右 - let model = {}; - this.sectionList.forEach(section => { - if (!signal.right && section.type != '02' && section.type != '04') { - if (section.points[0].x == signal.position.x && Math.abs(section.points[0].y - signal.position.y) <= 20) { - model = section; - } - } else if (signal.right && section.type != '02' && section.type != '04') { - if (section.points[section.points.length - 1].x == signal.position.x && Math.abs(section.points[section.points.length - 1].y - signal.position.y) <= 20) { - model = section; - } - } - }); - return model; - }, - setSignalName() { - const models = []; - this.signalList.forEach(item => { - const signalModel = deepAssign({}, item); - signalModel.uniqueName = item.name; - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - }, - setSignalUniqueName() { - this.$refs['signalStationForm'].validate(valid => { - if (valid) { - const models = []; - this.signalStationModel.signalLists.forEach(code => { - const signalModel = deepAssign({}, this.$store.getters['map/getDeviceByCode'](code)); - const stationModel = this.$store.getters['map/getDeviceByCode'](this.signalStationModel.signalStationCode); - signalModel.uniqueName = `${signalModel.name}_${stationModel.jp}`; - models.push(signalModel); - }); - this.$emit('updateMapModel', models); - this.$message.success('数据构建成功!'); - this.signalStationModel.signalLists = []; - } - }); - }, deleteObj() { this.$refs.dataform.deleteObj(); }, @@ -682,30 +312,6 @@ export default { height: 100%; overflow: scroll; } - .flex_box{ - display: flex; - justify-content: center; - } - .questionTip{ - height: 90px; - margin-top: 10px; - border-radius: 4px; - width: 98%; - padding: 10px; - } - - .box-card { - width: calc(100% - 80px); - margin: 20px auto 0; - padding: 0 20px; - .text { - font-size: 14px; - } - - .item { - padding: 6px 0; - } - } .card { height: 100%; diff --git a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue index b8523bebc..f3a90864f 100644 --- a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue +++ b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue @@ -174,16 +174,18 @@ export default { this.$messageBox('结束时间必须大于开始时间'); return false; } - if (this.formModel.gernarateType == '01') { - delete this.formModel.departureInterval; + const formModel = Object.assign({}, this.formModel); + if (formModel.gernarateType == '01') { + delete formModel.departureInterval; } else { - delete this.formModel.serviceNumber; + delete formModel.serviceNumber; } - delete this.formModel.gernarateType; + delete formModel.gernarateType; this.loading = true; - generatePlanTrain(this.$route.query.planId || this.loadRunPlanId, this.formModel).then(res => { + generatePlanTrain(this.$route.query.planId || this.loadRunPlanId, formModel).then(res => { this.loading = false; this.doClose(); + this.$refs.dataform.resetForm(); this.$store.dispatch('runPlan/refresh'); }).catch(error => { console.log(error); From 1b0ab87020754abc8715dfb8f3864386294238f7 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 10 Dec 2020 18:33:18 +0800 Subject: [PATCH 07/15] =?UTF-8?q?=E8=BD=A6=E7=AB=99=E7=BB=98=E5=9B=BE?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4=EF=BC=88=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E5=85=AC=E9=87=8C=E6=A0=87=E5=90=8D=E7=A7=B0=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=EF=BC=89=20=E6=96=87=E5=AD=97=E7=BB=98=E5=9B=BE=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=B0=83=E6=95=B4=EF=BC=88=E8=B0=83=E6=95=B4=E6=96=87?= =?UTF-8?q?=E5=AD=97=E5=AD=97=E4=BD=93=EF=BC=8C=E4=B8=8E=E8=BD=A6=E7=AB=99?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=AD=97=E4=BD=93=E4=B8=80=E8=87=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Text/index.js | 1 + src/views/newMap/newMapdraft/mapoperate/station.vue | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jmapNew/shape/Text/index.js b/src/jmapNew/shape/Text/index.js index 9b84759bb..a77b17302 100644 --- a/src/jmapNew/shape/Text/index.js +++ b/src/jmapNew/shape/Text/index.js @@ -39,6 +39,7 @@ export default class Text2 extends Group { x: model.position.x, y: model.position.y, text: content, + fontFamily: this.style.fontFamily, fontSize: Number(model.font), textFill: model.fontColor, textAlign: 'middle' diff --git a/src/views/newMap/newMapdraft/mapoperate/station.vue b/src/views/newMap/newMapdraft/mapoperate/station.vue index fa07b7d77..6cae3f473 100644 --- a/src/views/newMap/newMapdraft/mapoperate/station.vue +++ b/src/views/newMap/newMapdraft/mapoperate/station.vue @@ -234,9 +234,9 @@ export default { kmRange: [ { required: true, message: this.$t('rules.stationKmRange'), trigger: 'blur' } ], - kmPost: [ - { required: true, message: this.$t('rules.stationKmPost'), trigger: 'blur' } - ], + // kmPost: [ + // { required: true, message: this.$t('rules.stationKmPost'), trigger: 'blur' } + // ], 'position.x': [ { required: true, message: this.$t('rules.pleaseEnterXCoordinate'), trigger: 'blur' } ], From 082f18e5eb90d364b133f2cfe2253967c58f1a78 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 10 Dec 2020 18:43:17 +0800 Subject: [PATCH 08/15] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E7=BC=96?= =?UTF-8?q?=E5=88=B6=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../planMonitor/editTool/menus/gernaratePlanTrain.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue index f3a90864f..b46cfba5a 100644 --- a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue +++ b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue @@ -48,7 +48,8 @@ export default { beginTime: '', // 开始时间 overTime: '', // 结束时间 runLevel:'', // 运行等级 - departureInterval:0, // 发车间隔 + departureInterval:180, // 发车间隔 + reentryTime:80, // 折返时间 inboundRouting:'', // 回库交路code outboundRouting:'', // 出库交路code runningRouting1: '', // 环路code1 @@ -71,6 +72,9 @@ export default { departureInterval:[ { required: true, message: '请填写发车间隔', trigger: 'blur' } ], + reentryTime:[ + { required: true, message: '请填写折返时间', trigger: 'blur' } + ], inboundRouting: [ { required: true, message: '请选择回库交路', trigger: 'change' } ], @@ -106,7 +110,8 @@ export default { { prop: 'beginTime', label: '开始时间', type: 'timePicker'}, { prop: 'overTime', label: '结束时间', type: 'timePicker'}, { prop: 'runLevel', label: '运行等级', type: 'select', options: this.runLevelList }, - { prop: 'departureInterval', label: '发车间隔', type: 'number', show:this.formModel.gernarateType == '02', min:0, step:1, precisionFlag:true, precision:0 }, + { prop: 'departureInterval', label: '发车间隔', type: 'number', show:this.formModel.gernarateType == '02', min:0, step:1, precisionFlag:true, precision:0, message:'s'}, + { prop: 'reentryTime', label: '折返时间', type: 'number', min:0, step:1, precisionFlag:true, precision:0, message:'s' }, { prop: 'outboundRouting', label: '出库交路', type: 'select', options: this.covertRouting('OUTBOUND'), noDataText:'请先设置交路'}, { prop: 'runningRouting1', label: '环路交路1', type: 'select', show:true, options: this.covertRouting('LOOP'), noDataText:'请先设置交路', change:true, onChange:this.changeRoute2 }, { prop: 'runningRouting2', label: '环路交路2', type: 'select', show:true, options: this.covertRouting('LOOP'), noDataText:'请先设置交路', change:true, onChange:this.changeRoute1}, From 2fdfaa2561da15f34e7f7a138b413ffee4677443 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 11 Dec 2020 09:59:27 +0800 Subject: [PATCH 09/15] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=97=E9=93=81?= =?UTF-8?q?=E9=99=A2=E7=99=BB=E5=BD=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/ProjectConfig.js | 85 ++++++++++++++++++++++++++++-------- src/views/login/index.vue | 2 +- 2 files changed, 67 insertions(+), 20 deletions(-) diff --git a/src/scripts/ProjectConfig.js b/src/scripts/ProjectConfig.js index 5ed610d78..efce3667a 100644 --- a/src/scripts/ProjectConfig.js +++ b/src/scripts/ProjectConfig.js @@ -13,7 +13,7 @@ import FaviconBxkc from '@/assets/icon/favicon_bxkc.png'; import FaviconCrsc from '@/assets/icon/favicon_crsc.png'; import FaviconNty from '@/assets/icon/favicon_nty.png'; import FaviconBjd from '@/assets/icon/favicon_bjd.png'; -import FaviconJdy from '@/assets/icon/favicon_jdy.png'; +import FaviconSdy from '@/assets/icon/favicon_jdy.png'; import Link_Bxkc from '@/assets/icon/link_bxkc.png'; import Link_Crsc from '@/assets/icon/link_crsc.png'; import Link_Hls from '@/assets/icon/link_hls.png'; @@ -45,17 +45,35 @@ export const loginInfo = { navigationMarginLeft: '175px', systemType: '011' }, - jdy: { + sdy: { title: '江苏电子信息职业学院城市轨道交通实训平台', - loginPath: '/login?project=jdy', - loginParam: 'DEFAULT', + loginPath: '/login?project=sdy', + loginParam: 'SDY', + titleDistance: '-150px', + navigationLogoWidth: '40px', + navigationMarginLeft: '60px', + systemType: '011' + }, + ntyc: { + title: '南京铁道职业技术学院城市轨道交通实训平台(专业版)', + loginPath: '/login?project=ntyc', + loginParam: 'NTYC', + titleDistance: '-150px', + navigationLogoWidth: '40px', + navigationMarginLeft: '60px', + systemType: '011' + }, + ntyl: { + title: '南京铁道职业技术学院城市轨道交通实训平台', + loginPath: '/login?project=ntyl', + loginParam: 'NTYL', titleDistance: '-150px', navigationLogoWidth: '40px', navigationMarginLeft: '60px', systemType: '011' }, nty: { - title: '南京铁道职业技术学院城市轨道交通实训平台', + title: '南京铁道职业技术学院城市轨道交通实训平台(通用版)', loginPath:'/login?project=nty', loginParam: 'NTY', titleDistance: '-150px', @@ -118,8 +136,26 @@ export const loginInfo = { navigationMarginLeft: '60px', systemType: '013' }, - designnty: { + designntyl: { title: '南京铁道职业技术学院城市轨道交通设计平台', + loginPath:'/design/login?project=ntyl', + loginParam: 'NTYL', + titleDistance: '-150px', + navigationLogoWidth: '40px', + navigationMarginLeft: '60px', + systemType: '011' + }, + designntyc: { + title: '南京铁道职业技术学院城市轨道交通设计平台', + loginPath:'/design/login?project=ntyc', + loginParam: 'NTYC', + titleDistance: '-150px', + navigationLogoWidth: '40px', + navigationMarginLeft: '60px', + systemType: '011' + }, + designnty: { + title: '南京铁道职业技术学院城市轨道交通设计平台(通用版)', loginPath:'/design/login?project=nty', loginParam: 'NTY', titleDistance: '-150px', @@ -127,10 +163,10 @@ export const loginInfo = { navigationMarginLeft: '60px', systemType: '011' }, - designjdy: { + designsdy: { title: '江苏电子信息职业学院城市轨道交通设计平台', - loginPath: '/design/login?project=jdy', - loginParam: 'DEFAULT', + loginPath: '/design/login?project=sdy', + loginParam: 'JYD', titleDistance: '-150px', navigationLogoWidth: '40px', navigationMarginLeft: '60px', @@ -379,10 +415,14 @@ export const ProjectIcon = { designdrts: Favicon, nty: FaviconNty, designnty: FaviconNty, + ntyc: FaviconNty, + designntyc: FaviconNty, + nty1: FaviconNty, + designntyl: FaviconNty, bjd: FaviconBjd, designbjd: FaviconBjd, - jdy: FaviconJdy, - designjdy: FaviconJdy + sdy: FaviconSdy, + designsdy: FaviconSdy }; export const ProjectCode = { @@ -398,17 +438,22 @@ export const ProjectCode = { designdrts: 'DRTS', nty: 'NTY', designnty: 'NTY', + ntyl: 'NTYL', + designnty1: 'NTYL', + ntyc: 'NTYC', + designntyc: 'NTYC', bjd: 'BJD', designbjd: 'BJD', - jdy: 'JDY', - designjdy: 'JDY' + sdy: 'SDY', + designsdy: 'SDY' }; export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd']; // 底部栏仅展示公司信息不展示备案号 -export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb', 'designdrts', 'drts', 'nty', 'designnty']; // 实训设计平台通过项目code获取地图列表的项目 +export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb', 'designdrts', 'drts', 'nty', 'designnty', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designnty1']; // 实训设计平台通过项目code获取地图列表的项目 export const CaseHideProjectList = ['heb', 'designheb']; // 案例展示隐藏的项目 export const VersionBaseNoShow = ['heb', 'designheb', 'hls', 'designhls', 'drts', 'hyd', 'designhyd']; // 登录页右下角版本开发基于不展示 export const MainBodyNoShow = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd']; // 登录页右下角主体不展示 -export const ProjectLoginStyleList = ['gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd', 'jdy', 'designjdy']; // 登录页样式 +export const ProjectLoginStyleList = ['gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc', + 'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl']; // 登录页样式 export const NoQrcodeList = ['heb', 'designheb']; export const NoSimulationQrCodeList = ['heb', 'bjd']; export const goOtherPlatformMenu = { // 导航栏快速切换平台 @@ -438,8 +483,8 @@ export const goOtherPlatformMenu = { // 导航栏快速切换平台 designnty: '/login?project=nty', bjd: '/design/login?project=bjd', designbjd: '/login?project=bjd', - jdy: '/design/login?project=jdy', - designjdy: '/login?project=jdy' + sdy: '/design/login?project=sdy', + designsdy: '/login?project=sdy' }; export const ProjectList = [ {value:'xty', label:'西铁院'}, @@ -447,8 +492,10 @@ export const ProjectList = [ {value: 'xadt', label: '西安地铁'}, {value: 'heb', label: '哈尔滨'}, {value: 'drts', label: '调度大赛'}, - {value: 'nty', label: '南铁院'}, + {value: 'nty', label: '南铁院(通用版)'}, + {value: 'ntyc', label: '南铁院(专业版)'}, + {value: 'ntyl', label: '南铁院(本地版)'}, {value: 'bjd', label: '北交大'}, {value: 'urtss', label: '陪标项目'}, - {value: 'jdy', label: '江苏电子'} + {value: 'sdy', label: '苏电院'} ]; diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 9c9a3454d..0bb744fd0 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -741,7 +741,7 @@ export default { font-size: 40px; font-weight: bold; top: 150px; - width: 1000px; + width: 1050px; text-align: center; position: absolute; } From 05958bb6192c7652677933c8ab441c3259ed06ae Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 11 Dec 2020 10:00:38 +0800 Subject: [PATCH 10/15] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=97=E9=93=81?= =?UTF-8?q?=E9=99=A2=E7=99=BB=E5=BD=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/ProjectConfig.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/ProjectConfig.js b/src/scripts/ProjectConfig.js index efce3667a..704ff32e1 100644 --- a/src/scripts/ProjectConfig.js +++ b/src/scripts/ProjectConfig.js @@ -55,7 +55,7 @@ export const loginInfo = { systemType: '011' }, ntyc: { - title: '南京铁道职业技术学院城市轨道交通实训平台(专业版)', + title: '南京铁道职业技术学院城市轨道交通实训平台(专用版)', loginPath: '/login?project=ntyc', loginParam: 'NTYC', titleDistance: '-150px', @@ -146,7 +146,7 @@ export const loginInfo = { systemType: '011' }, designntyc: { - title: '南京铁道职业技术学院城市轨道交通设计平台', + title: '南京铁道职业技术学院城市轨道交通设计平台(专用版)', loginPath:'/design/login?project=ntyc', loginParam: 'NTYC', titleDistance: '-150px', @@ -493,7 +493,7 @@ export const ProjectList = [ {value: 'heb', label: '哈尔滨'}, {value: 'drts', label: '调度大赛'}, {value: 'nty', label: '南铁院(通用版)'}, - {value: 'ntyc', label: '南铁院(专业版)'}, + {value: 'ntyc', label: '南铁院(专用版)'}, {value: 'ntyl', label: '南铁院(本地版)'}, {value: 'bjd', label: '北交大'}, {value: 'urtss', label: '陪标项目'}, From afa359d22aede16b2fa468f6da78797690bec017 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 11 Dec 2020 13:15:07 +0800 Subject: [PATCH 11/15] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E7=BB=98?= =?UTF-8?q?=E5=88=B6=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editTool/menus/populatingGenericData.vue | 104 +++++++++++------- 1 file changed, 66 insertions(+), 38 deletions(-) diff --git a/src/views/planMonitor/editTool/menus/populatingGenericData.vue b/src/views/planMonitor/editTool/menus/populatingGenericData.vue index 8e943aae1..b848ae405 100644 --- a/src/views/planMonitor/editTool/menus/populatingGenericData.vue +++ b/src/views/planMonitor/editTool/menus/populatingGenericData.vue @@ -19,8 +19,7 @@ From f9d8bda8b0475908443315890a50da31a414aea4 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 11 Dec 2020 13:19:34 +0800 Subject: [PATCH 12/15] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=89=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E5=BB=B6=E7=BB=AD=E4=BF=9D=E6=8A=A4=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AE=AD=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Section/index.js | 5 +++-- src/views/newMap/newMapdraft/mapoperate/models.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 8bb3e8274..c8e8735e5 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -207,12 +207,13 @@ export default class Section extends Group { } /** 保护区段锁闭 09*/ - protectiveLock() { + protectiveLock(lockRight) { if (this.line) { this.line.setStyle({ stroke: this.style.Section.line.protectiveLockColor, lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth }); + this.line.setRouteLock(lockRight); } } @@ -259,7 +260,7 @@ export default class Section extends Group { } // 顺序代表优先级 /** 道岔保护区段锁闭 */ - model.overlapLock && this.protectiveLock(); + model.overlapLock && this.protectiveLock(model.lockRight); /** 空闲锁闭或者叫进路锁闭 */ model.routeLock && this.routeLock(model.lockRight); /** 轨道封锁 */ diff --git a/src/views/newMap/newMapdraft/mapoperate/models.js b/src/views/newMap/newMapdraft/mapoperate/models.js index 4349b849c..02906787f 100644 --- a/src/views/newMap/newMapdraft/mapoperate/models.js +++ b/src/views/newMap/newMapdraft/mapoperate/models.js @@ -135,7 +135,7 @@ class Model { this.position = { x: 0, y: 0 }; this.kilometerPosition = { x: 0, y: 0 }; // 公里标偏移坐标 this.createControlMode = false; - // this.createTurnBack = false; + this.createTurnBack = false; // this.turnBackPoint = {x: 0, y: 0}; // 按图折返坐标 this.controlModePoint = { x: 0, y: 0 }; // 控制模式坐标 } From 0d8f0f021a5d4d7590521b760c0e0ce002167329 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 11 Dec 2020 14:51:04 +0800 Subject: [PATCH 13/15] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/configLine/config.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/system/configLine/config.vue b/src/views/system/configLine/config.vue index 1c4f1d42a..8ede03fea 100644 --- a/src/views/system/configLine/config.vue +++ b/src/views/system/configLine/config.vue @@ -77,9 +77,9 @@ export default { height: 800, roadData: [], focus: false, - booleanList: ['upRight', 'lockFirst', 'switchSingleHandle', 'switchNRTurnChain', 'switchSingleLockChain', 'switchLossChain', 'signalForceCancelRoute', 'initSingleLockSwitch', 'ctcOverlapOnlyTurnBackStationLock', 'guideNeedRouteSettingFirst', 'signalOpenAfterParking', 'standHoldCloseLogicLight', 'atsAutoHandleManualFrontTurnBack'], + booleanList: ['upRight', 'lockFirst', 'switchSingleHandle', 'switchNRTurnChain', 'switchSingleLockChain', 'switchLossChain', 'signalForceCancelRoute', 'initSingleLockSwitch', 'ctcOverlapOnlyTurnBackStationLock', 'guideNeedRouteSettingFirst', 'signalOpenAfterParking', 'standHoldCloseLogicLight', 'atsAutoHandleManualFrontTurnBack', 'doNotSetRouteWhenSectionOccupied'], selectList: ['runMode'], - generalConfig: ['lockFirst', 'switchSingleHandle', 'upRight', 'switchNRTurnChain', 'switchSingleLockChain', 'switchLossChain', 'signalForceCancelRoute', 'runMode', 'initSingleLockSwitch', 'ctcOverlapOnlyTurnBackStationLock', 'noParkingSM', 'parkingSM', 'rmAtpSpeed', 'urmAtpSpeed', 'guideNeedRouteSettingFirst', 'signalOpenAfterParking', 'standHoldCloseLogicLight', 'atsAutoHandleManualFrontTurnBack'], + generalConfig: ['lockFirst', 'switchSingleHandle', 'upRight', 'switchNRTurnChain', 'switchSingleLockChain', 'switchLossChain', 'signalForceCancelRoute', 'runMode', 'initSingleLockSwitch', 'ctcOverlapOnlyTurnBackStationLock', 'noParkingSM', 'parkingSM', 'rmAtpSpeed', 'urmAtpSpeed', 'guideNeedRouteSettingFirst', 'signalOpenAfterParking', 'standHoldCloseLogicLight', 'atsAutoHandleManualFrontTurnBack', 'doNotSetRouteWhenSectionOccupied'], rangeList: ['noParkingSM', 'parkingSM'], speedList: ['rmAtpSpeed', 'urmAtpSpeed'], numberList: [], @@ -104,7 +104,8 @@ export default { guideNeedRouteSettingFirst: '引导办理是否需要先排列进路', signalOpenAfterParking: '是否列车停站开门后,才办理出站进路开放出站信号机', standHoldCloseLogicLight: '站台扣车是否关闭逻辑点灯的信号机', - atsAutoHandleManualFrontTurnBack:'ATS是否自动处理人工设置的站前折返自动更新车次' + atsAutoHandleManualFrontTurnBack:'ATS是否自动处理人工设置的站前折返自动更新车次', + doNotSetRouteWhenSectionOccupied: '当进路的区段占用时不排列进路' } }; }, From f8876c452ebcb843b6332791f4a0a0e30acfffae Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 11 Dec 2020 16:33:51 +0800 Subject: [PATCH 14/15] =?UTF-8?q?Text=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Text/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/jmapNew/shape/Text/index.js b/src/jmapNew/shape/Text/index.js index a77b17302..4379fd822 100644 --- a/src/jmapNew/shape/Text/index.js +++ b/src/jmapNew/shape/Text/index.js @@ -1,6 +1,7 @@ import Text from 'zrender/src/graphic/Text'; import Group from 'zrender/src/container/Group'; import {isShowThePrdType} from '../../utils/handlePath'; +import BoundingRect from 'zrender/src/core/BoundingRect'; import Vue from 'vue'; export default class Text2 extends Group { @@ -14,10 +15,10 @@ export default class Text2 extends Group { this.style = style; this.z = 6; this.isShowShape = true; - // if (isShowThePrdType(model.prdType, model.showConditions) || model.previewOrMapDraw) { - this.create(); - this.setState(model); - // } + if (isShowThePrdType(model.prdType, model.showConditions) || model.previewOrMapDraw) { + this.create(); + this.setState(model); + } if (model.previewOrMapDraw) { this.setShowMode(); } @@ -54,6 +55,8 @@ export default class Text2 extends Group { getBoundingRect() { if (this.text) { return this.text.getBoundingRect().clone(); + } else { + return new BoundingRect(this.model.position.x, this.model.position.y, 0, 0); } } // 设置显示模式 From 97241040f677ec43e7010e24002318b000f1b060 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 11 Dec 2020 16:38:13 +0800 Subject: [PATCH 15/15] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=81=E6=B3=A2?= =?UTF-8?q?=E4=B8=89=E5=8F=B7=E7=BA=BF=E7=AB=99=E5=8F=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/StationStand/safeStand/ESolidStand.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js b/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js index 60b2fc005..a01e571cd 100644 --- a/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js +++ b/src/jmapNew/shape/StationStand/safeStand/ESolidStand.js @@ -69,6 +69,7 @@ class ESolidStand extends Group { recover() { const style = this.model.style; this.setColor(style.StationStand.solidStand.spareColor); + this.setStroke(style.StationStand.solidStand.spareStrokeColor); } setState(model) {