From 1b0cc1d0c2199dab44b0e504eb8a523a1708ba79 Mon Sep 17 00:00:00 2001 From: vhwweng <1010382269@qq.com> Date: Mon, 11 Sep 2023 16:40:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B5=81=E6=B0=B4=E7=BA=BF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=BD=92=E6=A1=A3=E7=9B=AE=E5=BD=95=20#9320?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Outputs/index.vue | 14 ++++++++++++-- src/frontend/locale/pipeline/en-US.json | 3 ++- src/frontend/locale/pipeline/zh-CN.json | 3 ++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/frontend/devops-pipeline/src/components/Outputs/index.vue b/src/frontend/devops-pipeline/src/components/Outputs/index.vue index 54648915b58..1d9e64dacc0 100644 --- a/src/frontend/devops-pipeline/src/components/Outputs/index.vue +++ b/src/frontend/devops-pipeline/src/components/Outputs/index.vue @@ -81,9 +81,17 @@ theme="primary" v-for="btn in btns" :key="btn.text" + :disabled="btn.disabled" @click="btn.handler" > - {{ btn.text }} + + {{ btn.text }} + + window.open(this.activeOutputDetail.url, '_blank') + handler: () => window.open(this.activeOutputDetail.url, '_blank'), + disabled: this.activeOutputDetail.size.includes('GB') && this.activeOutputDetail.size.split(' ')[0] > 10, + disabledTips: this.$t('downloadDisabledTips') }) break } diff --git a/src/frontend/locale/pipeline/en-US.json b/src/frontend/locale/pipeline/en-US.json index 53cc6732b48..fff0d444e87 100644 --- a/src/frontend/locale/pipeline/en-US.json +++ b/src/frontend/locale/pipeline/en-US.json @@ -1175,5 +1175,6 @@ "exitFullscreen": "Exit Full Screen", "skipSuc": "Skipped the failed step and continued running", "skipFail": "Skip failed", - "nonManual": "Non Manual" + "nonManual": "Non Manual", + "downloadDisabledTips": "The file size in the directory exceeds 10 G. Please go to the BKrepo to download in batches." } \ No newline at end of file diff --git a/src/frontend/locale/pipeline/zh-CN.json b/src/frontend/locale/pipeline/zh-CN.json index 0e07aa26ed2..314cd827132 100644 --- a/src/frontend/locale/pipeline/zh-CN.json +++ b/src/frontend/locale/pipeline/zh-CN.json @@ -1178,5 +1178,6 @@ "exitFullscreen": "退出全屏", "skipSuc": "已跳过失败的步骤,继续运行", "skipFail": "跳过失败", - "nonManual": "非手动" + "nonManual": "非手动", + "downloadDisabledTips": "目录下的文件大小超过 10 G,请到制品库分批下载" } \ No newline at end of file