feat: 完成用户管理界面
This commit is contained in:
parent
1793f394bc
commit
8d8792a283
@ -46,39 +46,41 @@ const UsersTable = () => {
|
|||||||
</Space>
|
</Space>
|
||||||
</div>);
|
</div>);
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
title: '邀请信息', dataIndex: 'invite', render: (text, record, index) => {
|
// {
|
||||||
return (<div>
|
// title: '邀请信息', dataIndex: 'invite', render: (text, record, index) => {
|
||||||
<Space spacing={1}>
|
// return (<div>
|
||||||
<Tooltip content={'邀请人数'}>
|
// <Space spacing={1}>
|
||||||
<Tag color="white" size="large">{renderNumber(record.aff_count)}</Tag>
|
// <Tooltip content={'邀请人数'}>
|
||||||
</Tooltip>
|
// <Tag color="white" size="large">{renderNumber(record.aff_count)}</Tag>
|
||||||
<Tooltip content={'邀请总收益'}>
|
// </Tooltip>
|
||||||
<Tag color="white" size="large">{renderQuota(record.aff_history_quota)}</Tag>
|
// <Tooltip content={'邀请总收益'}>
|
||||||
</Tooltip>
|
// <Tag color="white" size="large">{renderQuota(record.aff_history_quota)}</Tag>
|
||||||
<Tooltip content={'邀请人ID'}>
|
// </Tooltip>
|
||||||
{record.inviter_id === 0 ? <Tag color="white" size="large">无</Tag> :
|
// <Tooltip content={'邀请人ID'}>
|
||||||
<Tag color="white" size="large">{record.inviter_id}</Tag>}
|
// {record.inviter_id === 0 ? <Tag color="white" size="large">无</Tag> :
|
||||||
</Tooltip>
|
// <Tag color="white" size="large">{record.inviter_id}</Tag>}
|
||||||
</Space>
|
// </Tooltip>
|
||||||
</div>);
|
// </Space>
|
||||||
}
|
// </div>);
|
||||||
}, {
|
// }
|
||||||
|
// },
|
||||||
|
{
|
||||||
title: '角色', dataIndex: 'role', render: (text, record, index) => {
|
title: '角色', dataIndex: 'role', render: (text, record, index) => {
|
||||||
return (<div>
|
return (<div>
|
||||||
{renderRole(text)}
|
{renderRole(text)}
|
||||||
</div>);
|
</div>);
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: '状态', dataIndex: 'status', render: (text, record, index) => {
|
title: '状态', dataIndex: 'status', render: (text, record, index) => {
|
||||||
return (<div>
|
return (<div>
|
||||||
{record.DeletedAt !== null ? <Tag color="red">已注销</Tag> : renderStatus(text)}
|
{renderStatus(text)}
|
||||||
</div>);
|
</div>);
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
title: '', dataIndex: 'operate', render: (text, record, index) => (<div>
|
|
||||||
{
|
{
|
||||||
record.DeletedAt !== null ? <></> :
|
title: '', dataIndex: 'operate', render: (text, record, index) => (<div>
|
||||||
<>
|
<>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="确定?"
|
title="确定?"
|
||||||
@ -110,8 +112,6 @@ const UsersTable = () => {
|
|||||||
setShowEditUser(true);
|
setShowEditUser(true);
|
||||||
}}>编辑</Button>
|
}}>编辑</Button>
|
||||||
</>
|
</>
|
||||||
|
|
||||||
}
|
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="确定是否要删除此用户?"
|
title="确定是否要删除此用户?"
|
||||||
content="硬删除,此修改将不可逆"
|
content="硬删除,此修改将不可逆"
|
||||||
|
Loading…
Reference in New Issue
Block a user