区段和道岔故障锁闭显示白光带

This commit is contained in:
Yuan 2023-07-31 14:35:23 +08:00
parent 3447055aa5
commit 53f6d882ab
3 changed files with 9 additions and 5 deletions

View File

@ -98,7 +98,7 @@ export class LogicSection extends JlGraphic implements ILineGraphic {
lineColor = SectionConsts.cbtcOccupiedColor;
} else if (this.states.ciOccupied) {
lineColor = SectionConsts.ciOccupiedColor;
} else if (this.states.locked) {
} else if (this.states.locked || this.states.failLocked) {
lineColor = SectionConsts.lockedColor;
} else if (this.states.atcInvalid) {
lineColor = SectionConsts.atcInvalidColor;
@ -106,6 +106,7 @@ export class LogicSection extends JlGraphic implements ILineGraphic {
lineColor = SectionConsts.blockedColor;
} else if (this.states.overlap) {
lineColor = SectionConsts.overlapColor;
} else if (this.states.failLocked) {
}
if (this.states.cut) {
this.bindFlashAnimation(this.lineGraphic);

View File

@ -56,8 +56,8 @@ export const SectionConsts = {
idleColor: '#888', //空闲
ciOccupiedColor: '#f00', //非通信车占用
cbtcOccupiedColor: '#f49', //通信车占用
lockedColor: '#fff', //锁闭
atcInvalidColor: '#954', //故障锁闭
lockedColor: '#fff', //锁闭 && 故障锁闭
atcInvalidColor: '#954', //atc报告失效
blockedColor: '#606', //封锁
overlapColor: '#ff0', //overlap
lineWidth: 5,

View File

@ -47,7 +47,7 @@ export const TurnoutConsts = {
jammedLineColor: '#f00', //挤岔
ciOccupiedColor: '#f00', //非通信车占用
cbtcOccupiedColor: '#f49', //通信车占用
lockedColor: '#fff', //锁闭
lockedColor: '#fff', //锁闭 && 故障锁闭
atcInvalidColor: '#954', //atc报告失效
overlapColor: '#ff0', //overlap
lineWidth: 5,
@ -299,7 +299,10 @@ export class Turnout extends JlGraphic {
this.lineColor = TurnoutConsts.cbtcOccupiedColor;
} else if (this.states.ipSingleSwitchStusCiOccupied) {
this.lineColor = TurnoutConsts.ciOccupiedColor;
} else if (this.states.ipSingleSwitchStusLocked) {
} else if (
this.states.ipSingleSwitchStusLocked ||
this.states.ipSingleSwitchStusFailLocked
) {
this.lineColor = TurnoutConsts.lockedColor;
} else if (this.states.ipSingleSwitchStusAtcInvalid) {
this.lineColor = TurnoutConsts.atcInvalidColor;