调整宁波线 引导办理 引导取消
This commit is contained in:
parent
1a20248a0d
commit
056076c682
@ -275,7 +275,7 @@ class Signal extends Group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* count 1单灯 2双灯 lightType 01物理点灯 02逻辑点灯*/
|
/* count 1单灯 2双灯 lightType 01物理点灯 02逻辑点灯*/
|
||||||
openPositive() {
|
openPositive() { // 正向开放
|
||||||
if (this.count == 2 && !this.model.lightType) {
|
if (this.count == 2 && !this.model.lightType) {
|
||||||
if (this.lamps[0]) {
|
if (this.lamps[0]) {
|
||||||
this.lamps[0].setStop(false);
|
this.lamps[0].setStop(false);
|
||||||
@ -307,7 +307,7 @@ class Signal extends Group {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* count 1单灯 2双灯 lightType 逻辑点灯 true,物理点灯 false */
|
/* count 1单灯 2双灯 lightType 逻辑点灯 true,物理点灯 false */
|
||||||
openLateral() {
|
openLateral() { // 侧向开放
|
||||||
if (this.count == 2 && !this.model.lightType) {
|
if (this.count == 2 && !this.model.lightType) {
|
||||||
if (this.lamps[0]) {
|
if (this.lamps[0]) {
|
||||||
this.lamps[0].setStop(false);
|
this.lamps[0].setStop(false);
|
||||||
@ -499,45 +499,28 @@ class Signal extends Group {
|
|||||||
} else if (!model.isRouteActive && isShowThePrdType(model.prdType, '03') && this.style.Signal.lowButton.display) {
|
} else if (!model.isRouteActive && isShowThePrdType(model.prdType, '03') && this.style.Signal.lowButton.display) {
|
||||||
this.setLowButtonRecover();
|
this.setLowButtonRecover();
|
||||||
}
|
}
|
||||||
/** 设置灯的颜色 */
|
|
||||||
if (model.greenOpen) {
|
|
||||||
if (this.lamps[0]) {
|
|
||||||
this.lamps[0].setColor(this.style.Signal.lamp.greenColor);
|
|
||||||
}
|
|
||||||
if (this.lamps[1]) {
|
|
||||||
this.lamps[1].setColor(this.style.Signal.lamp.greenColor);
|
|
||||||
}
|
|
||||||
} else if (model.redOpen) {
|
|
||||||
if (this.lamps[0]) {
|
|
||||||
this.lamps[0].setColor(this.style.Signal.lamp.redColor);
|
|
||||||
}
|
|
||||||
if (this.lamps[1]) {
|
|
||||||
this.lamps[1].setColor(this.style.Signal.lamp.redColor);
|
|
||||||
}
|
|
||||||
} else if (model.yellowOpen) {
|
|
||||||
if (this.lamps[0]) {
|
|
||||||
this.lamps[0].setColor(this.style.Signal.lamp.yellowColor);
|
|
||||||
}
|
|
||||||
if (this.lamps[1]) {
|
|
||||||
this.lamps[1].setColor(this.style.Signal.lamp.yellowColor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/** 信号机进路按钮显示 */
|
/** 信号机进路按钮显示 */
|
||||||
model.isRouteSignal && this.setLowButtonShow();
|
model.isRouteSignal && this.setLowButtonShow();
|
||||||
/** 信号机封锁 */
|
/** 信号机封锁 */
|
||||||
model.blockade && this.block();
|
model.blockade && this.block();
|
||||||
// model.linkageAutoRouteShow = 1;
|
|
||||||
/** 设置点灯类型*/
|
/** 设置灯的颜色 */
|
||||||
|
model.redOpen && model.yellowOpen && !model.greenOpen && this.guid(); // 引导信号显示
|
||||||
|
model.redOpen && !model.yellowOpen && !model.greenOpen && this.close(); // 信号关闭
|
||||||
|
model.greenOpen && !model.redOpen && !model.yellowOpen && this.openPositive(); // 信号正向开放
|
||||||
|
model.yellowOpen && !model.redOpen && !model.greenOpen && this.openLateral(); // 信号侧向开放
|
||||||
|
|
||||||
|
/** 进路交人工控或自动控 */
|
||||||
|
!model.atsControl && this.setArtificialRouteClose();
|
||||||
|
// 联锁自动进路通过
|
||||||
|
model.fleetMode && this.setAutoRouteOpen();
|
||||||
|
// 设置点灯类型 必须在最后设置不能放前面
|
||||||
if (model.lightType) {
|
if (model.lightType) {
|
||||||
this.logicalLight(); // 设置逻辑点灯
|
this.logicalLight(); // 设置逻辑点灯
|
||||||
} else {
|
} else {
|
||||||
this.physicsLight(); // 设置物理点灯
|
this.physicsLight(); // 设置物理点灯
|
||||||
}
|
}
|
||||||
model.guid && this.guid(); // 引导信号显示
|
|
||||||
/** 进路交人工控或自动控 */
|
|
||||||
!model.atsControl && this.setArtificialRouteClose();
|
|
||||||
// 联锁自动进路通过
|
|
||||||
model.fleetMode && this.setAutoRouteOpen();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getBoundingRect() {
|
getBoundingRect() {
|
||||||
|
Loading…
Reference in New Issue
Block a user