| | |
| | | |
| | | <div class="farm-land"> |
| | | <div class="title"> |
| | | <span>地块 · {{ this.pageLand.total }}种</span> |
| | | <span>地块 · {{ this.pageLand.total }}个</span> |
| | | </div> |
| | | <div class="content"> |
| | | <div |
| | |
| | | data () { |
| | | return { |
| | | page: { |
| | | pageSize: 10, |
| | | pageSize: 100, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | pageLand: { |
| | | pageSize: 10, |
| | | pageSize: 100, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo","$farmId"]), |
| | | ...mapGetters(["userInfo", "$farmId"]), |
| | | }, |
| | | created () { |
| | | //获取种样品列表 |
| | |
| | | } |
| | | }) |
| | | |
| | | this.plotPlantBreed = arr |
| | | arr.forEach((e)=>{ |
| | | e.area = e.area.toFixed(3) |
| | | }) |
| | | |
| | | this.plotPlantBreed = arr |
| | | |
| | | this.loading = false |
| | | |
| | |
| | | }, |
| | | //返回上一页 |
| | | goToBack () { |
| | | this.$EventBus.$emit("getFarmObj", this.farmInfo); |
| | | this.$router.go(-1) |
| | | }, |
| | | //获取农场信息 |
| | |
| | | |
| | | // 地块定位 |
| | | setCenter (item) { |
| | | this.$refs.plotMap.setPlotCenter(item.landName) |
| | | this.$refs.plotMap.setPlotCenter(item) |
| | | }, |
| | | |
| | | plotDetailsPopupShow (params) { |
| | |
| | | } |
| | | |
| | | if (this.$refs.showCP) { |
| | | console.log(1) |
| | | let isSelf = this.$refs.showCP.contains(e.target) |
| | | if (!isSelf) { |
| | | this.plotClickNum = 0 |