Bella 2 years ago
parent
commit
f0e91cc2b9
1 changed files with 10 additions and 8 deletions
  1. 10 8
      src/views/ComprehensiveAnalysis.vue

+ 10 - 8
src/views/ComprehensiveAnalysis.vue

@@ -1023,15 +1023,17 @@ export default {
         //   }
         // );
         // 测试数据
-        this.$Get("./static/json/test.json", "").then((response) => {
-          if (response.features.length > 0) {
-            response.features.forEach((v) => {
-              let geojson = publicFun.standardGeojson(v.geometry.coordinates);
-              // console.log(geojson, "geojson")
-              this.readGeojson(geojson, data.id);
-            });
+        this.$Get(this.uploadBaseUrl + data.c_dzfx_file, "").then(
+          (response) => {
+            if (response.features.length > 0) {
+              response.features.forEach((v) => {
+                let geojson = publicFun.standardGeojson(v.geometry.coordinates);
+                // console.log(geojson, "geojson")
+                this.readGeojson(geojson, data.id);
+              });
+            }
           }
-        });
+        );
       }
     },
     readGeojson(geojson, id) {