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
a75c0f44
Commit
a75c0f44
authored
Oct 15, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
元数据逆向schema未在选取目录范围
parent
24638815
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
ImportModal.jsx
src/view/Manage/Model/Component/ImportModal.jsx
+16
-1
select-asset.jsx
src/view/Manage/Model/Component/select-asset.jsx
+15
-0
No files found.
src/view/Manage/Model/Component/ImportModal.jsx
View file @
a75c0f44
...
...
@@ -7,7 +7,7 @@ import ImportExcelCopy from './ImportExcelCopy';
import
ImportDDL
from
'./ImportDDL'
;
import
SelectAsset
from
'./select-asset'
;
import
{
dispatchLatest
}
from
'../../../../model'
;
import
{
dispatchLatest
,
dispatch
}
from
'../../../../model'
;
import
{
isSzseEnv
}
from
'../../../../util'
;
import
{
AppContext
}
from
'../../../../App'
;
import
IframeDrawer
from
'../../ModelConfig/Component/IframeDrawer'
;
...
...
@@ -105,12 +105,27 @@ const ImportModal = (props) => {
message
:
'data-govern-show-select-metadata'
,
data
:
{
cb
:
(
val
)
=>
{
dispatch
({
type
:
'datamodel.getDraftUsingMetadataId'
,
payload
:
{
params
:
{
dataCatalogId
:
catalogId
,
},
data
:
{
metadataTableId
:
val
,
modelerModelingConstraint
:
null
,
easyDataModelerModelingTemplate
:
{},
}
},
callback
:
data
=>
{
setIframeDrawerParams
({
visible
:
true
,
title
:
'新增模型'
,
url
:
`/data-govern/data-model-action?
${
Action
}
=add&
${
MetadataId
}
=
${
val
}
&
${
CatalogId
}
=
${
catalogId
??
''
}
`,
})
}
});
}
}
})
}
...
...
src/view/Manage/Model/Component/select-asset.jsx
View file @
a75c0f44
...
...
@@ -44,11 +44,26 @@ const FC = ({ visible, catalogId, onCancel }) => {
console
.
log
(
'asset'
,
asset
)
const
metadataTableId
=
asset
[
'资产项'
].
metadataTableId
if
(
metadataTableId
)
{
dispatch
({
type
:
'datamodel.getDraftUsingMetadataId'
,
payload
:
{
params
:
{
dataCatalogId
:
catalogId
,
},
data
:
{
metadataTableId
:
metadataTableId
,
modelerModelingConstraint
:
null
,
easyDataModelerModelingTemplate
:
{},
}
},
callback
:
data
=>
{
setIframeDrawerParams
({
visible
:
true
,
title
:
'新增模型'
,
url
:
`/data-govern/data-model-action?
${
Action
}
=add&
${
MetadataId
}
=
${
metadataTableId
}
&
${
CatalogId
}
=
${
catalogId
??
''
}
`,
})
}
});
} else {
showMessage('warn', '选中资产没有关联元数据')
}
...
...
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