| | |
| | | label: '所属部门', |
| | | prop: 'deptId', |
| | | type: 'tree', |
| | | multiple: true, |
| | | multiple: false, |
| | | dicData: [], |
| | | // props: { |
| | | // label: 'title', |
| | |
| | | } |
| | | } |
| | | |
| | | row.deptId = func.join(row.deptId) |
| | | // row.deptId = func.join(row.deptId) |
| | | row.roleId = func.join(row.roleId) |
| | | row.postId = func.join(row.postId) |
| | | row.name = row.realName |
| | |
| | | } |
| | | } |
| | | |
| | | row.deptId = func.join(row.deptId) |
| | | // row.deptId = func.join(row.deptId) |
| | | row.roleId = func.join(row.roleId) |
| | | row.postId = func.join(row.postId) |
| | | row.name = row.realName |
| | |
| | | if (['edit', 'view'].includes(type)) { |
| | | getUser(this.form.id).then(res => { |
| | | this.form = res.data.data |
| | | if (this.form.hasOwnProperty('deptId')) { |
| | | this.form.deptId = func.split(this.form.deptId) |
| | | } |
| | | // if (this.form.hasOwnProperty('deptId')) { |
| | | // this.form.deptId = func.split(this.form.deptId) |
| | | // } |
| | | if (this.form.hasOwnProperty('roleId')) { |
| | | this.form.roleId = func.split(this.form.roleId) |
| | | } |