| | |
| | | |
| | | <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"; |
| | |
| | | landUrl: "", |
| | | polygon: [], |
| | | area: "", |
| | | farmInfo:{}, |
| | | visible: false, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.url = |
| | | this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage"; |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | |
| | | 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) { |