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
a76f77d9
Commit
a76f77d9
authored
Nov 29, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类型调整
parent
8cc1752f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
39 deletions
+28
-39
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+28
-39
No files found.
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
a76f77d9
...
...
@@ -105,52 +105,41 @@ export const DatatypeInput = ({ value = {}, datatypes, onChange }) => {
value
=
value
?
value
:
{};
return
(
<>
<
Row
align=
'middle'
>
<
Col
span=
{
9
}
>
<
span
>
名称:
</
span
>
</
Col
>
<
Col
span=
{
15
}
>
<
span
onClick=
{
e
=>
e
.
stopPropagation
()
}
>
<
Select
onChange=
{
onNameChange
}
value=
{
value
.
name
||
''
}
placeholder=
'请选择类型名称'
>
{
(
datatypes
||
[])
&&
datatypes
.
map
((
_datatype
,
index
)
=>
{
return
(
<
Option
key=
{
_datatype
.
name
||
''
}
>
{
_datatype
.
name
||
''
}
</
Option
>
);
})
}
</
Select
>
</
span
>
</
Col
>
</
Row
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'center'
}
}
>
<
div
onClick=
{
e
=>
e
.
stopPropagation
()
}
style=
{
{
flex
:
1
}
}
>
<
Select
onChange=
{
onNameChange
}
value=
{
value
.
name
||
''
}
placeholder=
'请选择类型名称'
style=
{
{
width
:
'100%'
}
}
>
{
(
datatypes
||
[])
&&
datatypes
.
map
((
_datatype
,
index
)
=>
{
return
(
<
Option
key=
{
_datatype
.
name
||
''
}
>
{
_datatype
.
name
||
''
}
</
Option
>
);
})
}
</
Select
>
</
div
>
{
(
value
.
parameterCnNames
||
[]).
map
((
parameterCnName
,
index
)
=>
{
//使用InputNumber:当value改变时 InputNumber显示值没改变 但实际值有改变 是ant design的bug 这里使用只能输入数字的Input
return
(
<
Row
key=
{
index
}
className=
'mt-2'
align=
'middle'
>
<
Col
span=
{
9
}
>
<
span
>
{
`${parameterCnName||''}:`
}
</
span
>
</
Col
>
<
Col
span=
{
15
}
>
<
Input
onChange=
{
(
e
)
=>
{
onParameterValuesChange
(
e
,
index
);
}
}
value=
{
value
.
parameterValues
[
index
]
||
''
}
style=
{
{
width
:
'100%'
}
}
placeholder=
'请输入一个整数'
/>
</
Col
>
</
Row
>
<
div
key=
{
index
}
className=
'ml-2'
style=
{
{
flex
:
1
}
}
>
<
Input
onChange=
{
(
e
)
=>
{
onParameterValuesChange
(
e
,
index
);
}
}
value=
{
value
.
parameterValues
[
index
]
||
''
}
style=
{
{
width
:
'100%'
}
}
placeholder=
{
parameterCnName
}
/>
</
div
>
);
})
}
</>
</
div
>
)
}
...
...
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