wyh 1 年間 前
コミット
d93da39854
共有1 個のファイルを変更した29 個の追加15 個の削除を含む
  1. 29 15
      src/views/modules_guAn/visualization/modules/ModeInfo.vue

+ 29 - 15
src/views/modules_guAn/visualization/modules/ModeInfo.vue

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