| | |
| | | }) |
| | | }, |
| | | beforeOpen(done, type) { |
| | | this.initFlag = true; |
| | | const column = this.findObject(this.option.group, "farmId"); |
| | | var passwordColumn = this.findObject(this.option.group,"password"); |
| | | var password2Column = this.findObject(this.option.group,"password2") |
| | | passwordColumn.display = true; |
| | | password2Column.display = true; |
| | | if(type == "add"&& column.dicData == ""){ |
| | | this.form = { |
| | | id:null |
| | | } |
| | | this.form = {id:null} |
| | | this.initData(website.tenantId) |
| | | } |
| | | if (["edit", "view"].includes(type)) { |
| | |
| | | // this.form.postId = this.form.postId.split(","); |
| | | // } |
| | | }); |
| | | }else { |
| | | this.form = { |
| | | id:null |
| | | } |
| | | } |
| | | this.initFlag = true; |
| | | if (type == "add"){ |
| | | if (this.$refs.form){ |
| | | this.$refs.form.resetForm() |
| | | } |
| | | this.form = {id :null } |
| | | } |
| | | done(); |
| | | }, |
| | | currentChange(currentPage) { |