| | |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | console.log(params) |
| | | this.loading = true |
| | | var datas = this.$route.query.id |
| | | params.landId = datas |
| | | params['tenantId'] = this.userInfo.tenant_id |
| | | params['farmId'] = this.$farmId |
| | | console.log(params) |
| | | if (this.landId) { |
| | | params['landId'] = this.landId |
| | | } |
| | |
| | | this.landUnit = this.$route.query.landUnit |
| | | // this.form = res.data.data; |
| | | this.usePolygons = this.$route.query.landRange |
| | | .split("POLYGON((")[1] |
| | | .split("))")[0] |
| | | // .split("POLYGON((")[1] |
| | | // .split("))")[0] |
| | | .split(",") |
| | | } |
| | | } |
| | |
| | | } |
| | | }) |
| | | |
| | | this.plotPlantBreed = arr |
| | | arr.forEach((e)=>{ |
| | | e.area = e.area.toFixed(3) |
| | | }) |
| | | |
| | | this.plotPlantBreed = arr |
| | | |
| | | this.loading = false |
| | | |