feature(web): 增加单个表压缩提交
This commit is contained in:
@@ -1925,3 +1925,25 @@ function filterableField(mapping, multiple = false) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function flinkJobIdTextInput() {
|
||||||
|
return {
|
||||||
|
type: 'input-text',
|
||||||
|
name: 'flinkJobId',
|
||||||
|
label: 'Flink job id',
|
||||||
|
placeholder: '通过 ID 搜索',
|
||||||
|
clearable: true,
|
||||||
|
autoComplete: '${base}/table/all_flink_job_id?key=$term',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function aliasTextInput() {
|
||||||
|
return {
|
||||||
|
type: 'input-text',
|
||||||
|
name: 'alias',
|
||||||
|
label: '别名',
|
||||||
|
placeholder: '通过别名搜索',
|
||||||
|
clearable: true,
|
||||||
|
autoComplete: '${base}/table/all_alias?key=$term',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -26,29 +26,18 @@ function tableTab() {
|
|||||||
...crudCommonOptions(),
|
...crudCommonOptions(),
|
||||||
// interval: 10000,
|
// interval: 10000,
|
||||||
filter: {
|
filter: {
|
||||||
mode: 'inline',
|
|
||||||
title: '表筛选',
|
title: '表筛选',
|
||||||
body: [
|
body: [
|
||||||
{
|
{
|
||||||
type: 'group',
|
type: 'group',
|
||||||
body: [
|
body: [
|
||||||
{
|
{
|
||||||
type: 'input-text',
|
...flinkJobIdTextInput(),
|
||||||
name: 'flinkJobId',
|
|
||||||
label: 'Flink job id',
|
|
||||||
placeholder: '通过 ID 搜索',
|
|
||||||
size: 'md',
|
size: 'md',
|
||||||
clearable: true,
|
|
||||||
autoComplete: '${base}/table/all_flink_job_id?key=$term',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'input-text',
|
...aliasTextInput(),
|
||||||
name: 'alias',
|
|
||||||
label: '别名',
|
|
||||||
placeholder: '通过别名搜索',
|
|
||||||
size: 'md',
|
size: 'md',
|
||||||
clearable: true,
|
|
||||||
autoComplete: '${base}/table/all_alias?key=$term',
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -84,6 +84,54 @@ function toolTab() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'form',
|
||||||
|
title: '提交压缩任务',
|
||||||
|
api: {
|
||||||
|
method: 'post',
|
||||||
|
// url: '${base}/schedule/table_batch',
|
||||||
|
dataType: 'form',
|
||||||
|
},
|
||||||
|
body: [
|
||||||
|
{
|
||||||
|
type: 'group',
|
||||||
|
body: [
|
||||||
|
flinkJobIdTextInput(),
|
||||||
|
aliasTextInput(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'group',
|
||||||
|
body: [
|
||||||
|
{
|
||||||
|
name: 'xxxx',
|
||||||
|
type: 'radios',
|
||||||
|
label: '优先指定集群',
|
||||||
|
selectFirst: true,
|
||||||
|
options: [
|
||||||
|
{label: '无', value: 'undefined'},
|
||||||
|
{label: 'b1', value: 'b1'},
|
||||||
|
{label: 'b5', value: 'b5'},
|
||||||
|
{label: 'a4', value: 'a4'},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'xxx',
|
||||||
|
type: 'radios',
|
||||||
|
label: '强制指定集群',
|
||||||
|
selectFirst: true,
|
||||||
|
options: [
|
||||||
|
{label: '无', value: 'undefined'},
|
||||||
|
{label: 'b1', value: 'b1'},
|
||||||
|
{label: 'b1', value: 'b1'},
|
||||||
|
{label: 'b5', value: 'b5'},
|
||||||
|
{label: 'a4', value: 'a4'},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'form',
|
type: 'form',
|
||||||
title: '批量提交压缩任务',
|
title: '批量提交压缩任务',
|
||||||
|
|||||||
Reference in New Issue
Block a user