feature(web): 增加压缩结果显示
This commit is contained in:
@@ -627,6 +627,22 @@ function runMetaProperty(runMode) {
|
||||
}
|
||||
}
|
||||
|
||||
function statisticsProperty(title, statistic) {
|
||||
return {
|
||||
type: 'property',
|
||||
title: title,
|
||||
column: 3,
|
||||
items: [
|
||||
{label: '扫描总时间', content: `\${${statistic}.totalScanTime}`},
|
||||
{label: '压缩日志文件总数', content: `\${${statistic}.totalLogFilesCompacted}`},
|
||||
{label: '压缩日志文件大小', content: `\${${statistic}.totalLogFilesSize}`},
|
||||
{label: '删除记录数', content: `\${${statistic}.totalRecordsDeleted}`},
|
||||
{label: '更新记录数', content: `\${${statistic}.totalRecordsUpdated}`},
|
||||
{label: '压缩日志数', content: `\${${statistic}.totalRecordsCompacted}`},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
function flinkJobDialog() {
|
||||
return {
|
||||
title: 'Flink job 详情',
|
||||
@@ -828,6 +844,34 @@ function tableMetaDialog() {
|
||||
align: 'center',
|
||||
canAccessSuperData: false,
|
||||
},
|
||||
{
|
||||
type: "operation",
|
||||
width: 50,
|
||||
label: "操作",
|
||||
fixed: 'right',
|
||||
className: 'nowrap',
|
||||
buttons: [
|
||||
{
|
||||
label: '详情',
|
||||
type: 'action',
|
||||
level: 'link',
|
||||
actionType: 'dialog',
|
||||
dialog: {
|
||||
title: '压缩详情',
|
||||
size: 'xl',
|
||||
actions: [],
|
||||
closeOnEsc: true,
|
||||
closeOnOutside: true,
|
||||
showCloseButton: false,
|
||||
body: [
|
||||
statisticsProperty('压缩预扫描', 'before'),
|
||||
{type: 'divider'},
|
||||
statisticsProperty('压缩成果', 'after'),
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user