后台已发布成果列表增加浏览数、附件下载数,删除密文浏览数字段

This commit is contained in:
谢思 2022-12-28 15:09:25 +08:00
parent a1dc4e5f4d
commit 20353f93b0
1 changed files with 14 additions and 6 deletions

View File

@ -147,7 +147,10 @@ const NoticeList = Form.create()(forwardRef(({ form, match, history, current_use
title: '成果名称',
dataIndex: 'title',
key: 'title',
width: '20%'
width: '20%',
render: (text, record) => {
return <span>{isChecked == 1 ? <Link to={`/achievement/noticeDetail/${record.id}`}>{text}</Link> : text}</span>;
}
},
{
title: '发布单位',
@ -181,12 +184,17 @@ const NoticeList = Form.create()(forwardRef(({ form, match, history, current_use
key: 'publishDate',
dataIndex: 'publishDate',
});
columns.splice(4, 0, {
title: '密文浏览数',
key: 'requestViewCount',
dataIndex: 'requestViewCount',
columns.splice(6, 0, {
title: '浏览数',
key: 'visits',
dataIndex: 'visits'
});
columns.splice(7, 0, {
title: '附件下载数',
key: 'attachmentDownloadCount',
dataIndex: 'attachmentDownloadCount',
render: (text, record) => {
return <span className={`${text > 0 ? 'link' : ''}`} onClick={() => { text > 0 && history.push(`/managements/achievement/reader/${record.id}`) }}>{text}</span>;
return <span>{text ? text : '无附件'}</span>;
}
});
}