| | |
| | | '$farmId': { |
| | | handler (newName, oldName) { |
| | | // this.farm.id = newName |
| | | this.page.currentPage = 1 |
| | | //地块页面 |
| | | setTimeout(() => { |
| | | this.onLoad() |
| | |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | width="60%" |
| | | :visible.sync="visible" |
| | | top="10vh" |
| | | > |
| | |
| | | that.$emit("refreshOnLoad"); |
| | | that.$refs.form.resetFields(); |
| | | that.form.landUnit = "0"; |
| | | console.log(that.$parent,11) |
| | | that.$parent.onLoad() |
| | | that.visible = false; |
| | | this.$message({ |
| | | type: "success", |
| | |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | width="60%" |
| | | top="10vh" |
| | | :visible.sync="visible" |
| | | > |
| | |
| | | watch: { |
| | | '$farmId':{ |
| | | handler (newName, oldName) { |
| | | this.page.currentPage = 1 |
| | | this.farm.id = newName |
| | | //地块页面 |
| | | this.onLoad(this.page) |
| | |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | width="60%" |
| | | top="10vh" |
| | | :visible.sync="visible" |
| | | > |