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
c0ea6ad9
Commit
c0ea6ad9
authored
May 10, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加新增数据源驱动设置
parent
b79cf0a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
UpdateDatasourceModal.jsx
...nage/DatasourceManage/Component/UpdateDatasourceModal.jsx
+10
-2
No files found.
src/view/Manage/DatasourceManage/Component/UpdateDatasourceModal.jsx
View file @
c0ea6ad9
...
@@ -288,13 +288,21 @@ const UpdateDatasourceModal = (props) => {
...
@@ -288,13 +288,21 @@ const UpdateDatasourceModal = (props) => {
rules=
{
[{
required
:
item
.
required
,
message
:
'必填项'
}]
}
rules=
{
[{
required
:
item
.
required
,
message
:
'必填项'
}]
}
>
>
{
{
(
item
.
selectMode
===
'singleSelect'
)
?
<
Select
>
(
item
.
selectMode
===
'singleSelect'
)
?
(
(
item
.
name
===
'driver'
)
?
<
Select
>
{
(
item
.
targetDriverNodeList
||
[]).
map
((
item
,
index
)
=>
{
return
<
Select
.
Option
key=
{
index
}
value=
{
item
.
driverId
}
>
{
item
.
cnName
||
''
}
</
Select
.
Option
>
})
}
</
Select
>
:
<
Select
>
{
{
(
item
.
selectItem
||
[]).
map
((
item
,
index
)
=>
{
(
item
.
selectItem
||
[]).
map
((
item
,
index
)
=>
{
return
<
Select
.
Option
key=
{
index
}
value=
{
item
||
''
}
>
{
item
||
''
}
</
Select
.
Option
>
return
<
Select
.
Option
key=
{
index
}
value=
{
item
||
''
}
>
{
item
||
''
}
</
Select
.
Option
>
})
})
}
}
</
Select
>
:
(
item
.
show
?
<
Input
placeholder=
{
item
.
explain
||
''
}
/>
:
<
Input
.
Password
placeholder=
{
item
.
explain
||
''
}
visibilityToggle=
{
false
}
/>
)
}
</
Select
>
)
:
(
item
.
show
?
<
Input
placeholder=
{
item
.
explain
||
''
}
/>
:
<
Input
.
Password
placeholder=
{
item
.
explain
||
''
}
visibilityToggle=
{
false
}
/>
)
}
</
Form
.
Item
>
</
Form
.
Item
>
)
)
})
})
...
...
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