Commit 14847e85 by zhaochengxiang

调整

parent 8e5fcd93
......@@ -130,22 +130,19 @@ const AssetAction = (props) => {
{
title: '操作',
dataIndex: 'action',
width: 150,
width: 170,
render: (_, record) => {
return (reference===AssetManageReference||canEdit) ? <Space>
<Button
type='link'
size='small'
onClick={() => {
setSelectStandardParam({ visible: true, id: record._id });
}}
style={{ padding: 0 }}
>
关联标准
</Button>
{
record.standard?.standardId && <Button
type='link'
size='small'
onClick={() => {
modal.confirm({
......@@ -166,7 +163,6 @@ const AssetAction = (props) => {
}
})
}}
style={{ padding: 0 }}
>
取消关联
</Button>
......
......@@ -735,9 +735,9 @@ const AssetManageTree = (props) => {
<ExportOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
</Dropdown>
<Tooltip title="自定义目录">
{/* <Tooltip title="自定义目录">
<SettingOutlined className='default' onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
</Tooltip> */}
</div>
)}
bordered={false}
......
......@@ -503,6 +503,9 @@ const AssetTree = (props) => {
className={(item.level===1)?'title-color': 'text-color'}
>
{item.text}
{
(item.level!==1||(item.level===1&&item.resourceType!=='custom')) && <span>{` (${item.dataAssetAndSubDirCount})`}</span>
}
</span>
);
......@@ -532,9 +535,9 @@ const AssetTree = (props) => {
<Tooltip title="刷新目录">
<ReloadOutlined className='default' onClick={refreshTree} style={{ fontSize:16,cursor:'pointer',flex:1}} />
</Tooltip>
<Tooltip title="自定义目录">
{/* <Tooltip title="自定义目录">
<SettingOutlined className='default' onClick={customDir} style={{ fontSize:16,cursor:'pointer',flex:1}} />
</Tooltip>
</Tooltip> */}
<div style={{ flex: 3 }}></div>
</div>
}
......
......@@ -188,6 +188,28 @@ const ModelTable = (props) => {
}
},
{
title: 'URI',
dataIndex: 'odata',
ellipsis: true,
width: 170,
render: (text, _, __) => {
return (
<React.Fragment>
{
text ? <div className='flex'>
<Tooltip title={text||''} overlayClassName='tooltip-common'>
<Text ellipsis={true}>
{text||''}
</Text>
</Tooltip>
<Text copyable={{ text }}></Text>
</div> : ''
}
</React.Fragment>
);
}
},
{
title: '路径',
dataIndex: 'path',
width: 120,
......@@ -285,28 +307,6 @@ const ModelTable = (props) => {
);
}
},
{
title: 'URI',
dataIndex: 'odata',
ellipsis: true,
width: 170,
render: (text, _, __) => {
return (
<React.Fragment>
{
text ? <div className='flex'>
<Tooltip title={text||''} overlayClassName='tooltip-common'>
<Text ellipsis={true}>
{text||''}
</Text>
</Tooltip>
<Text copyable={{ text }}></Text>
</div> : ''
}
</React.Fragment>
);
}
},
];
const [ columns, setColumns ] = useState([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment