maxiaoxiao 5 月之前
父節點
當前提交
09976ae7fa
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      src/views/LandConsolidation/components/sdgk.vue

+ 11 - 1
src/views/LandConsolidation/components/sdgk.vue

@@ -193,6 +193,16 @@ export default {
       this.$emit("updateParent", "loading", false);
     },
     async Getkjxx() {
+      let jxres = await QueryList({
+        jscType: "qytuzz_sdzl_kjxx_jx",
+        id: this.region,
+      });
+      if (jxres.data && jxres.data.length)
+        loadGeoJSON(jxres.data[0].geom, "#ffffff", { isfly: true }, (data) => {
+          // geoSources[ri] = data;
+          data.name = "sdqy";
+          data.show = false;
+        });
       let res = await QueryList({
         jscType: "qytuzz_sdzl_kjxx",
         id: this.region,
@@ -203,7 +213,7 @@ export default {
       newVal.forEach((res, ri) => {
         let color = legends[res.type].color;
         if (res.geom)
-          loadGeoJSON(res.geom, color, { isfly: true }, (data) => {
+          loadGeoJSON(res.geom, color, { isfly: false }, (data) => {
             geoSources[ri] = data;
             data.name = res.type = 0 ? "sdqy" : "zzqy";
             // data.show = false;