From fec7909e8552e98c60f3e14efc7d208e109dc4f8 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 26 Aug 2022 11:07:41 +0800
Subject: [PATCH] 增加秧苗
---
src/views/land/cs.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/views/land/cs.vue b/src/views/land/cs.vue
index 8027a65..abd1538 100644
--- a/src/views/land/cs.vue
+++ b/src/views/land/cs.vue
@@ -80,7 +80,7 @@
<div class="text">
<div class="land-name">{{ item.landName }}</div>
<div class="land-area">
- <div class="box">{{ item.landArea>10000?(item.landArea/10000).toFixed(2)+"万":item.landArea}} {{ item.dica }}</div>
+ <div class="box">{{ item.landArea}} {{ item.dica }}</div>
</div>
</div>
</div>
@@ -93,6 +93,7 @@
import { mapGetters } from "vuex"
import { getList } from "@/api/land/land"
import landAdd from "./landAdd"
+import fixed from "@/util/mathHandler"
export default {
components: {
landAdd,
@@ -201,6 +202,9 @@
const data = res.data.data
this.page.total = data.total
this.farmPlanList = data.records
+ this.farmPlanList.forEach((e)=>{
+ e.landArea = fixed.fixedNum(e.landArea)
+ })
})
},
//进入地图模式
--
Gitblit v1.9.3