调整宁波道岔状态

This commit is contained in:
zyy 2020-08-03 15:56:56 +08:00
parent 057071769f
commit 0f03eee53f

View File

@ -387,8 +387,7 @@ export default class Switch extends Group {
}
if (this.style.Switch.arcBlcok.show) { // 圆形单锁是否显示
this.lockArc.show();
this.model.normalPosition && this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.locationColor });
!this.model.normalPosition && this.lockArc.setStyle({ stroke: this.style.Switch.aBrclcok.inversionColor });
this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.locationColor });
}
this.model.normalPosition && this.setTextColor(this.style.Switch.text.monolockLocationColor); // 定位 设置道岔名称颜色
this.model.reversePosition && this.setTextColor(this.style.Switch.text.monolockInversionColor); // 反位 设置道岔名称颜色
@ -495,14 +494,14 @@ export default class Switch extends Group {
} else {
this.setLossAction(); // 失去
}
// this.setForkAction(); // 道岔挤岔
model.isCiConfirm && this.setCiConfirm(); // 道岔使能显示
this.setSwitchFault(model.split);
model.singleLock && this.setMonolock(); // 道岔单锁
model.blockade && this.block(); // 道岔封锁
model.singleLock && model.blockade && this.blockMonolock(); // 单锁&锁闭状态
// this.setForkAction(); // 道岔挤岔
model.isCiConfirm && this.setCiConfirm(); // 道岔使能显示
this.setSwitchFault(model.split);
if (this.style.Switch.sectionAction.flag) { // 哈尔滨线路处理道岔相关区段颜色
const switchModel = Vue.prototype.$jlmap.mapDevice[model.code];
if (switchModel.normalPosition != 0) { // 定位情况