| | |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo","$farmId"]), |
| | | }, |
| | | created () { |
| | | //获取种样品列表 |
| | |
| | | methods: { |
| | | //获取种养品列表 |
| | | getFarmPlantList (page, params = {}) { |
| | | params['farmId'] = this.userInfo.farmId |
| | | params['farmId'] = this.$farmId |
| | | params['status'] = 1 |
| | | this.loading = true |
| | | getList( |
| | | page.currentPage, |
| | |
| | | }, |
| | | //获取地块列表 |
| | | getLandList (page, params = {}) { |
| | | params['farmId'] = this.userInfo.farmId |
| | | params['farmId'] = this.$farmId |
| | | params['tenantId'] = this.userInfo.tenant_id |
| | | this.loading = true |
| | | getLandList( |
| | |
| | | //获取农场信息 |
| | | getFarmInfo () { |
| | | var that = this |
| | | getDetails(this.userInfo.farmId).then(res => { |
| | | getDetails(this.$farmId).then(res => { |
| | | that.farmInfo = res.data.data |
| | | }) |
| | | }, |
| | | //获取统计面积信息 |
| | | getLandCount () { |
| | | selectCount(this.userInfo.farmId).then(res => { |
| | | selectCount(this.$farmId).then(res => { |
| | | this.landAreaInfo = res.data.data |
| | | }) |
| | | }, |
| | | //获取地块轮廓统计信息 |
| | | getLandIsAreaStatistic () { |
| | | getLandIsAreaStatistic(this.userInfo.farmId).then(res => { |
| | | getLandIsAreaStatistic(this.$farmId).then(res => { |
| | | console.log(res) |
| | | this.landIsAreaStatistic = res.data.data |
| | | }) |