|
|
@ -10,7 +10,7 @@ |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<span>报警器:</span> |
|
|
|
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949"> |
|
|
|
<el-switch disabled v-model="value2" active-color="#13ce66" inactive-color="#ff4949"> |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -18,7 +18,7 @@ |
|
|
|
<div class="div-li"> |
|
|
|
<div> |
|
|
|
<span>加热器:</span> |
|
|
|
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949"> |
|
|
|
<el-switch disabled v-model="value2" active-color="#13ce66" inactive-color="#ff4949"> |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
<div class="div-tips"> |
|
|
@ -125,7 +125,7 @@ export default { |
|
|
|
|
|
|
|
// 根基温度值是否低于阈值,设置报警器、加热器的状态 |
|
|
|
this.value2 = false; |
|
|
|
if (this.deviceInfo.temperature < this.deviceInfo.threshold) { |
|
|
|
if (temperature < threshold) { |
|
|
|
this.value2 = true; |
|
|
|
} |
|
|
|
}); |
|
|
|