| | |
| | | |
| | | }, |
| | | 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 |
| | | |
| | |
| | | arr.forEach(it => { |
| | | brr.push(it.split(' ')) |
| | | }) |
| | | |
| | | this.$refs.plotMap.addPlotPolygon(brr, item) |
| | | } |
| | | }) |
| | |
| | | }, |
| | | //返回上一页 |
| | | goToBack () { |
| | | this.$EventBus.$emit("getFarmObj", this.farmInfo); |
| | | this.$router.go(-1) |
| | | }, |
| | | //获取农场信息 |
| | |
| | | //获取地块轮廓统计信息 |
| | | getLandIsAreaStatistic () { |
| | | getLandIsAreaStatistic(this.$farmId).then(res => { |
| | | console.log(res) |
| | | this.landIsAreaStatistic = res.data.data |
| | | }) |
| | | }, |
| | |
| | | } |
| | | |
| | | if (this.$refs.showCP) { |
| | | console.log(1) |
| | | let isSelf = this.$refs.showCP.contains(e.target) |
| | | if (!isSelf) { |
| | | this.plotClickNum = 0 |