forked from Gitlink/forgeplus-react
我的评审任务附件下载issue
This commit is contained in:
parent
4e7d47a43f
commit
ef8aef09ac
|
@ -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,
|
||||
|
|
|
@ -102,5 +102,11 @@
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.link{
|
||||
color: #4154f1;
|
||||
&:hover{
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue