完成留言管理功能
This commit is contained in:
@@ -43,26 +43,21 @@ const CommentPage = () => {
|
||||
key: 'id',
|
||||
align: "center"
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'auditStatus',
|
||||
key: 'auditStatus',
|
||||
fixed: 'left',
|
||||
render: (status: number) => status ?
|
||||
<Tag bordered={false} color="processing">通过</Tag>
|
||||
: <Tag bordered={false} color="error">待审核</Tag>
|
||||
},
|
||||
// {
|
||||
// title: '状态',
|
||||
// dataIndex: 'auditStatus',
|
||||
// key: 'auditStatus',
|
||||
// fixed: 'left',
|
||||
// render: (status: number) => status ?
|
||||
// <Tag bordered={false} color="processing">通过</Tag>
|
||||
// : <Tag bordered={false} color="error">待审核</Tag>
|
||||
// },
|
||||
{
|
||||
title: '名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: '邮箱',
|
||||
dataIndex: 'email',
|
||||
key: 'email',
|
||||
},
|
||||
{
|
||||
title: '内容',
|
||||
dataIndex: 'content',
|
||||
@@ -73,6 +68,12 @@ const CommentPage = () => {
|
||||
setIsModalOpen(true)
|
||||
}}>{text}</span>
|
||||
},
|
||||
{
|
||||
title: '邮箱',
|
||||
dataIndex: 'email',
|
||||
key: 'email',
|
||||
render: (text: string) => text ? text : '暂无邮箱',
|
||||
},
|
||||
{
|
||||
title: '网站',
|
||||
dataIndex: 'url',
|
||||
|
||||
Reference in New Issue
Block a user