Sfoglia il codice sorgente

选址范围绘制面积换算

maxiaoxiao 1 anno fa
parent
commit
6b166c5ae2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/mapView/range.vue

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

@@ -271,7 +271,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);
               this.$message({
                 message: "绘制成功!",
                 type: "success",