Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
52a304ef95
@ -209,7 +209,13 @@ export default class SaidLamp extends Group {
|
|||||||
this.control && this.control.setControlColor(this.deviceStyle.lamp.offColor);
|
this.control && this.control.setControlColor(this.deviceStyle.lamp.offColor);
|
||||||
} else if (datieType.includes(model._type)) {
|
} else if (datieType.includes(model._type)) {
|
||||||
if (model.aspect) {
|
if (model.aspect) {
|
||||||
// if (model.runStatus == 'S') { // 闭塞
|
const signalButtons = [deviceType.PickArrow, deviceType.DepartArrow];
|
||||||
|
if (signalButtons.includes(model._type)) {
|
||||||
|
// if (model.runModel == 'S') { // 闭塞
|
||||||
|
// console.log(model.runModel, model.runStatus, model.aspect, model.blockStatus, model._type, '88888888');
|
||||||
|
// if (model.runStatus == 'NO') {
|
||||||
|
// this.control && this.control.setControlColor(this.deviceStyle.fill);
|
||||||
|
// } else {
|
||||||
// // blockStatus:false * 指示灯(F)的时候为黄色,true为绿色
|
// // blockStatus:false * 指示灯(F)的时候为黄色,true为绿色
|
||||||
// // 指示灯(O)为红色
|
// // 指示灯(O)为红色
|
||||||
// if (model.blockStatus != undefined) {
|
// if (model.blockStatus != undefined) {
|
||||||
@ -224,34 +230,10 @@ export default class SaidLamp extends Group {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// // 接车
|
// } else {
|
||||||
// if (model._type == deviceType.PickArrow) { // 接车灯
|
|
||||||
// if (model.runStatus == 'R' || model.runStatus == 'A') { // 接车
|
|
||||||
// // 接车状态:发车灯灭,接车灯默认是黄色,占用时红色
|
|
||||||
// if (model.aspect == 'O') {
|
|
||||||
// this.control && this.control.setControlColor(this.deviceStyle.occupiedColor);
|
|
||||||
// } else if (model.aspect == 'F') {
|
|
||||||
// this.control && this.control.setControlColor(this.deviceStyle.noOccupiedColor);
|
|
||||||
// }
|
|
||||||
// } else if (model.runStatus == 'D') { // 发车
|
|
||||||
// this.control && this.control.setControlColor(this.deviceStyle.fill);
|
|
||||||
// }
|
|
||||||
// } else if (model._type == deviceType.DepartArrow) { // 发车灯
|
|
||||||
// if (model.runStatus == 'D' || model.runStatus == 'A') { // 发车
|
|
||||||
// // 发车状态:接车灯灭,发车灯默认是绿色,占用时红色
|
|
||||||
// if (model.aspect == 'O') {
|
|
||||||
// this.control && this.control.setControlColor(this.deviceStyle.occupiedColor);
|
|
||||||
// } else if (model.aspect == 'F') {
|
|
||||||
// this.control && this.control.setControlColor(this.deviceStyle.noOccupiedColor);
|
|
||||||
// }
|
|
||||||
// } else if (model.runStatus == 'R') { // 接车
|
|
||||||
// this.control && this.control.setControlColor(this.deviceStyle.fill);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
const signalButtons = [deviceType.PickArrow, deviceType.DepartArrow];
|
|
||||||
if (signalButtons.includes(model._type)) {
|
|
||||||
if (model.runModel == 'S') { // 闭塞
|
|
||||||
console.log(model.runModel, model.runStatus, model.aspect, model.blockStatus, model._type, '88888888');
|
console.log(model.runModel, model.runStatus, model.aspect, model.blockStatus, model._type, '88888888');
|
||||||
|
if (model.runStatus == 'A' || (model.runStatus == 'R' && model._type == deviceType.PickArrow ) || (model.runStatus == 'D' && model._type == deviceType.DepartArrow)) {
|
||||||
|
if (model.runModel == 'S') {
|
||||||
// blockStatus:false * 指示灯(F)的时候为黄色,true为绿色
|
// blockStatus:false * 指示灯(F)的时候为黄色,true为绿色
|
||||||
// 指示灯(O)为红色
|
// 指示灯(O)为红色
|
||||||
if (model.blockStatus != undefined) {
|
if (model.blockStatus != undefined) {
|
||||||
@ -266,8 +248,6 @@ export default class SaidLamp extends Group {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(model.runStatus, model.aspect, model._type, '666666666');
|
|
||||||
if (model.runStatus == 'A' || (model.runStatus == 'R' && model._type == deviceType.PickArrow ) || (model.runStatus == 'D' && model._type == deviceType.DepartArrow)) {
|
|
||||||
// 发车状态:接车灯灭,发车灯默认是绿色,占用时红色
|
// 发车状态:接车灯灭,发车灯默认是绿色,占用时红色
|
||||||
// 接车状态:发车灯灭,接车灯默认是黄色,占用时红色
|
// 接车状态:发车灯灭,接车灯默认是黄色,占用时红色
|
||||||
if (model.aspect == 'O') {
|
if (model.aspect == 'O') {
|
||||||
@ -276,11 +256,13 @@ export default class SaidLamp extends Group {
|
|||||||
this.control && this.control.setControlColor(this.deviceStyle.noOccupiedColor);
|
this.control && this.control.setControlColor(this.deviceStyle.noOccupiedColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
// 发车状态----接车灯灭 接车状态-----发车灯灭
|
// 发车状态----接车灯灭 接车状态-----发车灯灭
|
||||||
if (model.runStatus == 'NO' || (model.runStatus == 'R' && model._type == deviceType.DepartArrow) || (model.runStatus == 'D' && model._type == deviceType.PickArrow)) {
|
if (model.runStatus == 'NO' || (model.runStatus == 'R' && model._type == deviceType.DepartArrow) || (model.runStatus == 'D' && model._type == deviceType.PickArrow)) {
|
||||||
this.control && this.control.setControlColor(this.deviceStyle.fill);
|
this.control && this.control.setControlColor(this.deviceStyle.fill);
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
switch (model.aspect) {
|
switch (model.aspect) {
|
||||||
|
Loading…
Reference in New Issue
Block a user