瀏覽代碼

popup框显示的字段调整

mork 1 周之前
父節點
當前提交
b3a88e617d
共有 3 個文件被更改,包括 8 次插入3 次删除
  1. 1 1
      public/static/config/config.js
  2. 3 1
      src/components/LeftMenu.vue
  3. 4 1
      src/components/Map.vue

+ 1 - 1
public/static/config/config.js

@@ -33,6 +33,6 @@ var webConfig = {
         {"name":"管理区域","value":"c_glqynbkj"},
         {"name":"汇总业态","value":"c_hzyt"},
         {"name":"dms_id","value":"id"},
-        {"name":"guid","value":"c_guid"},
+        {"name":"标识","value":"c_guid"},
       ],
 }

+ 3 - 1
src/components/LeftMenu.vue

@@ -153,7 +153,9 @@ export default {
             //   str += `<p style="margin:2px 0;">${item}:${param[item]}</p>`;
             // }
             if (that.arrParam.map(ev => ev.value).includes(item)) {
-              str += `<p style="margin:2px 0;">${that.arrParam.find(et => et.value == item).name}:${param[item]}</p>`;
+              if(item != "id"){
+                str += `<p style="margin:2px 0;">${that.arrParam.find(et => et.value == item).name}:${param[item]}</p>`;
+              }
             }
           }
           const popupContent = `

+ 4 - 1
src/components/Map.vue

@@ -534,8 +534,11 @@ export default {
           //   str += `<p style="margin:2px 0;">${item}:${fet.properties[item]}</p>`;
           // }
           if (that.arrParam.map(ev => ev.value).includes(item)) {
-            str += `<p style="margin:2px 0;">${that.arrParam.find(et => et.value == item).name}:${fet.properties[item]}</p>`;
+            if(item != "id"){
+              str += `<p style="margin:2px 0;">${that.arrParam.find(et => et.value == item).name}:${fet.properties[item]}</p>`;
+            }
           }
+
         }
 
         const popupContent = `