Skip to content

Commit

Permalink
feat:推荐版本号模版优化 TencentBlueKing#11186
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25685
  • Loading branch information
useryuyu committed Dec 3, 2024
1 parent 783a590 commit 72fb83c
Showing 1 changed file with 37 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,38 +580,43 @@
]),
changePluginPause (isContinue, loadingKey) {
const postData = {
projectId: this.projectId,
pipelineId: this.pipelineId,
buildId: this.$route.params.buildNo,
taskId: this.element.id,
isContinue,
stageId: this.stage.id,
containerId: this.container.id,
element: this.element
}
const editingElementPos = {
...this.editingElementPos
}
this[loadingKey] = true
this.togglePropertyPanel({
isShow: false,
showPanelType: ''
})
this.pausePlugin(postData).then(() => {
return this.requestPipelineExecDetail(this.$route.params)
}).catch((err) => {
this.$showTips({
message: err.message || err,
theme: 'error'
})
this.togglePropertyPanel({
isShow: true,
editingElementPos,
showPanelType: 'PAUSE'
})
}).finally(() => {
this[loadingKey] = false
this.$bkInfo({
title: this.$t('isTaskTermination'),
confirmFn: async () => {
const postData = {
projectId: this.projectId,
pipelineId: this.pipelineId,
buildId: this.$route.params.buildNo,
taskId: this.element.id,
isContinue,
stageId: this.stage.id,
containerId: this.container.id,
element: this.element
}
const editingElementPos = {
...this.editingElementPos
}
this[loadingKey] = true
this.togglePropertyPanel({
isShow: false,
showPanelType: ''
})
this.pausePlugin(postData).then(() => {
return this.requestPipelineExecDetail(this.$route.params)
}).catch((err) => {
this.$showTips({
message: err.message || err,
theme: 'error'
})
this.togglePropertyPanel({
isShow: true,
editingElementPos,
showPanelType: 'PAUSE'
})
}).finally(() => {
this[loadingKey] = false
})
}
})
},
setAtomValidate (addErrors, removeErrors) {
Expand Down

0 comments on commit 72fb83c

Please sign in to comment.