From 2c7eff567461cbbc95179e0bb86254e576dc7698 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Sat, 03 Sep 2022 16:07:57 +0800
Subject: [PATCH] 取消农场地图显示,划分地块根据农场经纬度定位
---
src/views/land/landAdd.vue | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/views/land/landAdd.vue b/src/views/land/landAdd.vue
index 949b46c..6664737 100644
--- a/src/views/land/landAdd.vue
+++ b/src/views/land/landAdd.vue
@@ -22,7 +22,7 @@
<script>
import { mapGetters } from "vuex";
-import { getFarmList } from "@/api/farm/farm";
+import { getFarmList,getDetail } from "@/api/farm/farm";
import { getDeptTree } from "@/api/system/dept";
import { add } from "@/api/land/land";
import website from "@/config/website";
@@ -143,12 +143,12 @@
landUrl: "",
polygon: [],
area: "",
+ farmInfo:{},
visible: false,
};
},
created() {
- this.url =
- this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage";
+
},
computed: {
...mapGetters([
@@ -217,6 +217,15 @@
this.form.landArea = 0
this.visible = true;
this.form.farmId = this.$farmId;
+
+ getDetail(this.form.farmId).then(res=>{
+ this.farmInfo = res.data.data
+ this.url = this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage&longitude="+this.farmInfo.longitude+"&latitude="+this.farmInfo.latitude;
+
+ })
+
+
+
},
// 表单提交
submit(row, done) {
--
Gitblit v1.9.3