Browse Source

互联网-社管一张图-款选,款选后,点击地图上的要素图标无反应

CzRger 1 year ago
parent
commit
4c4f386c0e
2 changed files with 4 additions and 1 deletions
  1. 2 0
      src/store/modules/gis.ts
  2. 2 1
      src/views/gis/layout/tools/select.vue

+ 2 - 0
src/store/modules/gis.ts

@@ -412,6 +412,8 @@ const actions = {
                 break
               case 'analysisCircle': isFeature = false
                 break
+              case 'statisticFeature': isFeature = false
+                break
             }
           }
         }, {

+ 2 - 1
src/views/gis/layout/tools/select.vue

@@ -154,7 +154,8 @@ export default defineComponent({
       }
     }
     const mapDraw = (type) => {
-      SelectDraw(props.map, type).then(({feature, wkt}) => {
+      SelectDraw(props.map, type).then(({feature, wkt}: any) => {
+        feature.set('featureType', 'statisticFeature')
         state.cusTransfer.selectParams.type = type
         state.cusTransfer.selectParams.wkt = wkt
         initData()