|
|
@ -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 |
|
|
|