feat(web): 给没有在运行的flink任务查询任务名称
This commit is contained in:
@@ -94,53 +94,6 @@ function versionDetailDialog(variable, target) {
|
||||
}
|
||||
}
|
||||
|
||||
function jobDetailDialog(variable, targetList) {
|
||||
return {
|
||||
disabledOn: `${variable} === 0`,
|
||||
type: 'action',
|
||||
label: '详情',
|
||||
level: 'link',
|
||||
size: 'sm',
|
||||
actionType: 'dialog',
|
||||
dialog: {
|
||||
title: '详情',
|
||||
size: 'sm',
|
||||
...readOnlyDialogOptions(),
|
||||
body: [
|
||||
{
|
||||
type: "table",
|
||||
source: `\${${targetList}}`,
|
||||
affixHeader: false,
|
||||
columns: [
|
||||
{
|
||||
label: 'Flink job id',
|
||||
fixed: 'left',
|
||||
type: 'wrapper',
|
||||
size: 'none',
|
||||
body: [
|
||||
{
|
||||
type: 'tpl',
|
||||
tpl: '${id}',
|
||||
},
|
||||
{
|
||||
type: 'action',
|
||||
level: 'link',
|
||||
label: '',
|
||||
icon: 'fa fa-copy',
|
||||
size: 'xs',
|
||||
actionType: 'copy',
|
||||
content: '${id}',
|
||||
tooltip: '复制 ID',
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function tableDetailDialog(variable, targetList) {
|
||||
return {
|
||||
disabledOn: `${variable} === 0`,
|
||||
@@ -340,6 +293,8 @@ function overviewTab() {
|
||||
{
|
||||
type: 'service',
|
||||
api: '${base}/overview/sync_running_status',
|
||||
interval: 10000,
|
||||
silentPolling: true,
|
||||
body: [
|
||||
{
|
||||
type: 'tpl',
|
||||
@@ -354,7 +309,7 @@ function overviewTab() {
|
||||
type: 'tpl',
|
||||
tpl: '已停止<span class="font-bold m-2 font-mono text-danger">${PADSTART(unRunningJob, 3)}</span>'
|
||||
},
|
||||
jobDetailDialog('unRunningJob', 'unRunningJobList'),
|
||||
tableDetailDialog('unRunningJob', 'unRunningJobList'),
|
||||
'<br/>',
|
||||
{
|
||||
type: 'tpl',
|
||||
|
||||
Reference in New Issue
Block a user