|
@@ -6,7 +6,7 @@
|
|
<div class="itemHead">温度</div>
|
|
<div class="itemHead">温度</div>
|
|
<div class="item">
|
|
<div class="item">
|
|
<div id="demo1">温度:{{template}}</div>
|
|
<div id="demo1">温度:{{template}}</div>
|
|
- <div>输出:{{outputT}}</div>
|
|
|
|
|
|
+ <div>输出:{{outputT}}%</div>
|
|
</div>
|
|
</div>
|
|
<div class="item">
|
|
<div class="item">
|
|
<div id="demo1">升温
|
|
<div id="demo1">升温
|
|
@@ -93,7 +93,7 @@ export default {
|
|
// 温度输出
|
|
// 温度输出
|
|
outputT: '',
|
|
outputT: '',
|
|
// 升温/降温(0升温,1降温,3啥也不是)
|
|
// 升温/降温(0升温,1降温,3啥也不是)
|
|
- statusT: 3,
|
|
|
|
|
|
+ statusT: 1,
|
|
// 目标温度
|
|
// 目标温度
|
|
targetT: '',
|
|
targetT: '',
|
|
// 斜率设定(温度)
|
|
// 斜率设定(温度)
|
|
@@ -113,7 +113,7 @@ export default {
|
|
// 湿度输出
|
|
// 湿度输出
|
|
outputH: '',
|
|
outputH: '',
|
|
// 加湿/除湿(0加湿,1除湿,3啥也不是)
|
|
// 加湿/除湿(0加湿,1除湿,3啥也不是)
|
|
- statusH: 3,
|
|
|
|
|
|
+ statusH: 1,
|
|
// 目标湿度
|
|
// 目标湿度
|
|
targetH: '',
|
|
targetH: '',
|
|
// 起始湿度
|
|
// 起始湿度
|
|
@@ -145,14 +145,21 @@ export default {
|
|
this.template = this.dataList[i].Value
|
|
this.template = this.dataList[i].Value
|
|
}
|
|
}
|
|
if (this.dataList[i].Name == '温度输出率') {
|
|
if (this.dataList[i].Name == '温度输出率') {
|
|
- this.outputT = this.dataList[i].Value
|
|
|
|
- if (this.outputT >0 && this.outputT <100) {
|
|
|
|
|
|
+ this.outputT = this.dataList[i].Value * 100
|
|
|
|
+ // if (this.outputT >0 && this.outputT <100) {
|
|
|
|
+ // this.statusT = 0
|
|
|
|
+ // }
|
|
|
|
+ // if (this.outputT >-100 && this.outputT <0) {
|
|
|
|
+ // this.statusT = 1
|
|
|
|
+ // }else{
|
|
|
|
+ // this.statusT = 3
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+ if (this.dataList[i].Name == '升温') {
|
|
|
|
+ if (this.dataList[i].Value == 1) {
|
|
this.statusT = 0
|
|
this.statusT = 0
|
|
- }
|
|
|
|
- if (this.outputT >-100 && this.outputT <0) {
|
|
|
|
- this.statusT = 1
|
|
|
|
}else{
|
|
}else{
|
|
- this.statusT = 3
|
|
|
|
|
|
+ this.statusT = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.dataList[i].Name == '温度设定值') {
|
|
if (this.dataList[i].Name == '温度设定值') {
|
|
@@ -170,14 +177,21 @@ export default {
|
|
this.humidity = this.dataList[i].Value
|
|
this.humidity = this.dataList[i].Value
|
|
}
|
|
}
|
|
if (this.dataList[i].Name == '湿度输出率') {
|
|
if (this.dataList[i].Name == '湿度输出率') {
|
|
- this.outputH = this.dataList[i].Value
|
|
|
|
- if (this.outputH >0 && this.outputH <100) {
|
|
|
|
|
|
+ this.outputH = this.dataList[i].Value * 100
|
|
|
|
+ // if (this.outputH >0 && this.outputH <100) {
|
|
|
|
+ // this.statusH = 0
|
|
|
|
+ // }
|
|
|
|
+ // if (this.outputH >-100 && this.outputH <0) {
|
|
|
|
+ // this.statusH = 1
|
|
|
|
+ // }else{
|
|
|
|
+ // this.statusH = 3
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+ if (this.dataList[i].Name == '加湿') {
|
|
|
|
+ if (this.dataList[i].Value == 1) {
|
|
this.statusH = 0
|
|
this.statusH = 0
|
|
- }
|
|
|
|
- if (this.outputH >-100 && this.outputH <0) {
|
|
|
|
- this.statusH = 1
|
|
|
|
}else{
|
|
}else{
|
|
- this.statusH = 3
|
|
|
|
|
|
+ this.statusH = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.dataList[i].Name == '湿度设定值') {
|
|
if (this.dataList[i].Name == '湿度设定值') {
|