瀏覽代碼

合规性分析地块修改

maxiaoxiao 1 年之前
父節點
當前提交
1d3eadd8ec
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/complianceAnalysis/components/scjg.vue

+ 3 - 2
src/views/complianceAnalysis/components/scjg.vue

@@ -177,14 +177,15 @@ export default {
         this.zoomTo(id, geom);
       } else if (dataSourceList[id]) {
         dataSourceList[id].show = iseyes;
+        this.tempdataSourcesId = null;
       } else if (geom) {
         this.addPolygon(geom, id, color);
       }
     },
     zoomTo(id, geom) {
       // if (dataSourceList[id]) viewer.zoomTo(dataSourceList[id]);
-      this.tempdataSourcesId = id;
-      this.addPolygon(geom, id, "#ff0000");
+      this.tempdataSourcesId = "zoom" + id;
+      this.addPolygon(geom, "zoom" + id, "#ff0000");
     },
     setEchart(data, id, childid) {
       this.$nextTick(() => {