diff --git a/src/views/pages/deploy/pipeline/pipeline-edit.vue b/src/views/pages/deploy/pipeline/pipeline-edit.vue index 3ea14e2c8a2321e44e34c6a9f74ecb18ee25d279..56b4a77be04bc770c457daba69c856ace5b2fb7b 100644 --- a/src/views/pages/deploy/pipeline/pipeline-edit.vue +++ b/src/views/pages/deploy/pipeline/pipeline-edit.vue @@ -70,7 +70,7 @@ >
- +
{{ job.envName }}
{{ job.appSystemAbbrName }}
@@ -185,8 +185,9 @@ export default { beforeDestroy() {}, destroyed() {}, methods: { - editJob(job) { + editJob(job, group) { this.currentJob = job; + this.currentGroup = group; this.isJobTemplateDialogShow = true; }, editAuth() { @@ -287,7 +288,9 @@ export default { updateJobTemplate(jobTemplateData) { console.log(JSON.stringify(jobTemplateData, null, 2)); if (!this.$utils.isEmpty(this.currentGroup)) { - const index = this.currentGroup.jobTemplateList.findIndex(job => { job.id === jobTemplateData.id || job.uuid === jobTemplateData.uuid; }); + const index = this.currentGroup.jobTemplateList.findIndex(job => { + return job.id === jobTemplateData.id || job.uuid === jobTemplateData.uuid; + }); if (index > -1) { this.$set(this.currentGroup.jobTemplateList, index, jobTemplateData); }