| | |
| | | <!-- 圈地 --> |
| | | <land v-if="landVisible" ref="land"></land> |
| | | <!-- 种养品 --> |
| | | <plant v-if="plantVisible" ref="plant" @refreshOnLoad="onLoad"></plant> |
| | | <plant v-if="plantVisible" ref="plant" @refreshOnLoad="refreshAll"></plant> |
| | | <!-- 农事操作 --> |
| | | <farming v-if="farmingVisible" ref="farming"></farming> |
| | | <!-- 农资入库 --> |
| | |
| | | this.farmList = this.farmList.concat(res.data.data) |
| | | }); |
| | | }, |
| | | refreshAll(){ |
| | | this.getCountStatis () |
| | | //本年农事操作记录 |
| | | this.getFarmingCount() |
| | | //本年农事操作记录,分组 |
| | | this.getFarmingStatis() |
| | | this.StockCount() |
| | | //当前农场种养品种 |
| | | this.onLoad() |
| | | }, |
| | | //农场下拉框change事件 |
| | | farmChange(data) { |
| | | this.farm.id = data |
| | |
| | | }, |
| | | //获取种植中的种养品 |
| | | onLoad () { |
| | | console.log(11111111111) |
| | | var params = { |
| | | status: 1, |
| | | } |