twl 1 year ago
parent
commit
b18d42db81
1 changed files with 4 additions and 36 deletions
  1. 4 36
      src/views/tdlzsp/landTransferApp/DrawMap.vue

+ 4 - 36
src/views/tdlzsp/landTransferApp/DrawMap.vue

@@ -88,6 +88,7 @@
       <el-button class="btn-default" @click="innerVisible = false">取消</el-button>
     </template>
     <my-legend :checked-layers="[{id:'yxzsdk2'}]" class="left-lgend"/>
+
   </el-dialog>
 </template>
 
@@ -113,6 +114,7 @@ import {getAllVillageMyTownId} from "@/api/projectAudit";
 import {searchAddress} from "@/api/ny";
 import {getYxzsdkhGenson} from "../../../api/landTransfer";
 import {layerControlNew} from "../../../utils/map/AddLayer";
+import MyLegend from "../../../components/MyLegend.vue";
 
 const props = defineProps({
   modelValue: Boolean,
@@ -432,43 +434,9 @@ function createMap() {
               })
             })
             addPolygons(genson, false, 'yxzsdk')
-            // res.data.filter(i => i.geojson).forEach(i=> {
-            //   let isFindA =genson.find(arr => arr?.find(it => it.zt === i.zt))
-            //   if (!isFindA){
-            //     let newArr = [
-            //       {
-            //         rings:JSON.parse(i.geojson)?.coordinates,
-            //         id:i.yxzsId,
-            //         attributes:{'yxzsId':i.yxzsId},
-            //         zt:i.zt
-            //       }
-            //     ]
-            //     genson.push(newArr)
-            //   }
-            //   else {
-            //
-            //   }
-            //
-            // })
+
             console.log('我的genson',genson)
-            // genson.forEach(arrItem => {
-            //  if (!(arrItem[0]?.zt === '待招商'))return
-            //   let status = [
-            //     { name: '意向招商审核中', color: 'rgba(211,255,190)', borderColor: 'rgba(38,115,0)' },
-            //     { name: '待招商', color: 'rgba(255,0,0)', borderColor: 'rgba(255,0,0)' },
-            //     { name: '流转审批中', color: 'rgba(190,232,255)', borderColor: 'rgba(0,112,255)' },
-            //     { name: '已流转', color: 'rgba(190,232,0)', borderColor: 'rgba(0,112,255)' },
-            //   ]
-            //   addPolygons(arrItem, false, 'yxzsdk',{
-            //     'type': 'simple-fill',
-            //     "color": status.find(it => it.name === arrItem[0]?.zt)?.color,
-            //     "outline": {
-            //       "color": status.find(it => it.name === arrItem[0]?.zt)?.borderColor,
-            //       'width':  2
-            //     }
-            //   },false)
-            //
-            // })
+
 
           })
           isZs.value = true