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
d0cd23c8
Commit
d0cd23c8
authored
Jul 23, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
4b89c83f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+5
-1
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+4
-4
No files found.
src/view/Manage/Model/Component/EditModel.jsx
View file @
d0cd23c8
...
@@ -30,7 +30,7 @@ const EditModel = (props) => {
...
@@ -30,7 +30,7 @@ const EditModel = (props) => {
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
useEffect
(()
=>
{
cons
t
_action
=
getQueryParam
(
Action
,
props
.
location
.
search
);
le
t
_action
=
getQueryParam
(
Action
,
props
.
location
.
search
);
const
_catalogId
=
getQueryParam
(
CatalogId
,
props
.
location
.
search
);
const
_catalogId
=
getQueryParam
(
CatalogId
,
props
.
location
.
search
);
const
_modelerId
=
getQueryParam
(
ModelerId
,
props
.
location
.
search
);
const
_modelerId
=
getQueryParam
(
ModelerId
,
props
.
location
.
search
);
const
_hintsStr
=
getQueryParam
(
Hints
,
props
.
location
.
search
);
const
_hintsStr
=
getQueryParam
(
Hints
,
props
.
location
.
search
);
...
@@ -44,6 +44,10 @@ const EditModel = (props) => {
...
@@ -44,6 +44,10 @@ const EditModel = (props) => {
const
_requireId
=
getQueryParam
(
RequireId
,
props
.
location
.
search
);
const
_requireId
=
getQueryParam
(
RequireId
,
props
.
location
.
search
);
const
_logicId
=
getQueryParam
(
LogicId
,
props
.
location
.
search
);
const
_logicId
=
getQueryParam
(
LogicId
,
props
.
location
.
search
);
if
(
_logicId
)
{
_action
=
'add'
}
let
_hints
=
[];
let
_hints
=
[];
if
((
_hintsStr
||
''
)
!==
''
)
{
if
((
_hintsStr
||
''
)
!==
''
)
{
_hints
=
_hintsStr
.
split
(
','
);
_hints
=
_hintsStr
.
split
(
','
);
...
...
src/view/Manage/Model/Component/ImportAction.jsx
View file @
d0cd23c8
...
@@ -74,12 +74,12 @@ const ImportAction = React.forwardRef((props, ref) => {
...
@@ -74,12 +74,12 @@ const ImportAction = React.forwardRef((props, ref) => {
type
:
'datamodel.getAllConstraints'
,
type
:
'datamodel.getAllConstraints'
,
callback
:
data
=>
{
callback
:
data
=>
{
setConstraints
(
data
);
setConstraints
(
data
);
if
(
logicId
)
{
if
(
action
===
'add'
)
{
conceptualModelCreateDataModel
()
}
else
if
(
action
===
'add'
)
{
// setConstraint(data?.length>0?data[0]:{});
// setConstraint(data?.length>0?data[0]:{});
// setTemplate({});
// setTemplate({});
if
((
hints
||
[]).
length
>
0
)
{
if
(
logicId
)
{
conceptualModelCreateDataModel
()
}
else
if
((
hints
||
[]).
length
>
0
)
{
getDraft
(
data
?.
length
>
0
?
data
[
0
]:{},
{}
,
hints
);
getDraft
(
data
?.
length
>
0
?
data
[
0
]:{},
{}
,
hints
);
}
else
if
((
ddl
||
''
).
length
>
0
)
{
}
else
if
((
ddl
||
''
).
length
>
0
)
{
getDraftUsingDDL
(
data
?.
length
>
0
?
data
[
0
]:{},
{}
,
ddl
);
getDraftUsingDDL
(
data
?.
length
>
0
?
data
[
0
]:{},
{}
,
ddl
);
...
...
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