Procházet zdrojové kódy

网络运营商判断修改

wang_xy před 1 rokem
rodič
revize
4e9a0f4c15
2 změnil soubory, kde provedl 9 přidání a 5 odebrání
  1. 3 1
      src/components/eventLocation.vue
  2. 6 4
      src/views/monitor.vue

+ 3 - 1
src/components/eventLocation.vue

@@ -569,7 +569,9 @@ export default {
                 '<span>' +
                 '                  <div class="d-l-con">' +
                 '                  <div class="d-l-l-text">' +
-                '                  <h4>网络运营商:' + (res.data[i].operatorType == "1" ? "联通" : (res.data[i].operatorType == "2" ? "移动":"电信")) + '</h4>' +
+                '                  <h4>网络运营商:' + (res.data[i].operatorType == "1" ? "联通" :
+                  (res.data[i].operatorType == "2" ? "移动":
+                    (res.data[i].operatorType == "3" ? "电信":  "无")) + '</h4>' +
                 '                </div>' +
                 '                </div>' +
                 '                </span>' +

+ 6 - 4
src/views/monitor.vue

@@ -1223,8 +1223,9 @@ import {
                 '<span>' +
                 '                  <div class="d-l-con">' +
                 '                  <div class="d-l-l-text">' +
-                '                  <h4>网络运营商:' + (res.data.visuForestCloudCameraBOList[i].operatorType == "1" ?
-                  "联通" : (res.data.visuForestCloudCameraBOList[i].operatorType == "2" ? "移动" : "电信")) + '</h4>' +
+                '                  <h4>网络运营商:' + (res.data[i].operatorType == "1" ? "联通" :
+                  (res.data[i].operatorType == "2" ? "移动":
+                    (res.data[i].operatorType == "3" ? "电信":  "无")) + '</h4>' +
                 '                </div>' +
                 '                </div>' +
                 '                </span>' +
@@ -1370,8 +1371,9 @@ import {
                 '<span>' +
                 '                  <div class="d-l-con">' +
                 '                  <div class="d-l-l-text">' +
-                '                  <h4>网络运营商:' + (res.data[i].operatorType == "1" ? "联通" : (res.data[i]
-                  .operatorType == "2" ? "移动" : "电信")) + '</h4>' +
+                '                  <h4>网络运营商:' + (res.data[i].operatorType == "1" ? "联通" :
+                  (res.data[i].operatorType == "2" ? "移动":
+                    (res.data[i].operatorType == "3" ? "电信":  "无")) + '</h4>' +
                 '                </div>' +
                 '                </div>' +
                 '                </span>' +