Эх сурвалжийг харах

popup框显示的字段调整

mork 1 долоо хоног өмнө
parent
commit
b3a88e617d

+ 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 = `