调整屏蔽门开关逻辑
This commit is contained in:
parent
90c7335964
commit
ec0d69c553
@ -66,15 +66,8 @@ class ESafeDoor extends Group {
|
||||
}
|
||||
|
||||
setState(model) {
|
||||
if (model.fault) {
|
||||
if (model.fault == 'PSD_CANNOT_BE_OPENED') {
|
||||
this.safeC.hide();
|
||||
} else if (model.fault == 'PSD_CANNOT_BE_CLOSED') {
|
||||
this.safeC.show();
|
||||
}
|
||||
} else {
|
||||
model.screenDoorOpenStatus == 0 ? this.safeC.show() : this.safeC.hide();
|
||||
}
|
||||
console.log(model.fault, model.screenDoorOpenStatus);
|
||||
model.screenDoorOpenStatus == 0 ? this.safeC.show() : this.safeC.hide();
|
||||
if (model.interlockRelease) {
|
||||
const style = this.model.style;
|
||||
this.setColor(style.Psd.safetyDoorNormal.splitDoorColor);
|
||||
|
Loading…
Reference in New Issue
Block a user