Procházet zdrojové kódy

传感器添加阈值

王通 před 2 roky
rodič
revize
85d1309326
1 změnil soubory, kde provedl 33 přidání a 15 odebrání
  1. 33 15
      src/views/monitor.vue

+ 33 - 15
src/views/monitor.vue

@@ -864,10 +864,19 @@ export default {
               "<span>" +
               '                  <div class="d-l-con">' +
               '                  <div class="d-l-l-text">' +
+              "                  <h4>类型:水压传感器" +
+              "</h4>" +
+              "                </div>" +
+              "                </div>" +
+              "                </span>" +
+              '<div class="map-tip">' +
+              "<span>" +
+              '                  <div class="d-l-con">' +
+              '                  <div class="d-l-l-text">' +
               "                  <h4>下限警报使能:" +
-              (item.data.thresholdLowEnable
-                ? item.data.thresholdLowEnable + "MPa"
-                : "0MPa") +
+              (item.data.thresholdLowEnable ?
+                item.data.thresholdLowEnable + "MPa" :
+                "0MPa") +
               "</h4>" +
               "                </div>" +
               "                </div>" +
@@ -876,20 +885,29 @@ export default {
               '                  <div class="d-l-con">' +
               '                  <div class="d-l-l-text">' +
               "                  <h4>上限警报使能:" +
-              (item.data.thresholdHighEnable
-                ? item.data.thresholdHighEnable + "MPa"
-                : "0MPa") +
+              (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.signalPower ? item.data.signalPower : "") +
+              // "</h4>" +
+              // "                </div>" +
+              // "                </div>" +
+              // "                </span>" +
               "<span>" +
               '                  <div class="d-l-con">' +
               '                  <div class="d-l-l-text">' +
               "                  <h4>水压力值:" +
-              (item.data.hydraulicValue
-                ? item.data.hydraulicValue + "MPa"
-                : "0MPa") +
+              (item.data.hydraulicValue ?
+                item.data.hydraulicValue + "MPa" :
+                "0MPa") +
               "</h4>" +
               "                </div>" +
               "                </div>" +
@@ -898,9 +916,9 @@ export default {
               '                  <div class="d-l-con">' +
               '                  <div class="d-l-l-text">' +
               "                  <h4>水压下限阈值:" +
-              (item.data.hydraulicThresholdMin
-                ? item.data.hydraulicThresholdMin + "MPa"
-                : "0MPa") +
+              (item.data.hydraulicThresholdMin ?
+                item.data.hydraulicThresholdMin + "MPa" :
+                "0MPa") +
               "</h4>" +
               "                </div>" +
               "                </div>" +
@@ -909,9 +927,9 @@ export default {
               '                  <div class="d-l-con">' +
               '                  <div class="d-l-l-text">' +
               "                  <h4>水压上限阈值:" +
-              (item.data.hydraulicThresholdMax
-                ? item.data.hydraulicThresholdMax + "MPa"
-                : "0MPa") +
+              (item.data.hydraulicThresholdMax ?
+                item.data.hydraulicThresholdMax + "MPa" :
+                "0MPa") +
               "</h4>" +
               "                </div>" +
               "                </div>" +