From 0cc556fa8df5b0643bea8258935018bbefea20c1 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 12 Mar 2020 10:32:30 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=88=90=E9=83=BD?= =?UTF-8?q?=E4=B8=80=E5=8F=B7=E7=BA=BF=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=8E=92?= =?UTF-8?q?=E5=88=97=E8=BF=9B=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/constant/deviceState.js | 42 +++++++-------- .../theme/chengdu_01/menus/menuRequest.vue | 3 +- .../theme/chengdu_01/menus/menuSignal.vue | 54 +++++++++++++------ .../theme/ningbo_01/menus/menuSignal.vue | 2 +- 4 files changed, 62 insertions(+), 39 deletions(-) diff --git a/src/jmapNew/constant/deviceState.js b/src/jmapNew/constant/deviceState.js index fd5406736..93875ee7a 100644 --- a/src/jmapNew/constant/deviceState.js +++ b/src/jmapNew/constant/deviceState.js @@ -4,16 +4,16 @@ const deviceState = {}; deviceState[deviceType.Section] = { /** 区段状态*/ - blockade: false, // 是否封锁 - routeLock: false, // 是否进路锁闭 - overlapLock: false, // 进路延续保护锁闭 - ctOccupied: false, // 通信车占用 - nctOccupied: false, // 非通信车占用 - cutOff: false, // 是否切除 - invalid: false, // 是否失效 + blockade: 0, // 是否封锁 + routeLock: 0, // 是否进路锁闭 + overlapLock: 0, // 进路延续保护锁闭 + ctOccupied: 0, // 通信车占用 + nctOccupied: 0, // 非通信车占用 + cutOff: 0, // 是否切除 + invalid: 0, // 是否失效 speedUpLimit: 0, // 最高限速 /** 是否故障*/ - fault: false /** 非故障*/ + fault: 0 /** 非故障*/ }; deviceState[deviceType.Switch] = { @@ -50,7 +50,7 @@ deviceState[deviceType.Switch] = { // State14: '14' /** 道岔状态类型 - 封锁*/ // }, /** 是否故障*/ - fault: false /** 非故障*/ + fault: 0 /** 非故障*/ // /** 是否切除*/ // cutOff: { // Default: false /** 是否切除*/ @@ -58,19 +58,19 @@ deviceState[deviceType.Switch] = { }; deviceState[deviceType.Signal] = { - blockade: false, // 是否锁闭 - logicLight: false, // 逻辑点灯 - greenOpen: false, // 绿灯开放 - yellowOpen: false, // 黄灯开放 - redOpen: true, // 红灯开放(默认状态) + blockade: 0, // 是否锁闭 + logicLight: 0, // 逻辑点灯 + greenOpen: 0, // 绿灯开放 + yellowOpen: 0, // 黄灯开放 + redOpen: 1, // 红灯开放(默认状态) delayTime: 0, // 信号机延迟解锁倒计时 atsControl: 1, // 0是人工,1是自动 - fault: false // 是否故障 + fault: 0 // 是否故障 }; deviceState[deviceType.Station] = { /** 是否故障*/ - fault: false, /** 非故障*/ + fault: 0, /** 非故障*/ controlMode: 'Center' // controlMode: 'Local' // Center 中控 Local 站控 Emergency 紧急站控 Interlock 联锁控 }; @@ -87,7 +87,7 @@ deviceState[deviceType.Psd] = { // State03: '03' /** 切除 */ // }, /** 是否故障*/ - fault: false /** 非故障*/ + fault: 0 /** 非故障*/ }; deviceState[deviceType.StationDelayUnlock] = { @@ -99,7 +99,7 @@ deviceState[deviceType.StationDelayUnlock] = { // }, /** 是否故障*/ - fault: false /** 非故障*/ + fault: 0 /** 非故障*/ }; deviceState[deviceType.StationStand] = { @@ -123,7 +123,7 @@ deviceState[deviceType.StationStand] = { // State04: '04' /** 默认 */ // }, /** 是否故障*/ - fault: false /** 非故障*/ + fault: 0 /** 非故障*/ }; deviceState[deviceType.Train] = { @@ -207,7 +207,7 @@ deviceState[deviceType.Train] = { // State02: '02' /** 有报警 */ // }, /** 车门是否关闭且锁闭 */ - doorCloseLock: true, + doorCloseLock: 1, /** 列车运行级别 */ runLevel: 'CBTC', /** 驾驶模式 */ @@ -219,7 +219,7 @@ deviceState[deviceType.Train] = { /** 列车是否向右形式 */ right: 1, /** 是否故障*/ - fault: false /** 非故障*/ + fault: 0 /** 非故障*/ }; export default deviceState; diff --git a/src/jmapNew/theme/chengdu_01/menus/menuRequest.vue b/src/jmapNew/theme/chengdu_01/menus/menuRequest.vue index 3243e7651..8f7adc1fd 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuRequest.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuRequest.vue @@ -105,7 +105,8 @@ export default { const operate = { over: true, operation: eachCmd.operation.code, - cmdType: eachCmd.operation.cmdType + cmdType: eachCmd.operation.cmdType, + param: eachCmd.operation.param // 请求栈中参数配置 }; this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.loading = false; diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue index d59afe815..ee87cb316 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue @@ -49,13 +49,13 @@ export default { }, { label: '开放自动进路', - handler: this.atsAutoControl, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING + handler: this.singalPassModel, + cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO }, { label: '关闭自动进路', - handler: this.humanControl, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING + handler: this.singalCancelPassModel, + cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO }, { label: '终端信号封锁', @@ -225,6 +225,7 @@ export default { } }, doShow(point) { + console.log(this.selected); this.clickEvent(); this.initMenu(); if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) { @@ -307,24 +308,45 @@ export default { arrangementRoute() { const step = { start: true, - // over:true, code: `${this.selected.code}`, operation: OperationEvent.Signal.arrangementRoute.menu.operation, param: { signalCode: `${this.selected.code}` - }, - // cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE + } }; this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true}); - this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.arrangementRoute.menu.operation, name: '始端/终端选择', cmdType:CMD.Signal.CMD_SIGNAL_SET_ROUTE}}); + const routes = []; + this.routeList.forEach(elem => { + if (elem.startSignalCode === this.selected.code) { + routes.push(elem); + } + }); + const routeCode = this.checkRoutes(routes); + this.$store.dispatch('menuOperation/pushRequestList', { + device: this.selected, + operation: { + code: OperationEvent.Signal.arrangementRoute.menu.operation, + name: '始端/终端选择', + cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, + param: { + routeCode: routeCode + } + } + }); } }).catch(() => { this.$refs.noticeInfo.doShow(step); }); }, + checkRoutes(routes) { + const route = routes.filter(route => { + return route.greenOpen; + }); + return route[0].code; + }, // 进路引导 guide() { const step = { @@ -334,13 +356,13 @@ export default { operation: OperationEvent.Signal.guide.menu.operation, param: { signalCode: `${this.selected.code}` - }, + } // cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE }; this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: { code: OperationEvent.Signal.guide.menu.operation, name: '引导信号',cmdType:CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE}}); + this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: { code: OperationEvent.Signal.guide.menu.operation, name: '引导信号', cmdType:CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE}}); } }); }, @@ -353,14 +375,14 @@ export default { operation: OperationEvent.Signal.cancelTrainRoute.menu.operation, param: { signalCode: `${this.selected.code}` - }, + } // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE }; this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: { code: OperationEvent.Signal.cancelTrainRoute.menu.operation, name: '取消进路',cmdType:CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE}}); + this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: { code: OperationEvent.Signal.cancelTrainRoute.menu.operation, name: '取消进路', cmdType:CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE}}); } }); }, @@ -373,13 +395,13 @@ export default { operation: OperationEvent.Signal.lock.menu.operation, param: { signalCode: `${this.selected.code}` - }, + } // cmdType: CMD.Signal.CMD_SIGNAL_BLOCK }; this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.lock.menu.operation, name: '终端信号机封锁',cmdType:CMD.Signal.CMD_SIGNAL_BLOCK}}); + this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.lock.menu.operation, name: '终端信号机封锁', cmdType:CMD.Signal.CMD_SIGNAL_BLOCK}}); } }).catch(() => { this.$refs.noticeInfo.doShow(step); @@ -394,13 +416,13 @@ export default { operation: OperationEvent.Signal.unlock.menu.operation, param: { signalCode: `${this.selected.code}` - }, + } // cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK }; this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.unlock.menu.operation, name: '终端信号机解封',cmdType:CMD.Signal.CMD_SIGNAL_UNBLOCK}}); + this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.unlock.menu.operation, name: '终端信号机解封', cmdType:CMD.Signal.CMD_SIGNAL_UNBLOCK}}); } }); }, diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue index fd994a67e..9f646ef57 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue @@ -525,7 +525,7 @@ export default { this.$refs.routerCommand.doShow(step, this.selected, '是否执行引导命令'); } }); - }, + } } }; From 6045f6dba681fe29e340350a8b245e293f169a44 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 12 Mar 2020 10:33:10 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/chengdu_01/menus/menuSignal.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue index ee87cb316..6c70337c7 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSignal.vue @@ -225,7 +225,6 @@ export default { } }, doShow(point) { - console.log(this.selected); this.clickEvent(); this.initMenu(); if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) { From b7ee3e5f6ea23eeb1ab121dfa64250aacb7607c2 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 12 Mar 2020 13:13:00 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8C=BA=E6=AE=B5=E5=90=8D=E7=A7=B0=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Section/index.js | 8 +- src/jmapNew/shape/TrainWindow/index.js | 2 +- .../mapoperate/section/batchSettings.vue | 84 ++++++++++++++++++- .../newMapdraft/mapoperate/section/index.vue | 7 +- 4 files changed, 94 insertions(+), 7 deletions(-) diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 8ffa8cbcb..a4c277b4b 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -251,7 +251,7 @@ export default class Section extends Group { /** 区段名称 (逻辑区段名称 或 物理区段名称 是否显示)*/ let tempx = x; let tempy = y; - if (model.type == '01') { + if (model.type == '01') { // 物理区段名称 if (style.Section.text.show) { const opposite = style.Section.text.opposite ? -1 : 1; tempx += traingle.getSin(style.Section.text.distance); @@ -274,7 +274,7 @@ export default class Section extends Group { }); this.add(this.name); } - } else if (model.type == '02') { + } else if (model.type == '02') { // 逻辑区段 if (style.Section.logicText.show) { const opposite = style.Section.logicText.opposite ? -1 : 1; tempx += traingle.getSin(style.Section.logicText.distance); @@ -297,7 +297,7 @@ export default class Section extends Group { }); this.add(this.name); } - } else if (model.type == '03') { + } else if (model.type == '03') { // 道岔区段 if (style.Section.switchText.show) { this.name = new ETextName({ zlevel: this.zlevel, @@ -317,7 +317,7 @@ export default class Section extends Group { }); this.add(this.name); } - } else if (model.type == '04') { + } else if (model.type == '04') { // 道岔计轴区段名称 if (router.currentRoute.path.startsWith('/design/usermap/map/draw') && router.currentRoute.path.endsWith('/draft')) { this.name = new ETextName({ zlevel: this.zlevel, diff --git a/src/jmapNew/shape/TrainWindow/index.js b/src/jmapNew/shape/TrainWindow/index.js index e270244eb..5f35f4cff 100644 --- a/src/jmapNew/shape/TrainWindow/index.js +++ b/src/jmapNew/shape/TrainWindow/index.js @@ -39,7 +39,7 @@ class TrainWindow extends Group { zlevel: this.zlevel, z: this.z - 1, shape: { - smooth: this.style.TrainWindow.trainWindowSmooth, + smooth: this.style.TrainWindow.trainWindowSmooth, // 圆滑程度 points: [ [point.x - model.width / 2, point.y], [point.x + model.width / 2, point.y], diff --git a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue index 0b87d8dcd..b58990028 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue @@ -14,12 +14,50 @@ + + + + + + {{ $t('map.activate') }} + + + + + + + + + {{ $t('global.set') }} + + + diff --git a/src/views/iscs/iscsSystem/config/fire-alarm/stationHall.vue b/src/views/iscs/iscsSystem/config/fire-alarm/stationHall.vue index c59b94188..edb72ab55 100644 --- a/src/views/iscs/iscsSystem/config/fire-alarm/stationHall.vue +++ b/src/views/iscs/iscsSystem/config/fire-alarm/stationHall.vue @@ -1,10 +1,10 @@ diff --git a/src/views/iscs/iscsSystem/config/fire-alarm/system.vue b/src/views/iscs/iscsSystem/config/fire-alarm/system.vue index 517ce8347..20522ca1e 100644 --- a/src/views/iscs/iscsSystem/config/fire-alarm/system.vue +++ b/src/views/iscs/iscsSystem/config/fire-alarm/system.vue @@ -1,6 +1,6 @@ diff --git a/src/views/iscs/iscsSystem/config/pis/infoBroadcast.vue b/src/views/iscs/iscsSystem/config/pis/infoBroadcast.vue index 31907edc9..d1e7eb1c0 100644 --- a/src/views/iscs/iscsSystem/config/pis/infoBroadcast.vue +++ b/src/views/iscs/iscsSystem/config/pis/infoBroadcast.vue @@ -1,170 +1,173 @@