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
2da5c901
Unverified
Commit
2da5c901
authored
May 02, 2022
by
aiwenmo
Committed by
GitHub
May 02, 2022
Browse files
Options
Browse Files
Download
Plain Diff
[Fix-457][web]Fix bug of modifying job name
[Fix-457][web]Fix bug of modifying job name
parents
3524cdb2
3fd5f26c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
70 deletions
+3
-70
index.tsx
...ponents/Studio/StudioRightTool/StudioJarSetting/index.tsx
+3
-64
index.tsx
...components/Studio/StudioRightTool/StudioSetting/index.tsx
+0
-6
No files found.
dlink-web/src/components/Studio/StudioRightTool/StudioJarSetting/index.tsx
View file @
2da5c901
import
{
connect
}
from
"umi"
;
import
{
connect
}
from
"umi"
;
import
{
StateType
}
from
"@/pages/DataStudio/model"
;
import
{
StateType
}
from
"@/pages/DataStudio/model"
;
import
{
Form
,
InputNumber
,
Input
,
S
witch
,
S
elect
,
Tag
,
Row
,
Col
,
Badge
,
Tooltip
,
Button
,
Space
}
from
"antd"
;
import
{
Form
,
InputNumber
,
Input
,
Select
,
Tag
,
Row
,
Col
,
Badge
,
Tooltip
,
Button
,
Space
}
from
"antd"
;
import
{
InfoCircleOutlined
,
PlusOutlined
,
MinusSquareOutlined
,
MinusCircleOutlined
,
PaperClipOutlined
}
from
"@ant-design/icons"
;
import
{
InfoCircleOutlined
,
PlusOutlined
,
MinusSquareOutlined
,
MinusCircleOutlined
,
PaperClipOutlined
}
from
"@ant-design/icons"
;
import
styles
from
"./index.less"
;
import
styles
from
"./index.less"
;
import
{
useEffect
}
from
"react"
;
import
{
useEffect
}
from
"react"
;
import
{
showTables
}
from
"@/components/Studio/StudioEvent/DDL"
;
import
{
JarStateType
}
from
"@/pages/Jar/model"
;
import
{
JarStateType
}
from
"@/pages/Jar/model"
;
import
{
Scrollbars
}
from
"react-custom-scrollbars"
;
import
{
Scrollbars
}
from
"react-custom-scrollbars"
;
import
{
RUN_MODE
}
from
"@/components/Studio/conf"
;
import
{
RUN_MODE
}
from
"@/components/Studio/conf"
;
...
@@ -13,7 +12,7 @@ const {Option} = Select;
...
@@ -13,7 +12,7 @@ const {Option} = Select;
const
StudioJarSetting
=
(
props
:
any
)
=>
{
const
StudioJarSetting
=
(
props
:
any
)
=>
{
const
{
clusterConfiguration
,
current
,
form
,
dispatch
,
tabs
,
currentSession
,
jars
,
env
,
toolHeight
}
=
props
;
const
{
clusterConfiguration
,
current
,
form
,
dispatch
,
tabs
,
jars
,
env
,
toolHeight
}
=
props
;
const
getClusterConfigurationOptions
=
()
=>
{
const
getClusterConfigurationOptions
=
()
=>
{
const
itemList
=
[];
const
itemList
=
[];
...
@@ -37,20 +36,6 @@ const StudioJarSetting = (props: any) => {
...
@@ -37,20 +36,6 @@ const StudioJarSetting = (props: any) => {
return
itemList
;
return
itemList
;
};
};
const
getEnvOptions
=
()
=>
{
const
itemList
=
[<
Option
key=
{
0
}
value=
{
0
}
label=
'无'
>
无
</
Option
>];
for
(
const
item
of
env
)
{
const
tag
=
(<>
{
item
.
enabled
?
<
Badge
status=
"success"
/>
:
<
Badge
status=
"error"
/>
}
{
item
.
fragment
?
<
PaperClipOutlined
/>
:
undefined
}{
item
.
alias
}
</>);
itemList
.
push
(<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
label=
{
tag
}
>
{
tag
}
</
Option
>)
}
return
itemList
;
};
useEffect
(()
=>
{
useEffect
(()
=>
{
form
.
setFieldsValue
(
current
.
task
);
form
.
setFieldsValue
(
current
.
task
);
},
[
current
.
task
]);
},
[
current
.
task
]);
...
@@ -72,9 +57,6 @@ const StudioJarSetting = (props: any) => {
...
@@ -72,9 +57,6 @@ const StudioJarSetting = (props: any) => {
});
});
};
};
const
onChangeClusterSession
=
()
=>
{
showTables
(
currentSession
.
session
,
dispatch
);
};
return
(
return
(
<>
<>
<
Row
>
<
Row
>
...
@@ -132,26 +114,6 @@ const StudioJarSetting = (props: any) => {
...
@@ -132,26 +114,6 @@ const StudioJarSetting = (props: any) => {
{
getJarOptions
()
}
{
getJarOptions
()
}
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"作业名"
className=
{
styles
.
form_item
}
name=
"jobName"
tooltip=
'设置任务名称,默认为作业名'
>
<
Input
placeholder=
"自定义作业名"
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"FlinkSQL 环境"
tooltip=
{
`选择当前任务的 FlinkSQL 执行环境,会提前执行环境语句,默认无。`
}
name=
"envId"
className=
{
styles
.
form_item
}
>
<
Select
style=
{
{
width
:
'100%'
}
}
placeholder=
"选择 FlinkSQL 环境,非必填"
allowClear
optionLabelProp=
"label"
defaultValue=
{
0
}
value=
{
0
}
>
{
getEnvOptions
()
}
</
Select
>
</
Form
.
Item
>
<
Row
>
<
Row
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
Form
.
Item
label=
"CheckPoint"
tooltip=
"设置Flink任务的检查点步长,0 代表不启用"
name=
"checkPoint"
<
Form
.
Item
label=
"CheckPoint"
tooltip=
"设置Flink任务的检查点步长,0 代表不启用"
name=
"checkPoint"
...
@@ -168,29 +130,6 @@ const StudioJarSetting = (props: any) => {
...
@@ -168,29 +130,6 @@ const StudioJarSetting = (props: any) => {
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
Row
>
<
Col
span=
{
12
}
>
<
Form
.
Item
label=
"Fragment"
className=
{
styles
.
form_item
}
name=
"fragment"
valuePropName=
"checked"
tooltip=
{
{
title
:
'【增强特性】 开启FlinkSql片段机制,使用“:=”进行定义(以“;”结束),“${}”进行调用'
,
icon
:
<
InfoCircleOutlined
/>}
}
>
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
12
}
>
<
Form
.
Item
label=
"启用语句集"
className=
{
styles
.
form_item
}
name=
"statementSet"
valuePropName=
"checked"
tooltip=
{
{
title
:
'【增强特性】 开启语句集机制,将把多个 Insert 语句合成一个 JobGraph 再进行提交,Select 语句无效'
,
icon
:
<
InfoCircleOutlined
/>
}
}
>
<
Switch
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Form
.
Item
<
Form
.
Item
label=
"SavePoint策略"
className=
{
styles
.
form_item
}
name=
"savePointStrategy"
label=
"SavePoint策略"
className=
{
styles
.
form_item
}
name=
"savePointStrategy"
tooltip=
'指定 SavePoint策略,默认为禁用'
tooltip=
'指定 SavePoint策略,默认为禁用'
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
View file @
2da5c901
...
@@ -163,12 +163,6 @@ const StudioSetting = (props: any) => {
...
@@ -163,12 +163,6 @@ const StudioSetting = (props: any) => {
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
</
Row
>)
:
undefined
}
</
Row
>)
:
undefined
}
<
Form
.
Item
label=
"作业名"
className=
{
styles
.
form_item
}
name=
"jobName"
tooltip=
'设置任务名称,默认为作业名'
>
<
Input
placeholder=
"自定义作业名"
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"FlinkSQL 环境"
<
Form
.
Item
label=
"FlinkSQL 环境"
tooltip=
{
`选择当前任务的 FlinkSQL 执行环境,会提前执行环境语句,默认无。`
}
tooltip=
{
`选择当前任务的 FlinkSQL 执行环境,会提前执行环境语句,默认无。`
}
name=
"envId"
name=
"envId"
...
...
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