From c6b977a976372377ebfc941f9f9a8fe0dd253af4 Mon Sep 17 00:00:00 2001 From: v_hwweng Date: Fri, 27 Dec 2024 18:29:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=AF=BC=E5=87=BA/=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=B5=81=E6=B0=B4=E7=BA=BF=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20#11304=20#=20Reviewed,=20transaction=20id:=2028072?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/ExportDialog.vue | 6 +- .../ImportPipelinePopup/index.vue | 108 ++++++++++-------- .../src/store/modules/atom/actions.js | 11 +- 3 files changed, 72 insertions(+), 53 deletions(-) diff --git a/src/frontend/devops-pipeline/src/components/ExportDialog.vue b/src/frontend/devops-pipeline/src/components/ExportDialog.vue index 49872de6b7d..f4f333a5c18 100644 --- a/src/frontend/devops-pipeline/src/components/ExportDialog.vue +++ b/src/frontend/devops-pipeline/src/components/ExportDialog.vue @@ -41,6 +41,7 @@ import { PROCESS_API_URL_PREFIX } from '@/store/constants' import Logo from '@/components/Logo' import { mapActions, mapState } from 'vuex' + import { CODE_MODE, UI_MODE } from '@/utils/pipelineConst' export default { components: { @@ -78,7 +79,7 @@ exportList () { return [ { - type: 'pipelineJson', + type: UI_MODE, title: 'Pipeline Json', icon: 'export-pipeline', name: `${this.pipelineName}.json`, @@ -86,13 +87,12 @@ exportUrl: `${API_URL_PREFIX}/${PROCESS_API_URL_PREFIX}/user/pipelines/${this.pipelineId}/projects/${this.projectId}/export` }, { - type: 'pipelineYaml', + type: CODE_MODE, title: 'Pipeline YAML', icon: 'export-pipeline', name: `${this.pipelineName}.yml`, tips: this.$t('newlist.exportPipelineYamlTip'), exportUrl: `${API_URL_PREFIX}/${PROCESS_API_URL_PREFIX}/user/transfer/projects/${this.projectId}?pipelineId=${this.pipelineId}&actionType=FULL_MODEL2YAML`, - tipsLink: `${IWIKI_DOCS_URL}/p/4009967153`, params: { modelAndSetting: { model: this.pipeline, diff --git a/src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup/index.vue b/src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup/index.vue index 4b0e07c0c1e..c284d6703ba 100644 --- a/src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup/index.vue +++ b/src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup/index.vue @@ -23,7 +23,8 @@