调整屏蔽门开关逻辑

This commit is contained in:
fan 2021-07-28 09:39:26 +08:00
parent 90c7335964
commit ec0d69c553

View File

@ -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);