From e3ee44aae7c8630c8290326e5f02c4e6b8f67ac7 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Sun, 28 Jun 2020 13:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=81=93=E5=B2=94=E5=A4=B1?= =?UTF-8?q?=E8=A1=A8=E7=8A=B6=E6=80=81=EF=BC=8C=E6=88=90=E9=83=BD3?= =?UTF-8?q?=E5=8F=B7=E7=BA=BF=E5=AE=9E=E6=93=8D=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/ningbo_01.js | 1 + src/jmapNew/shape/Switch/index.js | 16 +- .../childDialog/confirmControlSpeed.vue | 50 ++--- .../menus/dialog/childDialog/confirmTip.vue | 6 +- .../dialog/childDialog/passwordInputBox.vue | 7 +- .../menus/dialog/routeSelection.vue | 10 +- .../theme/chengdu_03/operationConfig.js | 209 ++++++++---------- .../theme/foshan_01/operationConfig.js | 2 +- .../mapsystemNew/plugin/trainingtip.vue | 4 - src/views/system/configLine/config.vue | 7 +- 10 files changed, 147 insertions(+), 165 deletions(-) diff --git a/src/jmapNew/config/skinCode/ningbo_01.js b/src/jmapNew/config/skinCode/ningbo_01.js index ef1403e5e..3e2aeab49 100644 --- a/src/jmapNew/config/skinCode/ningbo_01.js +++ b/src/jmapNew/config/skinCode/ningbo_01.js @@ -301,6 +301,7 @@ class SkinCode extends defaultStyle { block: true, // 联合图形封锁状态 flashingColors: '#D600D5', // 联合图形封锁闪烁显示颜色 fork: true, // 挤岔专用(如有挤岔操作 变为true) + faultStatus: true, // 宁波失表状态用 挤岔表示 forKColor: 'red' // 挤岔颜色 配合挤岔专用 }, arcBlcok: { // 圆形封锁图形 diff --git a/src/jmapNew/shape/Switch/index.js b/src/jmapNew/shape/Switch/index.js index b2989f0fa..cfa2851ed 100644 --- a/src/jmapNew/shape/Switch/index.js +++ b/src/jmapNew/shape/Switch/index.js @@ -347,12 +347,16 @@ export default class Switch extends Group { } setSwitchFault(split) { - if (this.model.switchFaultCode && split) { - const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); - switchFault.instance.setControlColor('#F00', true); - } else if (this.model.switchFaultCode && !split) { - const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); - switchFault.instance.setControlColor(this.style.backgroundColor, false); + if (this.style.Switch.jointImg.faultStatus && split) { + this.setForkAction(); // 道岔挤岔 宁波线失表状态 + } else { + if (this.model.switchFaultCode && split) { + const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); + switchFault.instance.setControlColor('#F00', true); + } else if (this.model.switchFaultCode && !split) { + const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); + switchFault.instance.setControlColor(this.style.backgroundColor, false); + } } } /** 挤叉*/ diff --git a/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue index f7d3c615d..e8932dcc9 100644 --- a/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue +++ b/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue @@ -44,37 +44,35 @@ export default { return this.dialogShow && !this.$store.state.menuOperation.break; }, title() { - if (this.dialogShow) { - if (this.operation === OperationEvent.Section.setSpeed.order.operation) { - return '区段设置限速'; - } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { - return '区段取消限速'; - } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { - return '道岔设置限速'; - } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { - return '道岔取消限速'; - } + if (this.operation === OperationEvent.Section.setSpeed.order.operation) { + return '区段设置限速'; + } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { + return '区段取消限速'; + } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { + return '道岔设置限速'; + } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { + return '道岔取消限速'; } + return ''; }, domIdCancel() { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; }, domIdConfirm() { - if (this.dialogShow) { - if (this.operation === OperationEvent.Section.setSpeed.order.operation) { - /** 区段设置限速*/ - return OperationEvent.Section.setSpeed.confirm.domId; - } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { - /** 区段取消限速*/ - return OperationEvent.Section.cancelSpeed.confirm.domId; - } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { - /** 道岔设置限速*/ - return OperationEvent.Switch.setSpeed.confirm.domId; - } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { - /** 道岔取消限速*/ - return OperationEvent.Switch.cancelSpeed.confirm.domId; - } + if (this.operation === OperationEvent.Section.setSpeed.order.operation) { + /** 区段设置限速*/ + return OperationEvent.Section.setSpeed.confirm.domId; + } else if (this.operation === OperationEvent.Section.cancelSpeed.order.operation) { + /** 区段取消限速*/ + return OperationEvent.Section.cancelSpeed.confirm.domId; + } else if (this.operation === OperationEvent.Switch.setSpeed.order.operation) { + /** 道岔设置限速*/ + return OperationEvent.Switch.setSpeed.confirm.domId; + } else if (this.operation === OperationEvent.Switch.cancelSpeed.order.operation) { + /** 道岔取消限速*/ + return OperationEvent.Switch.cancelSpeed.confirm.domId; } + return ''; } }, mounted() { @@ -128,7 +126,7 @@ export default { this.$emit('setOperate', { step: 1, success: true }); this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.$emit('setOperate', { step: 0, success: false }); this.doClose(); @@ -147,7 +145,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.doClose(); } - }).catch(error => { + }).catch(() => { this.doClose(); }); } diff --git a/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue b/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue index 9ff15f636..6852074ca 100644 --- a/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue +++ b/src/jmapNew/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue @@ -26,8 +26,6 @@