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
1a3391ad
Commit
1a3391ad
authored
Jul 26, 2021
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Studio其他配置
parent
88d7d176
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
6 deletions
+52
-6
index.tsx
dlink-web/src/components/Studio/StudioMenu/index.tsx
+2
-0
index.tsx
...components/Studio/StudioRightTool/StudioSetting/index.tsx
+43
-4
index.tsx
dlink-web/src/components/Studio/StudioRightTool/index.tsx
+2
-1
index.tsx
dlink-web/src/components/Studio/StudioTree/index.tsx
+1
-0
index.tsx
dlink-web/src/components/Studio/index.tsx
+1
-1
model.ts
dlink-web/src/pages/FlinkSqlStudio/model.ts
+3
-0
No files found.
dlink-web/src/components/Studio/StudioMenu/index.tsx
View file @
1a3391ad
...
...
@@ -129,6 +129,8 @@ const StudioMenu = (props: any) => {
const
saveSqlAndSettingToTask
=
async
()
=>
{
const
fieldsValue
=
await
form
.
validateFields
();
// console.log(fieldsValue);
// return;
if
(
current
.
task
)
{
let
task
=
{
...
current
.
task
,
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
View file @
1a3391ad
import
{
connect
}
from
"umi"
;
import
{
StateType
}
from
"@/pages/FlinkSqlStudio/model"
;
import
{
Form
,
InputNumber
,
Input
,
Switch
,
Select
,
Tag
,
Row
,
Col
,
Badge
,
Tooltip
,
Button
,
Typography
}
from
"antd"
;
import
{
InfoCircleOutlined
,
PlusOutlined
,
MinusSquareOutlined
}
from
"@ant-design/icons"
;
import
{
Form
,
InputNumber
,
Input
,
Switch
,
Select
,
Tag
,
Row
,
Col
,
Badge
,
Tooltip
,
Button
,
Typography
,
Space
}
from
"antd"
;
import
{
InfoCircleOutlined
,
PlusOutlined
,
MinusSquareOutlined
,
MinusCircleOutlined
}
from
"@ant-design/icons"
;
import
styles
from
"./index.less"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
showCluster
,
showTables
}
from
"@/components/Studio/StudioEvent/DDL"
;
import
{
showTables
}
from
"@/components/Studio/StudioEvent/DDL"
;
const
{
Option
}
=
Select
;
const
{
Text
}
=
Typography
;
...
...
@@ -39,7 +39,7 @@ const StudioSetting = (props: any) => {
break
;
}
}
// console.log(change);
dispatch
&&
dispatch
({
type
:
"Studio/saveTabs"
,
payload
:
newTabs
,
...
...
@@ -131,6 +131,45 @@ const StudioSetting = (props: any) => {
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Form
.
Item
label=
"其他配置"
className=
{
styles
.
form_item
}
tooltip=
{
{
title
:
'其他配置项,将被应用于执行环境,如 pipeline.name'
,
icon
:
<
InfoCircleOutlined
/>
}
}
>
<
Form
.
List
name=
"config"
>
{
(
fields
,
{
add
,
remove
})
=>
(
<>
{
fields
.
map
(({
key
,
name
,
fieldKey
,
...
restField
})
=>
(
<
Space
key=
{
key
}
style=
{
{
display
:
'flex'
}
}
align=
"baseline"
>
<
Form
.
Item
{
...
restField
}
name=
{
[
name
,
'key'
]
}
// fieldKey=
{[
fieldKey
,
'
key
']}
style=
{
{
marginBottom
:
'5px'
}
}
>
<
Input
placeholder=
"参数"
/>
</
Form
.
Item
>
<
Form
.
Item
{
...
restField
}
name=
{
[
name
,
'value'
]
}
// fieldKey=
{[
fieldKey
,
'
value
']}
style=
{
{
marginBottom
:
'5px'
}
}
>
<
Input
placeholder=
"值"
/>
</
Form
.
Item
>
<
MinusCircleOutlined
onClick=
{
()
=>
remove
(
name
)
}
/>
</
Space
>
))
}
<
Form
.
Item
>
<
Button
type=
"dashed"
onClick=
{
()
=>
add
()
}
block
icon=
{
<
PlusOutlined
/>
}
>
添加配置项
</
Button
>
</
Form
.
Item
>
</>
)
}
</
Form
.
List
>
</
Form
.
Item
>
</
Form
>
</>
);
...
...
dlink-web/src/components/Studio/StudioRightTool/index.tsx
View file @
1a3391ad
...
...
@@ -12,7 +12,8 @@ const { TabPane } = Tabs;
const
StudioRightTool
=
(
props
:
any
)
=>
{
const
[
form
]
=
Form
.
useForm
();
// const [form] = Form.useForm();
const
{
form
}
=
props
;
return
(
<
Tabs
defaultActiveKey=
"1"
size=
"small"
tabPosition=
"right"
style=
{
{
height
:
"100%"
,
border
:
"1px solid #f0f0f0"
}
}
>
<
TabPane
tab=
{
<
span
><
SettingOutlined
/>
作业配置
</
span
>
}
key=
"StudioSetting"
>
...
...
dlink-web/src/components/Studio/StudioTree/index.tsx
View file @
1a3391ad
...
...
@@ -139,6 +139,7 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
session
:
''
,
maxRowNum
:
100
,
jobName
:
node
.
name
,
config
:
[],
useResult
:
false
,
useSession
:
false
,
useRemote
:
true
,
...
...
dlink-web/src/components/Studio/index.tsx
View file @
1a3391ad
...
...
@@ -49,7 +49,7 @@ const Studio: React.FC<StudioProps> = (props) => {
{
/*<StudioConsole/>*/
}
</
Col
>
<
Col
span=
{
4
}
className=
{
styles
[
"vertical-tabs"
]
}
>
<
StudioRightTool
/>
<
StudioRightTool
form=
{
form
}
/>
</
Col
>
</
Row
>
<
Row
>
...
...
dlink-web/src/pages/FlinkSqlStudio/model.ts
View file @
1a3391ad
...
...
@@ -46,6 +46,7 @@ export type TaskType = {
savePointPath
?:
string
,
parallelism
?:
number
,
fragment
?:
boolean
,
config
?:
[],
clusterId
?:
any
,
clusterName
?:
string
,
note
?:
string
,
...
...
@@ -162,6 +163,7 @@ const Model: ModelType = {
clusterId
:
0
,
clusterName
:
"本地环境"
,
maxRowNum
:
100
,
config
:
[],
session
:
''
,
alias
:
'草稿'
,
useResult
:
true
,
...
...
@@ -193,6 +195,7 @@ const Model: ModelType = {
clusterId
:
0
,
clusterName
:
"本地环境"
,
session
:
''
,
config
:
[],
maxRowNum
:
100
,
alias
:
'草稿'
,
useResult
:
true
,
...
...
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