|
@@ -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: "绘制成功!",
|