Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
93358566
Commit
93358566
authored
Dec 25, 2024
by
和金晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按需屏蔽多余功能
parent
34c70bf5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
42 deletions
+42
-42
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+26
-26
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+8
-8
tag-help.jsx
src/view/Manage/Model/Component/tag-help.jsx
+2
-2
index.jsx
src/view/Manage/Model/index.jsx
+4
-4
index.jsx
src/view/Manage/ModelConfig/index.jsx
+2
-2
No files found.
src/view/Manage/Model/Component/ModelTable.jsx
View file @
93358566
...
@@ -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>
...
...
src/view/Manage/Model/Component/ModelTree.jsx
View file @
93358566
...
@@ -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
>
...
...
src/view/Manage/Model/Component/tag-help.jsx
View file @
93358566
...
@@ -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
}
...
...
src/view/Manage/Model/index.jsx
View file @
93358566
...
@@ -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>
...
...
src/view/Manage/ModelConfig/index.jsx
View file @
93358566
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment