Browse Source

(*)培训资源储存库功能权限控制

master
zmh 2 years ago
parent
commit
1a9f49e85c
  1. 25
      web/client/src/sections/humanAffairs/containers/resourceRepository.jsx

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

@ -62,17 +62,17 @@ const ResourceRepository = (props) => {
} }
{ {
isAuthorized('DELETETRAININGMATERIALS')?currentSelect.includes("公司培训资料") && isAuthorized('DELETETRAININGMATERIALS') ? currentSelect.includes("公司培训资料") &&
<Popconfirm <Popconfirm
style={{ minWidth: "max-content" }} style={{ minWidth: "max-content" }}
title="提示" title="提示"
content="确认删除该文件?" content="确认删除该文件?"
onConfirm={() => { handleDelFile(record.id) }} onConfirm={() => { handleDelFile(record.id) }}
position={"leftBottom"} position={"leftBottom"}
> >
<a style={{ cursor: 'pointer' }}>删除</a> <a style={{ cursor: 'pointer' }}>删除</a>
</Popconfirm>:'' </Popconfirm> : ''
} }
</Space> </Space>
</div> </div>
} }
@ -84,7 +84,7 @@ const ResourceRepository = (props) => {
const key = data.key.split('/'); const key = data.key.split('/');
return (<div> return (<div>
<Tooltip content={label}><span >{label.length > 7 ? label.substring(0, 7) + '...' : label}</span></Tooltip> <Tooltip content={label}><span >{label.length > 7 ? label.substring(0, 7) + '...' : label}</span></Tooltip>
{true == data.operation ? {true == data.operation && isAuthorized('FOLDERMANAGEMENT') ?
<span className='tree-icon'> <span className='tree-icon'>
<IconEditStroked size='default' onClick={() => handleFolderClick(child ? '编辑' : '编辑子', !child, key[1], key[2] || undefined)} /> <IconEditStroked size='default' onClick={() => handleFolderClick(child ? '编辑' : '编辑子', !child, key[1], key[2] || undefined)} />
<Popconfirm <Popconfirm
@ -247,7 +247,6 @@ const ResourceRepository = (props) => {
{ {
isAuthorized('FOLDERMANAGEMENT') ? <Button theme='solid' type='primary' onClick={() => handleFolderClick("新建", false)}>新建文件夹</Button> : '' isAuthorized('FOLDERMANAGEMENT') ? <Button theme='solid' type='primary' onClick={() => handleFolderClick("新建", false)}>新建文件夹</Button> : ''
} }
<Button theme='solid' type='primary' onClick={() => handleFolderClick("新建", false)}>新建文件夹</Button>
<br /> <br />
<Input suffix={<IconSearch />} showClear onChange={v => ref.current.search(v)} placeholder="请输入"></Input> <Input suffix={<IconSearch />} showClear onChange={v => ref.current.search(v)} placeholder="请输入"></Input>
<Tree <Tree

Loading…
Cancel
Save