|
|
@@ -298,7 +298,7 @@
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn width="60">
|
|
|
<template #default="scope">
|
|
|
- <ElButton type="text" @click="deleteProduction(scope.row.id)">
|
|
|
+ <ElButton type="text" @click="deleteProduction(scope.row.pipelineId)">
|
|
|
<i class="el-icon-delete"></i>
|
|
|
</ElButton>
|
|
|
</template>
|
|
|
@@ -468,9 +468,12 @@ export default {
|
|
|
open(url, target) {
|
|
|
window.open(url, target);
|
|
|
},
|
|
|
- async deleteProduction(id) {
|
|
|
+ async deleteProduction(pipelineId) {
|
|
|
this.loading = true;
|
|
|
- await PipelineAPI.deleteInstance(id);
|
|
|
+ await PipelineAPI.deleteInstance({
|
|
|
+ projectId: this.$store.state.workspace.currentProjectId,
|
|
|
+ pipelineId,
|
|
|
+ });
|
|
|
this.loading = false;
|
|
|
},
|
|
|
getStage(stageName) {
|