feature(web): 增加查询当前运行任务接口
获取当前最新一个运行的 yarn 任务,方便后续 flink 状态查询
This commit is contained in:
@@ -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}',
|
||||
},
|
||||
],
|
||||
},*/
|
||||
|
||||
Reference in New Issue
Block a user