|
|
@@ -142,33 +142,6 @@ const roleManager = () => { |
|
|
|
> |
|
|
|
更新 |
|
|
|
</a>); |
|
|
|
if (record.status == 1) { |
|
|
|
arr.push(<a |
|
|
|
disabled={record.code == 'sys_manager_role'} |
|
|
|
style={{ pointerEvents: record.code == 'sys_manager_role' ? 'none' : 'auto' }} |
|
|
|
onClick={() => { |
|
|
|
Enable(record.id).then(r => { |
|
|
|
actionRef.current.reload(); |
|
|
|
}) |
|
|
|
}} |
|
|
|
> |
|
|
|
启用 |
|
|
|
</a>); |
|
|
|
} |
|
|
|
if (record.status == 0) { |
|
|
|
arr.push(<a |
|
|
|
disabled={record.code == 'sys_manager_role'} |
|
|
|
style={{ pointerEvents: record.code == 'sys_manager_role' ? 'none' : 'auto' }} |
|
|
|
onClick={() => { |
|
|
|
Disable(record.id).then(r => { |
|
|
|
actionRef.current.reload(); |
|
|
|
}) |
|
|
|
}} |
|
|
|
> |
|
|
|
禁用 |
|
|
|
</a>); |
|
|
|
} |
|
|
|
|
|
|
|
arr.push( |
|
|
|
<Popconfirm |
|
|
|
title="确认删除吗?" |
|
|
@@ -238,15 +211,6 @@ const roleManager = () => { |
|
|
|
dataIndex: 'remark', |
|
|
|
hideInSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '状态', |
|
|
|
dataIndex: 'status', |
|
|
|
hideInSearch: true, |
|
|
|
valueEnum: { |
|
|
|
0: { text: '启用', status: 'Success' }, |
|
|
|
1: { text: '禁用', status: 'Warning' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '创建时间', |
|
|
|
search: false, |
|
|
|