diff --git a/src/views/pages/deploy/job/publishing/phase-list.vue b/src/views/pages/deploy/job/publishing/phase-list.vue index 7808b4e8aeb546166cb6b841bf80d39f275065d8..6c05b1baa2f0f6d5db3ad290849ca8e8d5d43039 100644 --- a/src/views/pages/deploy/job/publishing/phase-list.vue +++ b/src/views/pages/deploy/job/publishing/phase-list.vue @@ -73,6 +73,11 @@ export default { StepConfig: () => import('@/views/pages/autoexec/detail/actionDetail/step/step-config.vue'), StepGroup: () => import('@/views/pages/deploy/application-config/pipeline/step-group') }, + provide() { + return { + getCombopConfig: this.combopConfig //流水线详情(阶段) + }; + }, props: { appSystemId: Number, envId: Number, @@ -91,7 +96,11 @@ export default { currentGroupConfig: null, selectStepList: [], paramsTypeList: [], - loadingShow: true + loadingShow: true, + combopConfig: { + phaseList: [], //阶段 + overrideProfileList: [] + } }; }, beforeCreate() {}, @@ -122,9 +131,13 @@ export default { this.$api.deploy.apppipeline.getAppPipeline(data).then(res => { if (res && res.Status == 'OK') { let data = res.Return || {}; - this.combopPhaseList = data.config.combopPhaseList || []; - this.combopGroupList = data.config.combopGroupList || []; - this.runtimeParamList = data.config.runtimeParamList || []; + const {config = {}} = data || {}; + const {combopPhaseList = [], combopGroupList = [], runtimeParamList = [], overrideProfileList = []} = config || {}; + this.combopPhaseList = combopPhaseList || []; + this.combopGroupList = combopGroupList || []; + this.runtimeParamList = runtimeParamList || []; + this.$set(this.combopConfig, 'overrideProfileList', overrideProfileList); + this.$set(this.combopConfig, 'phaseList', combopPhaseList); this.getSelectStepList(); } }).finally(() => {