forked from Gitlink/forgeplus-react
后台已发布成果列表增加浏览数、附件下载数,删除密文浏览数字段
This commit is contained in:
parent
a1dc4e5f4d
commit
20353f93b0
|
@ -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>;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue