Showing
2 changed files
with
7 additions
and
7 deletions
... | ... | @@ -68,13 +68,13 @@ export default defineComponent({ |
68 | 68 | const roleParams = new RoleOrGroupParam(rowId.value,true,false); |
69 | 69 | findCurrentUserRelation(roleParams).then((result)=>{ |
70 | 70 | Reflect.set(data.record,"roleIds",result); |
71 | + Reflect.set(data.record,"password","******"); | |
72 | + setFieldsValue({ | |
73 | + ...data.record, | |
74 | + }); | |
71 | 75 | }) |
72 | 76 | const groupParams = new RoleOrGroupParam(rowId.value,false,true); |
73 | 77 | checkGroup.value = await findCurrentUserRelation(groupParams); |
74 | - Reflect.set(data.record,"password","******"); | |
75 | - await setFieldsValue({ | |
76 | - ...data.record, | |
77 | - }); | |
78 | 78 | } |
79 | 79 | const deptData = await getDeptList(); |
80 | 80 | await updateSchema([ | ... | ... |
... | ... | @@ -22,21 +22,21 @@ |
22 | 22 | icon: 'clarity:info-standard-line', |
23 | 23 | tooltip: '用户详情', |
24 | 24 | onClick: handleView.bind(null, record), |
25 | - ifShow: record.tenantCode != TenantCodeEnum.SYS_ADMIN_CODE, | |
25 | + ifShow: record.level != 0, | |
26 | 26 | }, |
27 | 27 | { |
28 | 28 | label:'编辑', |
29 | 29 | icon: 'clarity:note-edit-line', |
30 | 30 | tooltip: '编辑', |
31 | 31 | onClick: handleEdit.bind(null, record), |
32 | - ifShow: record.tenantCode != TenantCodeEnum.SYS_ADMIN_CODE, | |
32 | + ifShow: record.level != 0, | |
33 | 33 | }, |
34 | 34 | { |
35 | 35 | label:'删除', |
36 | 36 | icon: 'ant-design:delete-outlined', |
37 | 37 | color: 'error', |
38 | 38 | tooltip: '删除', |
39 | - ifShow: record.tenantCode != TenantCodeEnum.SYS_ADMIN_CODE, | |
39 | + ifShow: record.level != 0, | |
40 | 40 | popConfirm: { |
41 | 41 | title: '是否确认删除', |
42 | 42 | confirm: handleDelete.bind(null, record), | ... | ... |