|
@@ -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) {
|