Browse Source

选址范围面积获取

maxiaoxiao 11 months ago
parent
commit
25ae2a04ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/mapView/range.vue

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

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