feature(web): 优化集群信息展示,合并选项卡
This commit is contained in:
@@ -70,10 +70,6 @@ function yarnQueueCrud(clusters = undefined, queueNames = undefined) {
|
|||||||
{
|
{
|
||||||
name: 'queueName',
|
name: 'queueName',
|
||||||
label: '队列名称',
|
label: '队列名称',
|
||||||
width: 130,
|
|
||||||
type: 'tooltip-wrapper',
|
|
||||||
body: '${TRUNCATE(queueName, 20)}',
|
|
||||||
content: '${queueName}',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '当前容量',
|
label: '当前容量',
|
||||||
@@ -94,7 +90,8 @@ function yarnQueueCrud(clusters = undefined, queueNames = undefined) {
|
|||||||
value: 100,
|
value: 100,
|
||||||
color: "#dc3545"
|
color: "#dc3545"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
width: 1300,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '进度',
|
label: '进度',
|
||||||
|
|||||||
@@ -1,8 +1,25 @@
|
|||||||
function yarnClusterTab() {
|
function yarnClusterTab() {
|
||||||
return {
|
return {
|
||||||
title: '集群资源',
|
title: '集群概览',
|
||||||
tab: [
|
tab: [
|
||||||
yarnQueueCrud('b1,b5,b5-sync,a4,b4')
|
{
|
||||||
|
type: 'tabs',
|
||||||
|
mountOnEnter: true,
|
||||||
|
unmountOnExit: true,
|
||||||
|
tabsMode: 'line',
|
||||||
|
tabs: [
|
||||||
|
{
|
||||||
|
title: '总体情况',
|
||||||
|
tab: [
|
||||||
|
yarnQueueCrud('b1,b5,b5-sync,a4,b4')
|
||||||
|
],
|
||||||
|
},
|
||||||
|
yarnTab('b1', '压缩 b1', 'datalake,tyly'),
|
||||||
|
yarnTab('a4', '压缩 a4'),
|
||||||
|
yarnTab('b4', '压缩 b4'),
|
||||||
|
yarnTab('b5', '压缩 b5', 'ten_iap.datalake'),
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
function yarnTab(cluster, title, queueNames = 'default', searchName = undefined) {
|
function yarnTab(cluster, title, queueNames = 'root', searchName = undefined) {
|
||||||
return {
|
return {
|
||||||
title: `${title} 集群`,
|
title: `${title} 集群`,
|
||||||
tab: [
|
tab: [
|
||||||
|
|||||||
@@ -57,16 +57,12 @@
|
|||||||
tabs: [
|
tabs: [
|
||||||
// logTab(),
|
// logTab(),
|
||||||
// runningTab(),
|
// runningTab(),
|
||||||
// yarnClusterTab(),
|
|
||||||
tableTab(),
|
tableTab(),
|
||||||
queueTab(),
|
queueTab(),
|
||||||
yarnTab('b5-sync', '同步 b5', undefined, 'Sync'),
|
yarnTab('b5-sync', '同步 b5', undefined, 'Sync'),
|
||||||
yarnTab('b1,b5', '压缩 b1 b5', 'datalake,ten_iap.datalake', 'Compaction'),
|
yarnTab('b1,b5', '压缩 b1 b5', 'datalake,ten_iap.datalake', 'Compaction'),
|
||||||
cloudTab(),
|
cloudTab(),
|
||||||
yarnTab('b1', '压缩 b1', 'datalake,tyly'),
|
yarnClusterTab(),
|
||||||
yarnTab('a4', '压缩 a4'),
|
|
||||||
yarnTab('b4', '压缩 b4'),
|
|
||||||
yarnTab('b5', '压缩 b5', 'ten_iap.datalake'),
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user