| | |
| | | trigger: "click" |
| | | }] |
| | | }, |
| | | // { |
| | | // label: "所属部门", |
| | | // prop: "deptId", |
| | | // type: "tree", |
| | | // multiple: true, |
| | | // dicData: [], |
| | | // props: { |
| | | // label: "title" |
| | | // }, |
| | | // checkStrictly: true, |
| | | // slot: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请选择所属部门", |
| | | // trigger: "click" |
| | | // }] |
| | | // }, |
| | | { |
| | | label: "所属部门", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | // multiple: true, |
| | | dicData: [], |
| | | props: { |
| | | label: "title" |
| | | }, |
| | | checkStrictly: true, |
| | | slot: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择所属部门", |
| | | trigger: "click" |
| | | }] |
| | | }, |
| | | // { |
| | | // label: "所属岗位", |
| | | // prop: "postId", |
| | |
| | | const column = this.findObject(this.option.group, "roleId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | // getDeptTree(tenantId).then(res => { |
| | | // const column = this.findObject(this.option.group, "deptId"); |
| | | // column.dicData = res.data.data; |
| | | // }); |
| | | getDeptTree(tenantId).then(res => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | // getPostList(tenantId).then(res => { |
| | | // const column = this.findObject(this.option.group, "postId"); |
| | | // column.dicData = res.data.data; |
| | |
| | | rowSave(row, done, loading) { |
| | | row['tenantId'] = "000000" |
| | | row['userType'] = 1 |
| | | row['deptId'] = '1123598813738675201' |
| | | // row.deptId = func.join(row.deptId); |
| | | row.deptId = func.join(row.deptId); |
| | | row.roleId = func.join(row.roleId); |
| | | // row.postId = func.join(row.postId); |
| | | add(row).then(() => { |
| | |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | row['tenantId'] = "000000" |
| | | row['deptId'] = '1123598813738675201' |
| | | row['userType'] = 1 |
| | | // row.deptId = func.join(row.deptId); |
| | | row.deptId = func.join(row.deptId); |
| | | row.roleId = func.join(row.roleId); |
| | | // row.postId = func.join(row.postId); |
| | | update(row).then(() => { |