Browse Source

(fixed)7538 删除文件提示显示优化

master
周沫沫历险记 2 years ago
parent
commit
dd1fffd791
  1. 2
      web/client/src/sections/humanAffairs/containers/resourceRepository.jsx
  2. 2
      web/client/src/sections/humanAffairs/style.less

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

@ -59,9 +59,11 @@ const ResourceRepository = (props) => {
<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("公司培训资料") && {currentSelect.includes("公司培训资料") &&
<Popconfirm <Popconfirm
style={{ minWidth: "max-content" }}
title="提示" title="提示"
content="确认删除该文件?" content="确认删除该文件?"
onConfirm={() => { handleDelFile(record.id) }} onConfirm={() => { handleDelFile(record.id) }}
position={"leftBottom"}
> >
<a style={{ cursor: 'pointer' }}>删除</a> <a style={{ cursor: 'pointer' }}>删除</a>
</Popconfirm>} </Popconfirm>}

2
web/client/src/sections/humanAffairs/style.less

@ -30,6 +30,7 @@
-webkit-transition: opacity 0.2s; -webkit-transition: opacity 0.2s;
} }
} }
.semi-tree-option-list-block .semi-tree-option { .semi-tree-option-list-block .semi-tree-option {
.tree-icon { .tree-icon {
padding-left: 6px; padding-left: 6px;
@ -56,7 +57,6 @@
font-size: 14px; font-size: 14px;
} }
} }
// .semi-input-wrapper { // .semi-input-wrapper {
// margin-bottom: 20px; // margin-bottom: 20px;
// } // }

Loading…
Cancel
Save