From 911353b420f9623fb22bb4814bd24465464245d9 Mon Sep 17 00:00:00 2001 From: vhwweng <1010382269@qq.com> Date: Sat, 4 Nov 2023 15:46:26 +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/ExecDetail/Artifactory.vue | 30 ++++++++++++++++--- .../src/components/Outputs/index.vue | 2 ++ src/frontend/locale/pipeline/en-US.json | 3 +- src/frontend/locale/pipeline/zh-CN.json | 3 +- 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue b/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue index 5ef98f92dbd..894f9aa1aed 100644 --- a/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue +++ b/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue @@ -25,18 +25,37 @@ - - + + + - + + @@ -109,7 +128,10 @@ this.artifactories = res.records.map((item) => ({ ...item, - icon: item.folder ? 'folder' : extForFile(item.name) + icon: item.folder ? 'folder' : extForFile(item.name), + size: item.folder ? this.sizeFormatter(this.getFolderSize(item)) : this.sizeFormatter(item.size), + disabled: item.folder && this.sizeFormatter(this.getFolderSize(item)).includes('GB') && this.sizeFormatter(this.getFolderSize(item)).split(' ')[0] > 10, + disabledTips: this.$t('downloadDisabledTips') })) || [] this.hasPermission = permission if (this.artifactories.length <= 0) { diff --git a/src/frontend/devops-pipeline/src/components/Outputs/index.vue b/src/frontend/devops-pipeline/src/components/Outputs/index.vue index 1395955169f..c86ade6eef8 100644 --- a/src/frontend/devops-pipeline/src/components/Outputs/index.vue +++ b/src/frontend/devops-pipeline/src/components/Outputs/index.vue @@ -39,6 +39,7 @@ />