Commit 93358566 by 和金晶

按需屏蔽多余功能

parent 34c70bf5
......@@ -303,28 +303,28 @@ const ModelTable = (props) => {
)
}
},
{
name:'标签',
key:'tag',
width:360,
className: 'table-tag-cell',
formatter(props) {
return (
props.row?.state?.id === '4' ? <TagCell
id={props.row?.id}
type='model'
tags={resoureTagMap?.[props.row?.id]}
onChange={(val) => {
setResourceTagMap((prevResourceTagMap) => {
return produce(prevResourceTagMap||{}, (draft) => {
draft[props.row?.id] = val
})
})
}}
/> : null
)
}
}
// {
// name:'标签',
// key:'tag',
// width:360,
// className: 'table-tag-cell',
// formatter(props) {
// return (
// props.row?.state?.id === '4' ? <TagCell
// id={props.row?.id}
// type='model'
// tags={resoureTagMap?.[props.row?.id]}
// onChange={(val) => {
// setResourceTagMap((prevResourceTagMap) => {
// return produce(prevResourceTagMap||{}, (draft) => {
// draft[props.row?.id] = val
// })
// })
// }}
// /> : null
// )
// }
// }
];
const forkCol = {
......@@ -797,7 +797,7 @@ const ModelTable = (props) => {
>
模型对比
</PermissionRcItem>
<PermissionRcItem
{/* <PermissionRcItem
id='metadata-compare'
defaultPermission={true}
onClick={handleItemClick}
......@@ -828,7 +828,7 @@ const ModelTable = (props) => {
>
权限共享
</PermissionRcItem>
}
} */}
{
view === 'branch' && <PermissionRcItem
id="viewBaselineModel"
......@@ -862,7 +862,7 @@ const ModelTable = (props) => {
);
})
}
{
{/* {
currentItem?.deployable && <PermissionRcItem
id='createTable'
onClick={handleItemClick}
......@@ -871,7 +871,7 @@ const ModelTable = (props) => {
>
建表
</PermissionRcItem>
}
} */}
</RcMenu>
......
......@@ -26,10 +26,10 @@ export const viewModes = [
key: 'state',
name: '状态视角'
},
{
key: 'branch',
name: '项目视角'
}
// {
// key: 'branch',
// name: '项目视角'
// }
];
const ModelTree = (props) => {
......@@ -667,7 +667,7 @@ const ModelTree = (props) => {
<ReloadOutlined className='default' onClick={refresh} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
{
{/* {
(viewSelectedKey==='dir'&&isCatalogAdmin) && !isSetRootId && (
<Dropdown overlay={syncMenu} placement="bottomLeft">
<Tooltip title="同步目录">
......@@ -675,15 +675,15 @@ const ModelTree = (props) => {
</Tooltip>
</Dropdown>
)
}
} */}
{
{/* {
(viewSelectedKey==='dir'&&isCatalogAdmin) && isSetRootId && (
<Tooltip title="同步目录" className='ml-2'>
<SyncOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} onClick={sync} />
</Tooltip>
)
}
} */}
{
(viewSelectedKey==='dir'&&!isCatalogAdmin) && <React.Fragment>
......
......@@ -225,7 +225,7 @@ export function TagSelect({ options, onChange }) {
return (
<React.Fragment>
<Select
{/* <Select
mode='multiple'
placeholder='请选择标签'
tagRender={(props) => {
......@@ -256,7 +256,7 @@ export function TagSelect({ options, onChange }) {
onChange?.(newOptions)
}}
maxTagCount='responsive'
/>
/> */}
<TagSelectPopup
value={options}
......
......@@ -760,7 +760,7 @@ class Model extends React.Component {
导出
</PermissionButton>
<PermissionButton
{/* <PermissionButton
defaultPermission={canExportInfo}
tip={(selectModelerIds||[]).length===0?'请先选择模型':''}
onClick={() => {
......@@ -769,7 +769,7 @@ class Model extends React.Component {
disabled={(selectModelerIds||[]).length===0}
>
导出模型信息
</PermissionButton>
</PermissionButton> */}
<PermissionButton
defaultPermission={canStartFlow}
......@@ -811,7 +811,7 @@ class Model extends React.Component {
删除
</PermissionButton>
{
{/* {
currentView !== 'branch' && <Tooltip title={this.state.canBatchAddTag?((selectModelerIds||[]).length===0?'请先选择已发布的模型':''):''}>
<Button
onClick={() => {
......@@ -827,7 +827,7 @@ class Model extends React.Component {
添加标签
</Button>
</Tooltip>
}
} */}
<Button onClick={this.onVisibleColSettingClick}>可见列设置</Button>
</Space>
......
......@@ -91,9 +91,9 @@ const ModelConfig = () => {
<TabPane tab='分区配置' key='5'>
<PartitionCURD />
</TabPane>
<TabPane tab='评审提示语设置' key='6'>
{/* <TabPane tab='评审提示语设置' key='6'>
<ReviewTipConfig />
</TabPane>
</TabPane> */}
</Tabs>
</Spin>
</div>
......
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