浏览代码

网络运营商判断修改

wang_xy 1 年之前
父节点
当前提交
4e9a0f4c15
共有 2 个文件被更改,包括 9 次插入5 次删除
  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>' +