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