|
...
|
...
|
@@ -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),
|
...
|
...
|
|