提交 afdf3877 作者: ZhangLingKun

功能:帖子列表点赞数字,统计数据展示

上级 1a0e6d84
...@@ -19,6 +19,7 @@ export type forumListType = InterListFunction< ...@@ -19,6 +19,7 @@ export type forumListType = InterListFunction<
userAccountId: number; userAccountId: number;
dynamicPublishTime: string; dynamicPublishTime: string;
checkStatus: 0 | 1 | 2; checkStatus: 0 | 1 | 2;
likesCount: number;
} }
>; >;
//论坛-删除 //论坛-删除
...@@ -146,8 +147,8 @@ export type updateGambitType = InterFunction< ...@@ -146,8 +147,8 @@ export type updateGambitType = InterFunction<
export type countGambitType = InterFunction< export type countGambitType = InterFunction<
any, any,
{ {
failAuditSum: number; failDynamicAuditSum: number;
passAuditSum: number; passDynamicAuditSum: number;
unAuditedSum: number; unDynamicAuditSum: number;
} }
>; >;
...@@ -64,6 +64,12 @@ const DynamicList = () => { ...@@ -64,6 +64,12 @@ const DynamicList = () => {
), ),
}, },
{ {
title: '点赞数',
align: 'center',
dataIndex: 'likesCount',
render: (text) => text || 0,
},
{
title: '作者(用户名称)', title: '作者(用户名称)',
align: 'center', align: 'center',
render: (_text: string, record) => ( render: (_text: string, record) => (
...@@ -271,15 +277,15 @@ const DynamicList = () => { ...@@ -271,15 +277,15 @@ const DynamicList = () => {
<div className='data-statistics'> <div className='data-statistics'>
<div> <div>
<span>审核通过:</span> <span>审核通过:</span>
<span>{countGambit?.passAuditSum || 0}</span> <span>{countGambit?.passDynamicAuditSum || 0}</span>
</div> </div>
<div> <div>
<span>待审核:</span> <span>待审核:</span>
<span>{countGambit?.unAuditedSum || 0}</span> <span>{countGambit?.unDynamicAuditSum || 0}</span>
</div> </div>
<div> <div>
<span>审核不通过:</span> <span>审核不通过:</span>
<span>{countGambit?.failAuditSum || 0}</span> <span>{countGambit?.failDynamicAuditSum || 0}</span>
</div> </div>
</div> </div>
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论