feature(web): 增加单个表压缩提交

This commit is contained in:
2023-07-11 10:51:20 +08:00
parent f0881d65d7
commit 43b1933d4f
3 changed files with 72 additions and 13 deletions

View File

@@ -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',
}
}

View File

@@ -26,29 +26,18 @@ function tableTab() {
...crudCommonOptions(),
// interval: 10000,
filter: {
mode: 'inline',
title: '表筛选',
body: [
{
type: 'group',
body: [
{
type: 'input-text',
name: 'flinkJobId',
label: 'Flink job id',
placeholder: '通过 ID 搜索',
...flinkJobIdTextInput(),
size: 'md',
clearable: true,
autoComplete: '${base}/table/all_flink_job_id?key=$term',
},
{
type: 'input-text',
name: 'alias',
label: '别名',
placeholder: '通过别名搜索',
...aliasTextInput(),
size: 'md',
clearable: true,
autoComplete: '${base}/table/all_alias?key=$term',
},
]
},

View File

@@ -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',
title: '批量提交压缩任务',