diff --git a/src/frontend/src/views/executive-history/local.js b/src/frontend/src/views/executive-history/local.js index 2f7b787154..677d765ba9 100644 --- a/src/frontend/src/views/executive-history/local.js +++ b/src/frontend/src/views/executive-history/local.js @@ -232,5 +232,6 @@ export default { '容器 ID': 'Container ID', '所属 Pod 名称': 'Pod name', 没有可复制的容器名称: 'Container name not found', + 文件源: 'File source', }, }; diff --git a/src/frontend/src/views/executive-history/step-detail/components/execution-info/components/file-log/log-item.vue b/src/frontend/src/views/executive-history/step-detail/components/execution-info/components/file-log/log-item.vue index cf12f865e2..89b16bc95c 100644 --- a/src/frontend/src/views/executive-history/step-detail/components/execution-info/components/file-log/log-item.vue +++ b/src/frontend/src/views/executive-history/step-detail/components/execution-info/components/file-log/log-item.vue @@ -51,8 +51,48 @@ [statusMap[data.status]]: true, toggle: isContentOpen, }; + + let bkTooltips = null; + + if (data.srcExecuteObject.container) { + const { + id, + name, + nodeHostId, + podName, + uid, + } = data.srcExecuteObject.container || {}; + + bkTooltips = { + theme: 'light', + content: ` + + + + + + + + + + + + + + + + + + + + +
id: ${id}
Container name: ${name}
Host id: ${nodeHostId}
Pod name: ${podName}
uid: ${uid}
`, + allowHTML: true, + }; + } // 异步获取日志的loading状态 const logContent = renderContentMap[data.taskId] || data.logContent; + if (isContentLoading && !logContent) { classes['content-loading'] = true; } @@ -83,7 +123,15 @@ { parent.$t('history.文件名') }:{ data.fileName } { parent.$t('history.文件大小') }:{ data.fileSize } { parent.$t('history.状态.log') }:{ data.statusDesc } - { parent.$t('history.源服务器 IP') }:{ renderServer() } + { parent.$t('history.文件源') }: + + { renderServer() } + + { parent.$t('history.速率') }:{ data.speed } { parent.$t('history.进度') }:{ data.progress }