63 lines
2.5 KiB
JavaScript
63 lines
2.5 KiB
JavaScript
function toolTab() {
|
|
return {
|
|
title: `小工具`,
|
|
tab: [
|
|
{
|
|
type: 'form',
|
|
title: '查询时间线',
|
|
mode: 'horizontal',
|
|
horizontal: {
|
|
leftFixed: 'md',
|
|
},
|
|
actions: [
|
|
{
|
|
type: 'submit',
|
|
label: '查询',
|
|
actionType: 'dialog',
|
|
dialog: {
|
|
title: 'Hudi 表时间线',
|
|
actions: [],
|
|
size: 'lg',
|
|
body: {
|
|
type: 'crud',
|
|
api: {
|
|
method: 'get',
|
|
url: '${base}/hudi/timeline/list_hdfs',
|
|
data: {
|
|
page: '${page|default:undefined}',
|
|
count: '${perPage|default:undefined}',
|
|
order: '${orderBy|default:undefined}',
|
|
direction: '${orderDir|default:undefined}',
|
|
hdfs: '${hdfs|default:undefined}',
|
|
filter_type: "${type|default:active}",
|
|
filter_action: '${action|default:undefined}',
|
|
filter_state: '${state|default:undefined}',
|
|
},
|
|
},
|
|
...crudCommonOptions(),
|
|
perPage: 50,
|
|
headerToolbar: [
|
|
"reload",
|
|
paginationCommonOptions(undefined, 10),
|
|
],
|
|
footerToolbar: [
|
|
paginationCommonOptions(undefined, 10),
|
|
],
|
|
columns: timelineColumns(),
|
|
}
|
|
}
|
|
}
|
|
],
|
|
body: [
|
|
{
|
|
type: 'input-text',
|
|
name: 'hdfs',
|
|
label: '表HDFS路经',
|
|
required: true,
|
|
}
|
|
]
|
|
},
|
|
{type: 'divider'},
|
|
]
|
|
}
|
|
} |