diff --git a/conf/dop/i18n/cp/common.yaml b/conf/dop/i18n/cp/common.yaml index a365dd9876a..7d7a84dff61 100644 --- a/conf/dop/i18n/cp/common.yaml +++ b/conf/dop/i18n/cp/common.yaml @@ -315,6 +315,8 @@ zh: exitProjectConfirm: 退出当前项目后,将不再有项目协作权限,如要再次加入需要项目管理员邀请,请确认是否退出? searchAppName: 搜索应用名 unfinishedIssue: 未完成的事项 + sourceFile: 源文件 + en: issue-manage: issue manage issue: issue @@ -628,3 +630,4 @@ en: exitProjectConfirm: After exiting the current project, you will no longer have project collaboration permission. If you want to join again, you need to be invited by the project administrator. Are you sure you want to exit? searchAppName: Search app name unfinishedIssue: Unfinished issue + sourceFile: source file diff --git a/modules/dop/component-protocol/components/project-pipeline/myPage/tabsTable/pipelineTable/provider.go b/modules/dop/component-protocol/components/project-pipeline/myPage/tabsTable/pipelineTable/provider.go index b1976d1aef1..88575746ec0 100644 --- a/modules/dop/component-protocol/components/project-pipeline/myPage/tabsTable/pipelineTable/provider.go +++ b/modules/dop/component-protocol/components/project-pipeline/myPage/tabsTable/pipelineTable/provider.go @@ -76,6 +76,7 @@ const ( ColumnPipelineID table.ColumnKey = "pipelineID" ColumnMoreOperations table.ColumnKey = "moreOperations" ColumnSource table.ColumnKey = "source" + ColumnSourceFile table.ColumnKey = "sourceFile" ColumnProcess table.ColumnKey = "process" ColumnIcon table.ColumnKey = "icon" @@ -134,7 +135,7 @@ func (p *PipelineTable) SetTableColumns() table.ColumnsInfo { Merges: map[table.ColumnKey]table.MergedColumn{ ColumnSource: {[]table.ColumnKey{ColumnApplicationName, ColumnIcon, ColumnBranch}}, }, - Orders: []table.ColumnKey{ColumnPipelineName, ColumnSource, ColumnPipelineStatus, ColumnProcess, ColumnCostTime, + Orders: []table.ColumnKey{ColumnPipelineName, ColumnSource, ColumnSourceFile, ColumnPipelineStatus, ColumnProcess, ColumnCostTime, ColumnExecutor, ColumnStartTime, ColumnCreateTime, ColumnCreator, ColumnPipelineID, ColumnMoreOperations}, ColumnsMap: map[table.ColumnKey]table.Column{ ColumnPipelineName: {Title: cputil.I18n(p.sdk.Ctx, string(ColumnPipelineName))}, @@ -150,6 +151,7 @@ func (p *PipelineTable) SetTableColumns() table.ColumnsInfo { ColumnPipelineID: {Title: cputil.I18n(p.sdk.Ctx, string(ColumnPipelineID)), Hidden: true}, ColumnCreateTime: {Title: cputil.I18n(p.sdk.Ctx, string(ColumnCreateTime)), EnableSort: true, Hidden: true}, ColumnSource: {Title: cputil.I18n(p.sdk.Ctx, string(ColumnSource))}, + ColumnSourceFile: {Title: cputil.I18n(p.sdk.Ctx, string(ColumnSourceFile))}, ColumnIcon: {Title: cputil.I18n(p.sdk.Ctx, string(ColumnIcon))}, }, } @@ -383,6 +385,9 @@ func (p *PipelineTable) SetTableRows() []table.Row { ColumnMoreOperations: table.NewMoreOperationsCell(commodel.MoreOperations{ Ops: p.SetTableMoreOpItem(v, definitionYmlSourceMap, ymlSourceMapCronMap), }).Build(), + ColumnSourceFile: table.NewTextCell(func() string { + return v.FileName + }()).Build(), ColumnIcon: table.NewIconCell(commodel.Icon{ Type: "branch", }).Build(),