feature(web): 增加查询当前运行任务接口

获取当前最新一个运行的 yarn 任务,方便后续 flink 状态查询
This commit is contained in:
2023-05-04 15:04:42 +08:00
parent ec14ca244b
commit a82c00a895
5 changed files with 50 additions and 7 deletions

View File

@@ -170,16 +170,23 @@ function simpleYarnDialog(mode, title) {
body: [
/*{
type: 'service',
api: {
method: 'get',
url: `\${base}/${mode}_yarn/job_current`,
data: {
name: `\${${mode}JobName}`,
}
},
body: [
{
type: 'tpl',
tpl: 'hello',
visibleOn: '${1 == 1}',
type: 'iframe',
src: '${current.trackingUrl}',
visibleOn: '${hasCurrent}',
},
{
type: 'tpl',
tpl: 'hello',
visibleOn: '${1 == 2}',
tpl: '没有正在运行的任务',
visibleOn: '${!hasCurrent}',
},
],
},*/