From cf9495cfb1424816167586fa985ecdf29a923eea Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 26 Sep 2022 17:25:23 +0800
Subject: [PATCH] 替换原登录页为统一登录页
---
src/views/mapPattern/index.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/views/mapPattern/index.vue b/src/views/mapPattern/index.vue
index 6d67a3e..7350218 100644
--- a/src/views/mapPattern/index.vue
+++ b/src/views/mapPattern/index.vue
@@ -199,7 +199,7 @@
},
computed: {
- ...mapGetters(["userInfo","$farmId"]),
+ ...mapGetters(["userInfo", "$farmId"]),
},
created () {
//获取种样品列表
@@ -255,8 +255,11 @@
}
})
- this.plotPlantBreed = arr
+ arr.forEach((e)=>{
+ e.area = e.area.toFixed(3)
+ })
+ this.plotPlantBreed = arr
this.loading = false
@@ -300,6 +303,7 @@
},
//返回上一页
goToBack () {
+ this.$EventBus.$emit("getFarmObj", this.farmInfo);
this.$router.go(-1)
},
//获取农场信息
@@ -318,7 +322,6 @@
//获取地块轮廓统计信息
getLandIsAreaStatistic () {
getLandIsAreaStatistic(this.$farmId).then(res => {
- console.log(res)
this.landIsAreaStatistic = res.data.data
})
},
@@ -352,7 +355,6 @@
}
if (this.$refs.showCP) {
- console.log(1)
let isSelf = this.$refs.showCP.contains(e.target)
if (!isSelf) {
this.plotClickNum = 0
--
Gitblit v1.9.3