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} | +