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
0c74811a
Commit
0c74811a
authored
May 23, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主数据资产隐藏字段级资产目录
parent
f357bfc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
15 deletions
+31
-15
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+16
-13
AttributeMaintain.jsx
src/view/Manage/AssetManage/Component/AttributeMaintain.jsx
+15
-2
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
0c74811a
...
...
@@ -1510,20 +1510,22 @@ const AssetAction = (props) => {
编辑
</Button>
}
<Button
{
((reference!==AssetDraftReference)||(reference===AssetDraftReference&&assets?.templateType!=='mdg')) && <Button
onClick={() => {
if (metadata?.metadataTableId) {
setAttributeMaintainParam({
visible: true,
metadataId: metadata?.metadataTableId
});
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}}
>
字段级维护
</Button>
if (metadata?.metadataTableId) {
setAttributeMaintainParam({
visible: true,
metadataId: metadata?.metadataTableId
});
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}}
>
字段级维护
</Button>
}
</React.Fragment>
}
<Input size="middle"
...
...
@@ -1573,6 +1575,7 @@ const AssetAction = (props) => {
<AttributeMaintain
visible={attributeMaintainParam.visible}
metadataId={attributeMaintainParam.metadataId}
asset={assets}
reference={reference}
onCancel={onAttributeMaintainCancel}
onChange={onAttributeMaintainChange}
...
...
src/view/Manage/AssetManage/Component/AttributeMaintain.jsx
View file @
0c74811a
...
...
@@ -9,7 +9,7 @@ import download from '../../../../util/download';
import
{
AssetDraftReference
,
AssetManageReference
}
from
'../../../../util/constant'
;
const
FC
=
(
props
)
=>
{
const
{
onCancel
,
onSuccess
,
visible
,
metadataId
,
onChange
,
reference
}
=
props
;
const
{
onCancel
,
onSuccess
,
visible
,
metadataId
,
asset
,
onChange
,
reference
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
catalogId
,
setCatalogId
]
=
useState
(
'1'
);
...
...
@@ -84,6 +84,11 @@ const FC = (props) => {
]
useEffect
(()
=>
{
setCatalogId
((
asset
?.
templateType
===
'mdg'
)?
'2'
:
'1'
)
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
asset
])
useEffect
(()
=>
{
if
(
visible
)
{
getLogs
();
}
...
...
@@ -95,11 +100,19 @@ const FC = (props) => {
return
[{
title
:
'字段级资产目录'
,
key
:
'1'
}]
}
if
(
asset
?.
templateType
===
'mdg'
)
{
return
[
{
title
:
'映射关系'
,
key
:
'2'
},
]
}
return
[
{
title
:
'字段级资产目录'
,
key
:
'1'
},
{
title
:
'映射关系'
,
key
:
'2'
},
]
},
[
reference
])
},
[
reference
,
asset
])
const
getLogs
=
()
=>
{
setLoading
(
true
);
...
...
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