Quellcode durchsuchen

水压传感器修改

王通 vor 1 Jahr
Ursprung
Commit
8a338a59dc
1 geänderte Dateien mit 15 neuen und 15 gelöschten Zeilen
  1. 15 15
      src/views/monitor.vue

+ 15 - 15
src/views/monitor.vue

@@ -914,28 +914,28 @@ export default {
                 "<span>" +
                 '                  <div class="d-l-con">' +
                 '                  <div class="d-l-l-text">' +
-                "                  <h4>下限警报使能:" +
-                (item.data.thresholdLowEnable ? item.data.thresholdLowEnable + "MPa" : "0MPa") +
+                "                  <h4>电池电量:" +
+                (item.data.batteryValue ? item.data.batteryValue + "%" : "0%") +
                 "</h4>" +
                 "                </div>" +
                 "                </div>" +
                 "                </span>" +
+                // "<span>" +
+                // '                  <div class="d-l-con">' +
+                // '                  <div class="d-l-l-text">' +
+                // "                  <h4>上限警报使能:" +
+                // (item.data.thresholdHighEnable ?
+                //   item.data.thresholdHighEnable + "MPa" :
+                //   "0MPa") +
+                // "</h4>" +
+                // "                </div>" +
+                // "                </div>" +
+                // "                </span>" +
                 "<span>" +
                 '                  <div class="d-l-con">' +
                 '                  <div class="d-l-l-text">' +
-                "                  <h4>上限警报使能:" +
-                (item.data.thresholdHighEnable ?
-                  item.data.thresholdHighEnable + "MPa" :
-                  "0MPa") +
-                "</h4>" +
-                "                </div>" +
-                "                </div>" +
-                "                </span>" +
-                "<span>" +
-                '                  <div class="d-l-con">' +
-                '                  <div class="d-l-l-text">' +
-                "                  <h4 style='color:"+(2.0>=item.data.hydraulicValue>=0.5?'green':'red')+"'"+">水压力值:" +
-                (item.data.hydraulicValue ? item.data.hydraulicValue + "MPa" : "0MPa") +'   | 0.5MPa - 2.0MPa' +
+                "                  <h4 style='color:"+(item.data.hydraulicThresholdMax>=item.data.hydraulicValue>=item.data.hydraulicThresholdMin?'green':'red')+"'"+">水压力值:" +
+                (item.data.hydraulicValue ? item.data.hydraulicValue + "MPa" : "0MPa") +'   | ' +(item.data.hydraulicThresholdMin ? item.data.hydraulicThresholdMin + "MPa" : "0MPa")+"-"+ (item.data.hydraulicThresholdMax ? item.data.hydraulicThresholdMax + "MPa" : "0MPa")+
                 "</h4>" +
                 "                </div>" +
                 "                </div>" +