完成留言管理功能

This commit is contained in:
宇阳
2024-09-28 16:15:10 +08:00
parent 189c30f587
commit de2c20a006
7 changed files with 258 additions and 19 deletions

View File

@@ -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',