|
|
@ -57,7 +57,14 @@ const ResourceRepository = (props) => { |
|
|
|
return <div style={{ color: "#1890FF" }}> |
|
|
|
<Space> |
|
|
|
<a href={'/_file-server/' + record.attachPath + '?filename=' + encodeURIComponent(record.fileName + record.fileType)}>下载</a> |
|
|
|
{currentSelect.includes("公司培训资料") && <a style={{ cursor: 'pointer' }} onClick={() => handleDelFile(record.id)}>删除</a>} |
|
|
|
{currentSelect.includes("公司培训资料") && |
|
|
|
<Popconfirm |
|
|
|
title="提示" |
|
|
|
content="确认删除该文件?" |
|
|
|
onConfirm={() => { handleDelFile(record.id) }} |
|
|
|
> |
|
|
|
<a style={{ cursor: 'pointer' }}>删除</a> |
|
|
|
</Popconfirm>} |
|
|
|
</Space> |
|
|
|
</div> |
|
|
|
} |
|
|
|