Browse Source

(*)培训资源库列表删除增加二次确认框

master
周沫沫历险记 2 years ago
parent
commit
77e5a1b990
  1. 9
      web/client/src/sections/humanAffairs/containers/resourceRepository.jsx

9
web/client/src/sections/humanAffairs/containers/resourceRepository.jsx

@ -57,7 +57,14 @@ const ResourceRepository = (props) => {
return <div style={{ color: "#1890FF" }}> return <div style={{ color: "#1890FF" }}>
<Space> <Space>
<a href={'/_file-server/' + record.attachPath + '?filename=' + encodeURIComponent(record.fileName + record.fileType)}>下载</a> <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> </Space>
</div> </div>
} }

Loading…
Cancel
Save