我的评审任务附件下载issue

This commit is contained in:
unknown 2022-01-17 16:25:47 +08:00
parent 4e7d47a43f
commit ef8aef09ac
2 changed files with 9 additions and 2 deletions

View File

@ -65,7 +65,7 @@ function ReviewTasks({ showNotification, match, history, current_user }) {
className: 'text-tooltip',
render: (text, record) => {
return text && text.map(item => {
return <a key={item.id} className="link" onClick={() => { downFile(item.id) }}>{item.fileName}</a>
return <p key={item.id} className="link" onClick={() => { downFile(item.id) }}>{item.fileName}</p>
})
}
},
@ -169,6 +169,7 @@ function ReviewTasks({ showNotification, match, history, current_user }) {
let dataArr = [];
if (data && Array.isArray(data.rows)) {
for (const item of data.rows) {
console.log(item);
dataArr.push({
comments: "",
expertId: current_user.expertId,
@ -179,7 +180,7 @@ function ReviewTasks({ showNotification, match, history, current_user }) {
gradesThree: '',
gradesTwo: '',
opsContent: item.paperDetail && item.paperDetail.content,
opsFiles: item.paperDetail && item.paperDetail.busiAttachments && item.paperDetail.busiAttachments[0].id,
opsFiles: item.paperDetail && item.paperDetail.files,
opsFilesAttachments: item.paperDetail && item.paperDetail.busiAttachments,
opsId: item.id,
opsParentId: containerId,

View File

@ -102,5 +102,11 @@
overflow: hidden;
text-overflow: ellipsis;
}
.link{
color: #4154f1;
&:hover{
opacity: 0.8;
}
}
}
}