feature(web): 增加压缩结果显示

This commit is contained in:
2023-06-14 17:20:47 +08:00
parent 6abbd3d46a
commit 29c328a899
6 changed files with 212 additions and 17 deletions

View File

@@ -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'),
]
}
}
]
}
],
}
}