Skip to content

Commit

Permalink
chore:chore:clean code.
Browse files Browse the repository at this point in the history
Signed-off-by: leozhang2018 <[email protected]>
  • Loading branch information
leozhang2018 committed Mar 27, 2023
1 parent 161c272 commit 1734916
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
15 changes: 0 additions & 15 deletions src/components/projects/workflow/list/virtualListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
:projectName="workflow.projectName || workflow.project_name"
:stages="stages"
:recentTaskStatus="workflow.recentTask?workflow.recentTask.status:''"
:recentSuccessID="workflow.recentSuccessfulTask?`#${workflow.recentSuccessfulTask.taskID}`:''"
:avgRuntime="makeAvgRunTime(workflow)"
:avgSuccessRate="makeAvgSuccessRate(workflow)"
:recentSuccessLink="makeTaskDetailLink(workflow.projectName,workflow.recentSuccessfulTask,workflow.workflow_type)"
:recentFailID="workflow.recentFailedTask?`#${workflow.recentFailedTask.taskID}`:''"
:recentFailLink="makeTaskDetailLink(workflow.projectName,workflow.recentFailedTask,workflow.workflow_type)"
:updateTime="$utils.convertTimestamp(workflow.update_time)"
:description="workflow.description"
@refreshWorkflow="refreshWorkflow"
Expand Down Expand Up @@ -278,17 +274,6 @@ export default {
return successRate * 100 + '%'
}
},
makeTaskDetailLink (projectName, taskInfo, type) {
if (taskInfo) {
if (type === 'common_workflow' || type === 'release') {
return `/v1/projects/detail/${projectName}/pipelines/custom/${taskInfo.pipelineName}/${taskInfo.taskID}?status=${taskInfo.status}&display_name=${this.workflow.display_name}`
} else {
return `/v1/projects/detail/${projectName}/pipelines/multi/${taskInfo.pipelineName}/${taskInfo.taskID}?status=${taskInfo.status}&display_name=${this.workflow.display_name}`
}
} else {
return ''
}
},
wordTranslation (word, category, subitem) {
return wordTranslate(word, category, subitem)
},
Expand Down
17 changes: 0 additions & 17 deletions src/components/projects/workflow/list/workflowRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,10 @@ export default {
type: Array,
required: true
},
recentTaskStatus: {
type: String,
required: true
},
recentSuccessID: {
type: String,
required: true
},
recentSuccessLink: {
type: String,
required: true
},
recentFailID: {
type: String,
required: true
},
recentFailLink: {
type: String,
required: true
},
updateTime: {
type: String,
required: true
Expand Down

0 comments on commit 1734916

Please sign in to comment.