Prechádzať zdrojové kódy

点击图斑获取数据;优化图层图标

songxy 1 rok pred
rodič
commit
62ef06706b

BIN
WEB-VIEW2/src/assets/images/map/layer.png


+ 1 - 2
WEB-VIEW2/src/views/components/BigScreenMap/index.vue

@@ -1464,7 +1464,6 @@ export default {
       this.enabledLayersConfig = enabledLayersConfig;
     },
     async pickServerFeature (e) {
-      console.log(e)
       let tempLayerIds = this.visibleLayerIds.filter(
         (it) =>
           it !== 'xzqh-s' &&
@@ -1481,7 +1480,7 @@ export default {
           it !== 'bj-stbhhx' &&
           it !== 'bj-kfbjw',
       );
-      if (tempLayerIds.length === 1) {
+      if (tempLayerIds.length === this.visibleLayerIds.length) {
         const layerConfig = this.$refs.configLayer.getLayerConfigById(
           this.visibleLayerId,
         );

+ 1 - 1
WEB-VIEW2/src/webViewMap.vue

@@ -68,6 +68,7 @@ export default {
   },
   methods: {
     async mapClickHandle (payload1, key) {
+      alert(key)
       this.$emit('mapClick', payload1);
       if (key == 'bj-dkgl') {
         this.$vm.$emit('setGdDetailType', 24);
@@ -77,7 +78,6 @@ export default {
       this.$vm.$emit('getGdDetailData', payload1);
     },
     showLayer (layerId) {
-      alert(layerId)
       this.$vm.$emit('setVisibleLayerIdEvent', layerId);
       this.$vm.$emit('switchLayerShow', true);
       this.$vm.$emit('setGdDetailType', 12);

+ 2 - 0
WEB-VIEW2/src/webview.vue

@@ -97,6 +97,8 @@ export default {
 
   methods: {
     mapClickHandle (payload) {
+      console.log("mapClickHandle-------------------")
+      console.log(payload)
       this.toDetailInfo(payload[_that.mapType === 'bj-lsyd' ? 'dksyh' : 'id'], 'map')
     },
     toDetailInfo (idStr, source) {