diff --git a/src/jmapNew/shape/Psd/ESafeDoor.js b/src/jmapNew/shape/Psd/ESafeDoor.js index 5d799db38..61e6fff56 100644 --- a/src/jmapNew/shape/Psd/ESafeDoor.js +++ b/src/jmapNew/shape/Psd/ESafeDoor.js @@ -142,15 +142,15 @@ class ESafeDoor extends Group { } hasDoor(show) { - const style = this.model.style; + const style = this.model.style; if (style.StationStand.common.special) { if (show) { this.stand1.setStyle('fill', style.transparentColor); - this.stand2.setStyle('fill', style.transparentColor); + this.stand2.setStyle('fill', style.transparentColor); } else { this.stand1.setStyle('fill', style.StationStand.safetyDoor.defaultColor); - this.stand2.setStyle('fill', style.StationStand.safetyDoor.defaultColor); - } + this.stand2.setStyle('fill', style.StationStand.safetyDoor.defaultColor); + } } else { if (!this.model.style.StationStand.safetyDoor.special) { show ? this.safeC.hide() : this.safeC.show(); @@ -170,8 +170,8 @@ class ESafeDoor extends Group { } hide() { - this.stand1 && this.stand1.setStyle('fill', style.transparentColor); - this.stand2 && this.stand2.setStyle('fill', style.transparentColor); + this.stand1 && this.stand1.hide(); + this.stand2 && this.stand2.hide(); this.safeL && this.safeL.hide(); this.safeC && this.safeC.hide(); this.safeR && this.safeR.hide(); @@ -179,8 +179,8 @@ class ESafeDoor extends Group { this.safeB && this.safeB.hide(); } show() { - this.stand1 && this.stand1.setStyle('fill', style.StationStand.safetyDoor.defaultColor); - this.stand2 && this.stand2.setStyle('fill', style.StationStand.safetyDoor.defaultColor); + this.stand1 && this.stand1.show(); + this.stand2 && this.stand2.show(); this.safeL && this.safeL.show(); this.safeC && this.safeC.show(); this.safeR && this.safeR.show(); diff --git a/src/store/modules/training.js b/src/store/modules/training.js index b13b08b34..bd63e71cd 100644 --- a/src/store/modules/training.js +++ b/src/store/modules/training.js @@ -228,13 +228,13 @@ const training = { setSimulationUserList: (state, simulationUserList) => { state.simulationUserList = simulationUserList; }, - updateMemberTrust:(state, {deviceCode,trust}) => { - for(let k in state.memberData){ - if(state.memberData[k].deviceCode == deviceCode){ - state.memberData[k].trust = trust; - break; + updateMemberTrust:(state, {deviceCode, trust}) => { + for (const k in state.memberData) { + if (state.memberData[k].deviceCode == deviceCode) { + state.memberData[k].trust = trust; + break; + } } - } }, updateMemberListInScript:(state, {oldMemberId, newMemberId, userId, name}) => { if (oldMemberId) { @@ -466,7 +466,7 @@ const training = { } try { - // 处理operation + // 处理operation Handler.handle(operate).then(rtn => { if (state.started) { // 教学和联系模式需要给出过程步骤提示