| | |
| | | ...mapGetters(["userInfo","$farmId"]), |
| | | }, |
| | | created () { |
| | | |
| | | |
| | | this.$EventBus.$on('getFarmObj', (farmObj)=>{ |
| | | // this.$nextTick(() => { |
| | | // this.$EventBus.$emit("setFarmId", farmObj.id); |
| | |
| | | this.$refs.over.initData(data,this.farm.id) |
| | | }) |
| | | }, |
| | | //结束种植 |
| | | // over (id) { |
| | | // var that = this |
| | | // this.$confirm("确定结束当前种植的农产品?", { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // type: "warning", |
| | | // }) |
| | | // .then(() => { |
| | | // const data = { |
| | | // id: id, |
| | | // status: 2, |
| | | // } |
| | | // return update(data) |
| | | // }) |
| | | // .then(() => { |
| | | // that.onLoad() |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }) |
| | | // }) |
| | | // }, |
| | | //圈地 |
| | | land () { |
| | | this.landVisible = true |
| | | this.$nextTick(() => { |