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
1d026ab4
Commit
1d026ab4
authored
Jul 25, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
46ad1cc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ImportModal.jsx
src/view/Manage/Model/Component/ImportModal.jsx
+4
-3
select-asset.jsx
src/view/Manage/Model/Component/select-asset.jsx
+5
-5
No files found.
src/view/Manage/Model/Component/ImportModal.jsx
View file @
1d026ab4
...
@@ -27,7 +27,8 @@ const ImportModal = (props) => {
...
@@ -27,7 +27,8 @@ const ImportModal = (props) => {
const
[
ddl
,
setDDL
]
=
useState
(
''
);
const
[
ddl
,
setDDL
]
=
useState
(
''
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
const
[
selectAssetParams
,
setSelectAssetParams
]
=
useState
({
const
[
selectAssetParams
,
setSelectAssetParams
]
=
useState
({
visible
:
false
visible
:
false
,
catalogId
:
undefined
,
})
})
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
...
@@ -90,7 +91,7 @@ const ImportModal = (props) => {
...
@@ -90,7 +91,7 @@ const ImportModal = (props) => {
reset
();
reset
();
onCancelByDDL
&&
onCancelByDDL
(
true
,
ddl
);
onCancelByDDL
&&
onCancelByDDL
(
true
,
ddl
);
}
else
if
(
modeKey
===
'asset-import'
)
{
}
else
if
(
modeKey
===
'asset-import'
)
{
setSelectAssetParams
({
visible
:
true
})
setSelectAssetParams
({
visible
:
true
,
catalogId
})
}
}
}
catch
(
errInfo
)
{
}
catch
(
errInfo
)
{
...
@@ -211,7 +212,7 @@ const ImportModal = (props) => {
...
@@ -211,7 +212,7 @@ const ImportModal = (props) => {
<
SelectAsset
<
SelectAsset
{
...
selectAssetParams
}
{
...
selectAssetParams
}
onCancel=
{
()
=>
{
onCancel=
{
()
=>
{
setSelectAssetParams
({
visible
:
false
})
setSelectAssetParams
({
visible
:
false
,
catalogId
:
undefined
})
}
}
}
}
/>
/>
</>
</>
...
...
src/view/Manage/Model/Component/select-asset.jsx
View file @
1d026ab4
...
@@ -8,10 +8,10 @@ import Table from '../../ResizeableTable'
...
@@ -8,10 +8,10 @@ import Table from '../../ResizeableTable'
import
{
dispatch
}
from
'../../../../model'
import
{
dispatch
}
from
'../../../../model'
import
{
AssetItem
}
from
"../../AssetManage/Component/AssetTable"
import
{
AssetItem
}
from
"../../AssetManage/Component/AssetTable"
import
IframeDrawer
from
'../../ModelConfig/Component/IframeDrawer'
;
import
IframeDrawer
from
'../../ModelConfig/Component/IframeDrawer'
;
import
{
Action
,
MetadataId
}
from
"../../../../util/constant"
import
{
Action
,
CatalogId
,
MetadataId
}
from
"../../../../util/constant"
import
{
showMessage
}
from
"../../../../util"
import
{
showMessage
}
from
"../../../../util"
const
FC
=
({
visible
,
onCancel
})
=>
{
const
FC
=
({
visible
,
catalogId
,
onCancel
})
=>
{
const
[
animated
,
setAnimated
]
=
React
.
useState
(
true
)
const
[
animated
,
setAnimated
]
=
React
.
useState
(
true
)
const
[
waiting
,
setWaiting
]
=
React
.
useState
(
false
)
const
[
waiting
,
setWaiting
]
=
React
.
useState
(
false
)
const
[
iframeDrawerParams
,
setIframeDrawerParams
]
=
React
.
useState
({
const
[
iframeDrawerParams
,
setIframeDrawerParams
]
=
React
.
useState
({
...
@@ -47,7 +47,7 @@ const FC = ({ visible, onCancel }) => {
...
@@ -47,7 +47,7 @@ const FC = ({ visible, onCancel }) => {
setIframeDrawerParams
({
setIframeDrawerParams
({
visible
:
true
,
visible
:
true
,
title
:
'新增模型'
,
title
:
'新增模型'
,
url
:
`/data-govern/data-model-action?
${
Action
}
=add&
${
MetadataId
}
=
${
metadataTableId
}
`
,
url
:
`/data-govern/data-model-action?
${
Action
}
=add&
${
MetadataId
}
=
${
metadataTableId
}
&
${
CatalogId
}
=
${
catalogId
??
''
}
`,
})
})
} else {
} else {
showMessage('warn', '选中资产没有关联元数据')
showMessage('warn', '选中资产没有关联元数据')
...
@@ -81,7 +81,7 @@ const FC = ({ visible, onCancel }) => {
...
@@ -81,7 +81,7 @@ const FC = ({ visible, onCancel }) => {
!animated && <Basic ref={basicRef} />
!animated && <Basic ref={basicRef} />
}
}
</Modal>
</Modal>
<
IframeDrawer
{ iframeDrawerParams.visible &&
<IframeDrawer
{...iframeDrawerParams}
{...iframeDrawerParams}
onCancel={() => {
onCancel={() => {
setIframeDrawerParams({
setIframeDrawerParams({
...
@@ -90,7 +90,7 @@ const FC = ({ visible, onCancel }) => {
...
@@ -90,7 +90,7 @@ const FC = ({ visible, onCancel }) => {
url: undefined,
url: undefined,
})
})
}}
}}
/>
/>
}
</>
</>
)
)
}
}
...
...
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