maxiaoxiao 11 сар өмнө
parent
commit
25ae2a04ba

+ 1 - 1
src/components/mapView/range.vue

@@ -109,7 +109,7 @@ export default {
       // this.addPolygon();
       // this.addPolygon();
       ShapeUpload(formdata).then((res) => {
       ShapeUpload(formdata).then((res) => {
         if (res.success) {
         if (res.success) {
-          this.model.xzmj = 62.1;
+          this.model.xzmj = (res.data.area / 1000000).toFixed(2);
           viewer.entities.removeAll();
           viewer.entities.removeAll();
           this.fileDataID = res.data.id;
           this.fileDataID = res.data.id;
           let geoms = res.data.geom
           let geoms = res.data.geom