Browse Source

选址范围改为单位亩

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

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

@@ -5,7 +5,7 @@
         <el-button plain v-if="model.xzmj == 0" icon="edit-pen" size="mini"
           >绘制</el-button
         >
-        <span v-if="model.xzmj != 0">{{ model.xzmj }} km²</span>
+        <span v-if="model.xzmj != 0">{{ model.xzmj }} </span>
       </div>
       <el-upload
         class="upload-demo"
@@ -113,7 +113,7 @@ export default {
       formdata.append("fromRoute", this.$route.path);
       ShapeUpload(formdata).then((res) => {
         if (res.success) {
-          this.model.xzmj = (res.data.area / 1000000).toFixed(2);
+          this.model.xzmj = (res.data.area * 0.0015).toFixed(2);
           // viewer.entities.removeAll();
           this.resetDataSources();
           this.fileDataID = res.data.id;
@@ -278,7 +278,7 @@ export default {
           ShapeUpload(formdata).then((res) => {
             if (res.success) {
               this.fileDataID = res.data.id;
-              this.model.xzmj = (res.data.area / 1000000).toFixed(2);
+              this.model.xzmj = (res.data.area * 0.0015).toFixed(2);
               this.model.xzfw = res.data.id;
               this.$message({
                 message: "绘制成功!",