| | |
| | | this.title = title |
| | | this.list = [] |
| | | this.visible = true |
| | | this.form = { |
| | | id: null, |
| | | name: '', |
| | | idcardNo: '', |
| | | solutionsStatus: '' |
| | | } |
| | | this.form = target |
| | | // 新建 |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | return |
| | | } |
| | | // 编辑 |
| | | this.$nextTick(() => { |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | }) |
| | | this.getList() |
| | | }, |
| | | expr() { |
| | |
| | | }, |
| | | getList() { |
| | | findList({ |
| | | memberId: this.form.id |
| | | memberId: this.form.id || -1 |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.list = res |