diff --git a/Step/wwwroot/src/modules/heads/head-production.vue b/Step/wwwroot/src/modules/heads/head-production.vue index 2cb4af25..22477807 100644 --- a/Step/wwwroot/src/modules/heads/head-production.vue +++ b/Step/wwwroot/src/modules/heads/head-production.vue @@ -90,15 +90,15 @@ export default { // // }, methods:{ loadStatus() { - if(this.load> this.dangerlevel) return "danger"; - if(this.load> this.warningllevel) return "warning"; - return null; + if (this.inAlarm) return "danger"; + if (this.inWarning) return "warning"; + return null; }, loadStatusAwj() { - if(!this.abrasiveIsActive) return "disabled"; - if(this.load> this.dangerlevel) return "danger"; - if(this.load> this.warningllevel) return "warning"; - return null; + if (!this.abrasiveIsActive) return "disabled"; + if (this.inAlarm) return "danger"; + if (this.inWarning) return "warning"; + return null; }, overridePlus(){ this.$emit("overridePlus");