瀏覽代碼

选址结果规划地块修改标识码删除事件

lkk 1 年之前
父節點
當前提交
c923cf2733
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/siteselection/components/xzjg.vue

+ 2 - 2
src/views/siteselection/components/xzjg.vue

@@ -249,7 +249,6 @@ export default {
 
     // 加载GeoJSON数据
     loadGeoJSON(geojson, yanse, id) {
-      let _this = this;
       const dataSource = new Cesium.GeoJsonDataSource();
       dataSource
         .load(geojson, {
@@ -307,7 +306,7 @@ export default {
     },
     mapview(item) {
       console.log(item)
-      this.drawWktPloygon(item.geom, "#ff0000", item.dkbm);
+      this.drawWktPloygon(item.geom, "#ff0000", item.id);
     },
 
     submit() {
@@ -346,6 +345,7 @@ export default {
     },
     //监听区域id的变化,用于删除上一次点击生成的geojson区域面
     tempdataSourcesId(newVal, oldVal) {
+      console.log(newVal, oldVal,'newVal, oldVal');
       if (oldVal) {
         viewer.dataSources.remove(dataSources[oldVal]);
       }