Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
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
zhaowei
dlink
Commits
9838fc5c
Commit
9838fc5c
authored
Mar 18, 2022
by
zhu-mingye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化hive数据源链接配置
parent
a4942aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
DataBaseForm.tsx
dlink-web/src/pages/DataBase/components/DataBaseForm.tsx
+6
-4
No files found.
dlink-web/src/pages/DataBase/components/DataBaseForm.tsx
View file @
9838fc5c
import
React
,
{
use
Effect
,
use
State
}
from
'react'
;
import
{
Form
,
Button
,
Input
,
Space
,
Select
,
Divider
}
from
'antd'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Button
,
Divider
,
Form
,
Input
,
Select
,
Space
}
from
'antd'
;
import
Switch
from
"antd/es/switch"
;
import
TextArea
from
"antd/es/input/TextArea"
;
import
{
DataBaseItem
}
from
"@/pages/DataBase/data"
;
import
{
FALLBACK
,
getDBImage
}
from
"@/pages/DataBase/DB"
;
export
type
ClickHouseFormProps
=
{
...
...
@@ -111,7 +110,9 @@ const DataBaseForm: React.FC<ClickHouseFormProps> = (props) => {
>
<
Input
.
Password
/>
</
Form
.
Item
>
<
Form
.
Item
{
type
!==
"Hive"
&&
<>
<
Form
.
Item
name=
"flinkConfig"
label=
"Flink 连接配置"
>
...
...
@@ -125,6 +126,7 @@ const DataBaseForm: React.FC<ClickHouseFormProps> = (props) => {
<
TextArea
placeholder=
"请指定 Flink With 的生成模板"
allowClear
autoSize=
{
{
minRows
:
3
,
maxRows
:
10
}
}
/>
</
Form
.
Item
>
</>
}
<
Form
.
Item
name=
"note"
label=
"注释"
...
...
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