refactor(web): 优化概览页面显示

This commit is contained in:
2024-01-09 16:46:22 +08:00
parent fe0d779afb
commit 557aa22343

View File

@@ -163,11 +163,6 @@ function overviewYarnJob(cluster, search, queue, yarnQueue) {
],
},
'(',
{
type: 'tpl',
tpl: "<span class='font-bold white-space-pre'>${PADSTART(total, 5)}</span>",
},
',',
{
type: 'tpl',
tpl: "<span class='font-bold text-cyan-300'>${PADSTART(scheduling, 2)}</span>",
@@ -177,11 +172,6 @@ function overviewYarnJob(cluster, search, queue, yarnQueue) {
type: 'tpl',
tpl: '<span class="font-bold text-success">${PADSTART(running, 3)}</span>',
},
',',
{
type: 'tpl',
tpl: '<span class="font-bold text-danger">${PADSTART(failure, 4)}</span>',
},
')',
]
}
@@ -230,7 +220,7 @@ function overviewTab() {
]
},
{type: 'divider'},
'<span class="italic text-gray-500 my-2">集群 (集群总资源使用,队列资源使用)(总任务数,调度中任务数,运行中任务数,失败任务数)</span>',
'<span class="italic text-gray-500 my-2">集群 (集群总资源使用,队列资源使用)(调度中任务数,运行中任务数)</span>',
overviewYarnJob('b12', 'Sync', undefined, 'default'),
{type: 'divider'},
{
@@ -246,7 +236,7 @@ function overviewTab() {
}
]
},
'<span class="italic text-gray-500 my-2">集群 压缩队列任务数(集群总资源使用,队列资源使用)(总任务数,调度中任务数,运行中任务数,失败任务数)</span>',
'<span class="italic text-gray-500 my-2">集群 压缩队列任务数(集群总资源使用,队列资源使用)(调度中任务数,运行中任务数)</span>',
overviewYarnJob('b12', 'Compaction', 'compaction-queue-b12', 'default'),
overviewYarnJob('b1', 'Compaction', 'compaction-queue-b1', 'datalake'),
overviewYarnJob('b5', 'Compaction', 'compaction-queue-b5', 'ten_iap.datalake'),