소스 검색

合规性分析历史记录列表接入wkt范围

maxiaoxiao 1 년 전
부모
커밋
f343319f06
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/complianceAnalysis/components/lsjl.vue

+ 2 - 1
src/views/complianceAnalysis/components/lsjl.vue

@@ -74,6 +74,7 @@
 </template>
 
 <script>
+import parse from "wellknown";
 import { GetPage, Delect } from "@/api/ghss/hgxfx.js";
 import { Message, MessageBox } from "element-ui";
 import { rest } from "lodash";
@@ -207,7 +208,7 @@ export default {
     },
     zoomItem(item) {
       this.now = item.bsm;
-      this.addPolygon(item.geojson);
+      this.addPolygon(parse(item.geom));
     },
     // 加载GeoJSON数据
     addPolygon(geojson) {