diff --git a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx index e139e1c..664cbc4 100644 --- a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx +++ b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx @@ -62,17 +62,17 @@ const ResourceRepository = (props) => { } { - isAuthorized('DELETETRAININGMATERIALS')?currentSelect.includes("公司培训资料") && - { handleDelFile(record.id) }} - position={"leftBottom"} - > - 删除 - :'' - } + isAuthorized('DELETETRAININGMATERIALS') ? currentSelect.includes("公司培训资料") && + { handleDelFile(record.id) }} + position={"leftBottom"} + > + 删除 + : '' + } } @@ -84,7 +84,7 @@ const ResourceRepository = (props) => { const key = data.key.split('/'); return (
{label.length > 7 ? label.substring(0, 7) + '...' : label} - {true == data.operation ? + {true == data.operation && isAuthorized('FOLDERMANAGEMENT') ? handleFolderClick(child ? '编辑' : '编辑子', !child, key[1], key[2] || undefined)} /> { { isAuthorized('FOLDERMANAGEMENT') ? : '' } -
} showClear onChange={v => ref.current.search(v)} placeholder="请输入">