Commit 93358566 by 和金晶

按需屏蔽多余功能

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