refactor(web): 优化单表调度提交
This commit is contained in:
@@ -1926,24 +1926,26 @@ function filterableField(mapping, multiple = false) {
|
||||
}
|
||||
}
|
||||
|
||||
function flinkJobIdTextInput() {
|
||||
function flinkJobIdTextInput(require = false) {
|
||||
return {
|
||||
type: 'input-text',
|
||||
name: 'flinkJobId',
|
||||
label: 'Flink job id',
|
||||
placeholder: '通过 ID 搜索',
|
||||
clearable: true,
|
||||
required: require,
|
||||
autoComplete: '${base}/table/all_flink_job_id?key=$term',
|
||||
}
|
||||
}
|
||||
|
||||
function aliasTextInput() {
|
||||
function aliasTextInput(require = false) {
|
||||
return {
|
||||
type: 'input-text',
|
||||
name: 'alias',
|
||||
label: '别名',
|
||||
placeholder: '通过别名搜索',
|
||||
clearable: true,
|
||||
required: require,
|
||||
autoComplete: '${base}/table/all_alias?key=$term',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,23 +88,28 @@ function toolTab() {
|
||||
type: 'form',
|
||||
title: '提交压缩任务',
|
||||
api: {
|
||||
method: 'post',
|
||||
// url: '${base}/schedule/table_batch',
|
||||
dataType: 'form',
|
||||
method: 'get',
|
||||
url: '${base}/schedule/table',
|
||||
data: {
|
||||
flink_job_id: '${flinkJobId|default:undefined}',
|
||||
alias: '${alias|default:undefined}',
|
||||
recommend: "${recommend === 'undefined' ? undefined : recommend|default:undefined}",
|
||||
force: "${force === 'undefined' ? undefined : force|default:undefined}",
|
||||
}
|
||||
},
|
||||
body: [
|
||||
{
|
||||
type: 'group',
|
||||
body: [
|
||||
flinkJobIdTextInput(),
|
||||
aliasTextInput(),
|
||||
flinkJobIdTextInput(true),
|
||||
aliasTextInput(true),
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'group',
|
||||
body: [
|
||||
{
|
||||
name: 'xxxx',
|
||||
name: 'recommend',
|
||||
type: 'radios',
|
||||
label: '优先指定集群',
|
||||
selectFirst: true,
|
||||
@@ -116,14 +121,13 @@ function toolTab() {
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'xxx',
|
||||
name: 'force',
|
||||
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'},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user