From ad40b827c9cddb9eb173dbab58e60dfd225db8ae Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 9 Sep 2021 14:15:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=81=93=E5=B2=94?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE=E5=AE=9A=E4=BD=8D=E3=80=81=E5=8F=8D=E4=BD=8D?=
=?UTF-8?q?=20=E4=B8=BApos=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/constant/deviceState.js | 1 -
src/jmapNew/constant/stateTransition.js | 1 -
src/jmapNew/shape/graph/Section/EBadShunt.js | 4 +-
.../shape/graph/Section/ELimitLines.js | 4 +-
src/jmapNew/shape/graph/Section/index.js | 13 +--
src/jmapNew/shape/graph/Switch/EMouse.js | 81 ++++++++++---------
src/jmapNew/shape/graph/Switch/index.js | 61 +++++++-------
.../theme/beijing_01/menus/menuSwitch.vue | 4 +-
.../theme/foshan_01/menus/menuSection.vue | 27 +++++--
.../theme/foshan_01/menus/menuSwitch.vue | 4 +-
.../ningbo_01/menus/dialog/routeSelection.vue | 21 ++---
.../menus/menuDialog/switchCommand.vue | 9 ++-
.../menus/menuDialog/switchDetail.vue | 5 +-
src/utils/parseStatus.js | 16 +---
.../newMapdraft/mapoperate/switch/create.vue | 6 +-
15 files changed, 136 insertions(+), 121 deletions(-)
diff --git a/src/jmapNew/constant/deviceState.js b/src/jmapNew/constant/deviceState.js
index 7115c5f6d..b1577a5c1 100644
--- a/src/jmapNew/constant/deviceState.js
+++ b/src/jmapNew/constant/deviceState.js
@@ -33,7 +33,6 @@ deviceState[deviceType.Switch] = {
routeLock: 0, // 是否进路锁闭
overlapLock: 0, // 是否进路延续保护锁闭
pos:'N', // // 道岔位置定位、反位 N-定位 R-反位 NO-无(失表) EX-挤叉
- // reversePosition: 0, // 是否反位
isCiConfirm: 0, // 是否进行联锁确认
/** 定位状态*/
// locateType: {
diff --git a/src/jmapNew/constant/stateTransition.js b/src/jmapNew/constant/stateTransition.js
index 471d775ce..4df564a51 100644
--- a/src/jmapNew/constant/stateTransition.js
+++ b/src/jmapNew/constant/stateTransition.js
@@ -46,7 +46,6 @@ class Status {
routeLock: device.routeLock, // 是否进路锁闭
overlapLock: device.overlapLock, // 是否进路延续保护锁闭
pos:device.pos, // 道岔位置定位、反位 N-定位 R-反位 NO-无(失表) EX-挤叉
- // reversePosition: device.pos == 'R', // 是否反位
fault: device.fault /** 非故障*/
};
}
diff --git a/src/jmapNew/shape/graph/Section/EBadShunt.js b/src/jmapNew/shape/graph/Section/EBadShunt.js
index 41e808255..1b0d912b4 100644
--- a/src/jmapNew/shape/graph/Section/EBadShunt.js
+++ b/src/jmapNew/shape/graph/Section/EBadShunt.js
@@ -93,12 +93,12 @@ export default class EBadShunt extends Group {
if (swch && swch.instance) {
const traingle = new JTriangle(swch.intersection, swch.skew);
- if ((swch.intersection.x === beg.x) && (swch.intersection.y === beg.y) && !swch.normalPosition && swch.sectionCCode == model.code) {
+ if ((swch.intersection.x === beg.x) && (swch.intersection.y === beg.y) && swch.pos != 'N' && swch.sectionCCode == model.code) {
beg.x = beg.x + traingle.drictx * (swPadding + switchWidth) * traingle.getCotRate();
beg.y = beg.y + traingle.dricty * (swPadding + switchWidth);
}
- if ((swch.intersection.x === end.x) && (swch.intersection.y === end.y) && swch.normalPosition && swch.sectionCCode == model.code) {
+ if ((swch.intersection.x === end.x) && (swch.intersection.y === end.y) && swch.pos == 'N' && swch.sectionCCode == model.code) {
end.x = end.x + traingle.drictx * (swPadding + switchWidth) * traingle.getCotRate();
end.y = end.y + traingle.dricty * (swPadding + switchWidth);
}
diff --git a/src/jmapNew/shape/graph/Section/ELimitLines.js b/src/jmapNew/shape/graph/Section/ELimitLines.js
index 998caf6b5..80004c2df 100644
--- a/src/jmapNew/shape/graph/Section/ELimitLines.js
+++ b/src/jmapNew/shape/graph/Section/ELimitLines.js
@@ -93,12 +93,12 @@ export default class ELimitLines extends Group {
if (swch && swch.instance) {
const traingle = new JTriangle(swch.intersection, swch.skew);
- if ((swch.intersection.x === beg.x) && (swch.intersection.y === beg.y) && !swch.normalPosition && swch.sectionCCode == model.code) {
+ if ((swch.intersection.x === beg.x) && (swch.intersection.y === beg.y) && swch.pos != 'N' && swch.sectionCCode == model.code) {
beg.x = beg.x + traingle.drictx * (swPadding + switchWidth) * traingle.getCotRate();
beg.y = beg.y + traingle.dricty * (swPadding + switchWidth);
}
- if ((swch.intersection.x === end.x) && (swch.intersection.y === end.y) && swch.normalPosition && swch.sectionCCode == model.code) {
+ if ((swch.intersection.x === end.x) && (swch.intersection.y === end.y) && swch.pos == 'N' && swch.sectionCCode == model.code) {
end.x = end.x + traingle.drictx * (swPadding + switchWidth) * traingle.getCotRate();
end.y = end.y + traingle.dricty * (swPadding + switchWidth);
}
diff --git a/src/jmapNew/shape/graph/Section/index.js b/src/jmapNew/shape/graph/Section/index.js
index 33ace11cb..a4625d898 100644
--- a/src/jmapNew/shape/graph/Section/index.js
+++ b/src/jmapNew/shape/graph/Section/index.js
@@ -388,17 +388,18 @@ export default class Section extends Group {
const sectionB = this.mapDevice[switchModel.sectionBCode];
const sectionC = this.mapDevice[switchModel.sectionCCode];
const sectionA = this.mapDevice[switchModel.sectionACode];
- if (switchModel && switchModel.normalPosition === 1) {
+ // N-定位 R-反位 NO-无(失表) EX-挤叉
+ if (switchModel && switchModel.pos === 'N') {
this.setSwitchSectionColor(sectionC, sectionB);// 定位
- } else if (switchModel && switchModel.normalPosition === 0 && switchModel.reversePosition === 0 && switchModel.instance && switchModel.instance.switchPosition === 'reverse' && switchModel.fault !== 'SPLIT') {
+ } else if (switchModel && switchModel.pos == 'NO' && switchModel.instance && switchModel.instance.switchPosition === 'reverse' && switchModel.fault !== 'SPLIT') {
this.setSwitchSectionColor(sectionC, sectionB);// 反位转定位前
- } else if (switchModel && switchModel.normalPosition === 0 && switchModel.reversePosition === 0 && switchModel.instance && switchModel.instance.switchPosition === 'normal' && (switchModel.fault === 'SPLIT' || switchModel.fault === 'NORMAL_SPLIT')) {
+ } else if (switchModel && switchModel.pos == 'NO' && switchModel.instance && switchModel.instance.switchPosition === 'normal' && (switchModel.fault === 'SPLIT' || switchModel.fault === 'NORMAL_SPLIT')) {
this.setSwitchSectionColor(sectionC, sectionB);// 定位变失表或定位失表
- } else if (switchModel && switchModel.reversePosition === 1) {
+ } else if (switchModel && switchModel.pos === 'R') {
this.setSwitchSectionColor(sectionB, sectionC); // 反位
- } else if (switchModel && switchModel.normalPosition === 0 && switchModel.reversePosition === 0 && switchModel.instance && switchModel.instance.switchPosition === 'normal' && switchModel.fault !== 'SPLIT') {
+ } else if (switchModel && switchModel.pos == 'NO' && switchModel.instance && switchModel.instance.switchPosition === 'normal' && switchModel.fault !== 'SPLIT') {
this.setSwitchSectionColor(sectionB, sectionC); // 定位转反位前
- } else if (switchModel && switchModel.normalPosition === 0 && switchModel.reversePosition === 0 && switchModel.instance && switchModel.instance.switchPosition === 'reverse' && (switchModel.fault === 'SPLIT' || switchModel.fault === 'REVERSE_SPLIT')) {
+ } else if (switchModel && switchModel.pos == 'NO' && switchModel.instance && switchModel.instance.switchPosition === 'reverse' && (switchModel.fault === 'SPLIT' || switchModel.fault === 'REVERSE_SPLIT')) {
this.setSwitchSectionColor(sectionB, sectionC);// 反位变失表后反位失表
}
if (this.style.Section.switchFault && switchModel.fault === 'SQUEEZE') {
diff --git a/src/jmapNew/shape/graph/Switch/EMouse.js b/src/jmapNew/shape/graph/Switch/EMouse.js
index a63394f05..e8be29257 100644
--- a/src/jmapNew/shape/graph/Switch/EMouse.js
+++ b/src/jmapNew/shape/graph/Switch/EMouse.js
@@ -77,22 +77,22 @@ class EMouse extends Group {
});
this.textRect && this.textRect.show();
- if (this.device.style.Switch.mouseOverStyle.coreBackgroundColor) {
- this.device.shapeModelA.show();
- this.device.shapeModelB.show();
- this.device.shapeModelA.removeHover();
- this.device.shapeModelB.removeHover();
- this.device.shapeModelA.addHover({
- stroke: this.device.__over
- ? this.device.style.Switch.mouseOverStyle.coreBackgroundColorOver
- : this.device.style.Switch.mouseOverStyle.coreBackgroundColor
- })
- this.device.shapeModelB.addHover({
- stroke: this.device.__over
- ? this.device.style.Switch.mouseOverStyle.coreBackgroundColorOver
- : this.device.style.Switch.mouseOverStyle.coreBackgroundColor
- })
- }
+ if (this.device.style.Switch.mouseOverStyle.coreBackgroundColor) {
+ this.device.shapeModelA.show();
+ this.device.shapeModelB.show();
+ this.device.shapeModelA.removeHover();
+ this.device.shapeModelB.removeHover();
+ this.device.shapeModelA.addHover({
+ stroke: this.device.__over
+ ? this.device.style.Switch.mouseOverStyle.coreBackgroundColorOver
+ : this.device.style.Switch.mouseOverStyle.coreBackgroundColor
+ });
+ this.device.shapeModelB.addHover({
+ stroke: this.device.__over
+ ? this.device.style.Switch.mouseOverStyle.coreBackgroundColorOver
+ : this.device.style.Switch.mouseOverStyle.coreBackgroundColor
+ });
+ }
const section = store.getters['map/getDeviceByCode'](this.device.model.sectionACode) || {};
const parentSection = store.getters['map/getDeviceByCode'](section.parentCode) || {};
@@ -102,33 +102,34 @@ class EMouse extends Group {
}
}
- mouseout(e) {
+ mouseout(e) {
if (!this.device.__down) {
- this.switchBorder && this.switchBorder.hide();
- this.device.setTextStyle({
- textFill: this.device.style.backgroundColor
- });
- this.textRect && this.textRect.hide();
- this.device.setState(this.device.model);
+ this.switchBorder && this.switchBorder.hide();
+ this.device.setTextStyle({
+ textFill: this.device.style.backgroundColor
+ });
+ this.textRect && this.textRect.hide();
+ this.device.setState(this.device.model);
- if (this.device.style.Switch.mouseOverStyle.coreBackgroundColor) {
- this.device.shapeModelA.removeHover();
- this.device.shapeModelB.removeHover();
- if (this.device.model.normalPosition) {
- this.device.shapeModelA.hide();
- this.device.shapeModelB.show();
- } else {
- this.device.shapeModelA.show();
- this.device.shapeModelB.show();
- }
- }
+ if (this.device.style.Switch.mouseOverStyle.coreBackgroundColor) {
+ this.device.shapeModelA.removeHover();
+ this.device.shapeModelB.removeHover();
+ // if (this.device.model.normalPosition) {
+ if (this.device.model.pos == 'N') {
+ this.device.shapeModelA.hide();
+ this.device.shapeModelB.show();
+ } else {
+ this.device.shapeModelA.show();
+ this.device.shapeModelB.show();
+ }
+ }
- const section = store.getters['map/getDeviceByCode'](this.device.model.sectionACode) || {};
- const parentSection = store.getters['map/getDeviceByCode'](section.parentCode) || {};
- const instance = this.getInstanceByCode(parentSection.trainWindowCode);
- if (instance && instance.mouseEvent && instance.mouseEvent.mouseLeave) {
- instance.mouseEvent.mouseLeave(e);
- }
+ const section = store.getters['map/getDeviceByCode'](this.device.model.sectionACode) || {};
+ const parentSection = store.getters['map/getDeviceByCode'](section.parentCode) || {};
+ const instance = this.getInstanceByCode(parentSection.trainWindowCode);
+ if (instance && instance.mouseEvent && instance.mouseEvent.mouseLeave) {
+ instance.mouseEvent.mouseLeave(e);
+ }
}
}
diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js
index 565aedd83..7cd1261b1 100644
--- a/src/jmapNew/shape/graph/Switch/index.js
+++ b/src/jmapNew/shape/graph/Switch/index.js
@@ -433,15 +433,17 @@ export default class Switch extends Group {
.when(1000, { stroke: this.style.backgroundColor })
.start();
}
- setSwitchFault(fault, normalPosition, reversePosition) {
- if (this.style.Switch.jointImg.faultStatus && fault && !reversePosition && !normalPosition ) { // 宁波线失表状态
+ // N-定位 R-反位 NO-无(失表) EX-挤叉
+ setSwitchFault(fault, pos) {
+ if (this.style.Switch.jointImg.faultStatus && fault && (pos == 'NO' || pos == 'EX') ) { // 宁波线失表状态
this.setForkAction(); // 道岔挤岔
} else if (this.style.Switch.faultNoHandle ) {
this.shapeModelA.hide();
this.shapeModelB.hide();
this.shapeModelC.hide();
} else {
- if (this.model.switchFaultCode && (fault === 'SPLIT' || fault === 'SQUEEZE' || (fault === 'NORMAL_SPLIT' && !reversePosition) || (fault === 'REVERSE_SPLIT' && !normalPosition))) {
+ // (fault === 'SPLIT' || fault === 'SQUEEZE' || (fault === 'NORMAL_SPLIT' && !reversePosition) || (fault === 'REVERSE_SPLIT' && !normalPosition))
+ if (this.model.switchFaultCode && (pos == 'NO' || pos == 'EX') ) {
const switchFault = this.mapDevice[this.model.switchFaultCode];
switchFault.instance.setControlColor('#F00', true);
} else if (this.model.switchFaultCode) {
@@ -487,7 +489,7 @@ export default class Switch extends Group {
}
/** 单锁*/
- setMonolock(normalPosition, reversePosition) {
+ setMonolock(pos) {
if (this.style.Switch.rectLock &&
this.style.Switch.rectLock.monolock) { // 判断单锁矩形是否显示
this.lockRect.show();
@@ -503,9 +505,9 @@ export default class Switch extends Group {
if (this.style.Switch.arcBlcok &&
this.style.Switch.arcBlcok.show) { // 圆形单锁是否显示
this.lockArc.show();
- if (normalPosition) {
+ if (pos == 'N') {
this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.locationColor });
- } else if (reversePosition) {
+ } else if (pos == 'R') {
this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.inversionColor });
}
}
@@ -513,7 +515,7 @@ export default class Switch extends Group {
}
/** 封锁 */
- block(normalPosition, reversePosition) {
+ block(pos) {
if (this.style.Switch.jointImg.block) { // 宁波专用封锁显示
this.shapeModelB.show();
this.shapeModelB.animateStyle(item => {
@@ -547,10 +549,10 @@ export default class Switch extends Group {
this.setTextColor(this.style.Switch.text.blockText);
}
if (this.style.Switch.jointImg.trapezoidBlock) { // 范围且封锁时显示
- if (normalPosition) {
+ if ( pos == 'N') {
this.shapeModelB.show();
this.shapeModelB.setColor('#000080');
- } else if (reversePosition) {
+ } else if ( pos == 'R') {
this.shapeModelA.show();
this.shapeModelA.setColor('#000080');
}
@@ -600,11 +602,11 @@ export default class Switch extends Group {
// 处理岔芯颜色
setSectionState(state) {
const sectionC = this.mapDevice[state.sectionCCode];
- if (sectionC && state.reversePosition && !state.blockade) {
+ if (sectionC && state.pos == 'R' & !state.blockade) {
this.setSwitchModelStatus(this.shapeModelA, sectionC);
}
const sectionA = this.mapDevice[state.sectionACode];
- if (sectionA && state.normalPosition && !this.style.Switch.core.graphShow && !state.blockade) {
+ if (sectionA && state.pos == 'N' && !this.style.Switch.core.graphShow && !state.blockade) {
this.setSwitchModelStatus(this.shapeModelB, sectionA);
}
}
@@ -650,23 +652,23 @@ export default class Switch extends Group {
this.shapeModelC.setColor('#7F7F7F');
this.name.getNameText().setStyle({textFill: '#7F7F7F'});
}
- preReset(normalPosition, reversePosition ) {
+ preReset(pos) {
const coverBlock = this.style.Switch.coverBlock;
if (coverBlock && coverBlock.preResetColor) { // 范围且封锁时显示
- if (normalPosition) {
+ if (pos == 'N') {
this.shapeModelB.show();
this.shapeModelB.setColor(coverBlock.preResetColor);
- } else if (reversePosition) {
+ } else if (pos == 'R') {
this.shapeModelA.show();
this.shapeModelA.setColor(coverBlock.preResetColor);
}
} else {
const sectionReset = this.style.Section.sectionMiddle;
if (sectionReset && sectionReset.preResetColor) {
- if (normalPosition) {
+ if (pos == 'N') {
this.shapeModelB.show();
this.shapeModelB.setColor(sectionReset.preResetColor);
- } else if (reversePosition) {
+ } else if (pos == 'R') {
this.shapeModelA.show();
this.shapeModelA.setColor(sectionReset.preResetColor);
}
@@ -678,13 +680,13 @@ export default class Switch extends Group {
this.recover();
// 只响应前端自定义类型的状态变化
if (model._free) {
- if (model.normalPosition) {
+ if (model.pos == 'N') {
this.switchPosition = 'normal';
this.setLocationAction(model); /** 定位*/
if (model.routeLock) {
this.setSectionState(model);
}
- } else if (model.reversePosition) {
+ } else if (model.pos == 'R') {
this.switchPosition = 'reverse';
this.setInversionAction(model); /** 反位*/
if (model.routeLock) {
@@ -694,23 +696,26 @@ export default class Switch extends Group {
this.setAshShow();
}
} else {
- this.setSwitchFault(model.fault, model.normalPosition, model.reversePosition);
- if (model.normalPosition) {
+ this.setSwitchFault(model.fault, model.pos);
+
+ // model.pos == 'NO' || model.pos == 'EX';
+ // N-定位 R-反位 NO-无(失表) EX-挤叉
+
+ if (model.pos == 'N') {
this.switchPosition = 'normal';
this.setLocationAction(model); /** 定位*/
- } else if (model.reversePosition) {
+ } else if (model.pos == 'R') {
this.switchPosition = 'reverse';
this.setInversionAction(model); /** 反位*/
- } else {
+ } else if (model.pos == 'NO') {
this.setLossAction(model.fault); // 失去
- if (model.switchSplit) {
- this.setForkAction();
- }
+ } else if (model.pos == 'EX') {
+ this.setForkAction(); // 挤岔
}
model.isCiConfirm && this.setCiConfirm(); // 道岔使能显示
- model.singleLock && this.setMonolock(model.normalPosition, model.reversePosition); // 道岔单锁
- model.blockade && this.block(model.normalPosition, model.reversePosition); // 道岔封锁
+ model.singleLock && this.setMonolock(model.pos); // 道岔单锁
+ model.blockade && this.block(model.pos); // 道岔封锁
model.singleLock && model.blockade && this.blockMonolock(); // 单锁&锁闭状态
const path = window.location.href;
if (!path.includes('/map/draw')) {
@@ -720,7 +725,7 @@ export default class Switch extends Group {
model.routeLock && this.handleRouteLock(); // 道岔进路锁闭
model.overlapLock && this.handleOverlapLock(); // 道岔进路延续保护
// this.interlockingReserved(); // 联锁预留道岔
- model.preReset && this.preReset(model.normalPosition, model.reversePosition); // 道岔预复位
+ model.preReset && this.preReset(model.pos); // 道岔预复位
if (this.style.Switch.sectionAction.flag && this.model.showMode !== '05') { // 哈尔滨线路处理道岔相关区段颜色
const switchModel = this.mapDevice[model.code];
diff --git a/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue b/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue
index d9f53a6aa..eaacf5113 100644
--- a/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue
+++ b/src/jmapNew/theme/beijing_01/menus/menuSwitch.vue
@@ -173,14 +173,14 @@ export default {
switch (buttonOperation) {
case OperationEvent.Switch.locate.button.operation: {
// 道岔总定
- if (!selectType.normalPosition && selectType.reversePosition) {
+ if (selectType.pos == 'R') {
this.locate(selectType);
}
break;
}
case OperationEvent.Switch.reverse.button.operation: {
// 道岔总反
- if (selectType.normalPosition && !selectType.reversePosition) {
+ if (selectType.pos == 'N') {
this.reverse(selectType);
}
break;
diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
index 4669473d5..f732adc88 100644
--- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
@@ -146,7 +146,7 @@ export default {
}
},
'$store.state.menuOperation.selectedCount': function(val) {
- if (this.buttonOperation && this.$store.state.menuOperation.selected._type == 'Switch') {
+ if (this.buttonOperation && this.$store.state.menuOperation.selected._type == 'Section') {
this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected);
}
}
@@ -193,19 +193,32 @@ export default {
}
},
operationHandler(buttonOperation, selectType) {
+ debugger;
switch (buttonOperation) {
case OperationEvent.Section.fault.button.operation: {
// 事故解锁
- if (!selectType.normalPosition && selectType.reversePosition) {
- this.locate(selectType);
- }
+ debugger;
+ commitOperate(menuOperate.Section.fault, {sectionCode:selectType.code}, 3).then(({valid, operate})=>{
+ if (valid) {
+ // this.$refs.sectionUnLock.doShow(operate, this.selected);
+ }
+ }).catch(error=>{
+ console.log(error);
+ this.$refs.noticeInfo.doShow();
+ });
break;
}
case OperationEvent.Section.axlePreReset.button.operation: {
// 计轴复零
- if (selectType.normalPosition && !selectType.reversePosition) {
- this.reverse(selectType);
- }
+ debugger;
+ commitOperate(menuOperate.Section.axlePreReset, {sectionCode:selectType.code}, 3).then(({valid, operate})=>{
+ if (valid) {
+ // this.$refs.sectionUnLock.doShow(operate, this.selected);
+ }
+ }).catch(error=>{
+ console.log(error);
+ this.$refs.noticeInfo.doShow();
+ });
break;
}
}
diff --git a/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue b/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue
index 42f6c6803..352342615 100644
--- a/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue
+++ b/src/jmapNew/theme/foshan_01/menus/menuSwitch.vue
@@ -213,14 +213,14 @@ export default {
switch (buttonOperation) {
case OperationEvent.Switch.locate.button.operation: {
// 道岔总定
- if (!selectType.normalPosition && selectType.reversePosition) {
+ if (selectType.pos == 'R') {
this.locate(selectType);
}
break;
}
case OperationEvent.Switch.reverse.button.operation: {
// 道岔总反
- if (selectType.normalPosition && !selectType.reversePosition) {
+ if (selectType.pos == 'N') {
this.reverse(selectType);
}
break;
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue
index 3dee05517..237cce621 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue
@@ -33,7 +33,7 @@