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
9cdc6402
Commit
9cdc6402
authored
Apr 15, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改基础信息问题
parent
316266f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+12
-9
No files found.
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
9cdc6402
...
@@ -86,15 +86,15 @@ const TemplateSelect = ({ value = '', modelerData = undefined, templates = [], o
...
@@ -86,15 +86,15 @@ const TemplateSelect = ({ value = '', modelerData = undefined, templates = [], o
const
[
isCustom
,
setIsCustom
]
=
useState
(
false
);
const
[
isCustom
,
setIsCustom
]
=
useState
(
false
);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
mountRef
.
current
)
{
if
(
mountRef
.
current
&&
modelerData
&&
Object
.
keys
(
modelerData
).
length
>
0
)
{
if
(
valu
e
&&
!
modelerData
?.
easyDataModelerModelingTemplate
?.
name
)
{
if
(
modelerData
?.
tableTyp
e
&&
!
modelerData
?.
easyDataModelerModelingTemplate
?.
name
)
{
setIsCustom
(
true
);
setIsCustom
(
true
);
}
else
{
}
else
{
setIsCustom
(
false
);
setIsCustom
(
false
);
}
}
}
mountRef
.
current
=
false
;
mountRef
.
current
=
false
;
}
},
[
modelerData
])
},
[
modelerData
])
return
(
return
(
...
@@ -103,7 +103,7 @@ const TemplateSelect = ({ value = '', modelerData = undefined, templates = [], o
...
@@ -103,7 +103,7 @@ const TemplateSelect = ({ value = '', modelerData = undefined, templates = [], o
isCustom
?
<
InputDebounce
isCustom
?
<
InputDebounce
placeholder=
'请输入数据表类型'
placeholder=
'请输入数据表类型'
allowClear
allowClear
defaultV
alue=
{
modelerData
?.
tableType
}
v
alue=
{
modelerData
?.
tableType
}
onChange=
{
(
val
)
=>
{
onChange=
{
(
val
)
=>
{
onChange
?.(
val
,
true
);
onChange
?.(
val
,
true
);
}
}
}
}
...
@@ -112,7 +112,7 @@ const TemplateSelect = ({ value = '', modelerData = undefined, templates = [], o
...
@@ -112,7 +112,7 @@ const TemplateSelect = ({ value = '', modelerData = undefined, templates = [], o
onChange=
{
(
val
)
=>
{
onChange=
{
(
val
)
=>
{
onChange
?.(
val
);
onChange
?.(
val
);
}
}
}
}
defaultV
alue=
{
value
||
undefined
}
v
alue=
{
value
||
undefined
}
placeholder=
'请选择数据表类型'
placeholder=
'请选择数据表类型'
allowClear
allowClear
style=
{
{
flex
:
1
}
}
style=
{
{
flex
:
1
}
}
...
@@ -374,10 +374,15 @@ const ImportActionHeader = (props) => {
...
@@ -374,10 +374,15 @@ const ImportActionHeader = (props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
getDataTypeList
();
getDataTypeList
();
},
[])
useEffect
(()
=>
{
if
(
modelerData
?.
dataType
)
{
if
(
modelerData
?.
dataType
)
{
getBindingLoadRangeList
(
modelerData
?.
dataType
);
getBindingLoadRangeList
(
modelerData
?.
dataType
);
}
else
{
setBindingLoadRangeList
([]);
}
}
},
[])
},
[
modelerData
?.
dataType
])
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -607,10 +612,8 @@ const ImportActionHeader = (props) => {
...
@@ -607,10 +612,8 @@ const ImportActionHeader = (props) => {
}
}
}
else
if
(
changedValues
.
hasOwnProperty
(
'dataType'
))
{
}
else
if
(
changedValues
.
hasOwnProperty
(
'dataType'
))
{
if
(
changedValues
.
dataType
)
{
if
(
changedValues
.
dataType
)
{
getBindingLoadRangeList
(
changedValues
.
dataType
);
onChange
?.({...
changedValues
,
bindingLoadRange
:
''
},
{...
allValues
,
bindingLoadRange
:
''
});
onChange
?.({...
changedValues
,
bindingLoadRange
:
''
},
{...
allValues
,
bindingLoadRange
:
''
});
}
else
{
}
else
{
setBindingLoadRangeList
([]);
onChange
?.({...
changedValues
,
bindingLoadRange
:
''
},
{...
allValues
,
bindingLoadRange
:
''
});
onChange
?.({...
changedValues
,
bindingLoadRange
:
''
},
{...
allValues
,
bindingLoadRange
:
''
});
}
}
}
}
...
...
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