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