From 06ab8bf5501bcd1cebc2642a95a14cf658289c08 Mon Sep 17 00:00:00 2001 From: vhwweng <1010382269@qq.com> Date: Mon, 9 Oct 2023 11:04:33 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BB=A3=E7=A0=81=E5=BA=93?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E6=9C=9F=E5=8A=9F=E8=83=BD=E7=82=B9?= =?UTF-8?q?=20#9347?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CodeLibDetail/ResetAuthDialog.vue | 23 +++++- .../CodeLibDetail/timeline-collapse.vue | 70 +++++++++++++------ .../src/components/CodeLibDialog/Gitlab.vue | 2 +- .../src/components/CodeLibDialog/P4.vue | 2 +- .../src/components/CodeLibDialog/SVN.vue | 2 +- .../src/components/CodeLibDialog/index.vue | 16 ++++- .../src/components/status-icon.vue | 2 +- .../devops-codelib/src/config/index.js | 2 +- .../devops-codelib/src/views/Index.vue | 5 +- src/frontend/locale/codelib/en-US.json | 5 +- src/frontend/locale/codelib/zh-CN.json | 3 +- 11 files changed, 93 insertions(+), 39 deletions(-) diff --git a/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue b/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue index 955b5fe8428..db0e3232b2b 100644 --- a/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue +++ b/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue @@ -16,7 +16,9 @@ {{ $t('codelib.resetAuth') }} - + {{option.credentialId}} { + console.log(12321) + this.handleUpdateRepo() + }) }, handleClose (val) { if (!val) { @@ -542,4 +557,6 @@ color: #979BA5; } } + .codelib-credential-selector { + } diff --git a/src/frontend/devops-codelib/src/components/CodeLibDetail/timeline-collapse.vue b/src/frontend/devops-codelib/src/components/CodeLibDetail/timeline-collapse.vue index da27a86bd96..c84629f6b26 100644 --- a/src/frontend/devops-codelib/src/components/CodeLibDetail/timeline-collapse.vue +++ b/src/frontend/devops-codelib/src/components/CodeLibDetail/timeline-collapse.vue @@ -13,9 +13,9 @@ 'collapse-item-header': true, 'active': activeIndex === index }" @click="handleShowDetail(item, index)"> -
- - +
+ + {{ new Date(item.eventTime).toLocaleString().split('.').join('-') }} @@ -26,23 +26,26 @@ ({{ item.success }}/{{ item.total }})
- - - {{ $t('codelib.一键重新触发') }} - + +
- {{ detail.reason }} | + TRIGGER_NOT_MATCH | {{ i }}
@@ -247,10 +250,29 @@ &.active { background-color: #E1ECFF; } + .title { + display: flex; + flex: 1; + overflow: hidden; + align-items: center; + } + .icon { + flex-shrink: 0; + } + .desc { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + .header-right { + display: flex; + align-items: center; + flex-shrink: 0; + margin-left: 50px; .one-click-trigger { - position: absolute; - right: 60px; font-size: 12px; + margin-right: 20px; } } .right-shape { @@ -262,9 +284,11 @@ .trigger-time { padding-left: 8px; color: #979BA5; + flex-shrink: 0; } .success-num { padding-left: 24px; + flex-shrink: 0; &.red { color: red; } diff --git a/src/frontend/devops-codelib/src/components/CodeLibDialog/Gitlab.vue b/src/frontend/devops-codelib/src/components/CodeLibDialog/Gitlab.vue index c3f275fc70a..f43c9c59446 100644 --- a/src/frontend/devops-codelib/src/components/CodeLibDialog/Gitlab.vue +++ b/src/frontend/devops-codelib/src/components/CodeLibDialog/Gitlab.vue @@ -78,7 +78,7 @@ :key="option.credentialId" :id="option.credentialId" :name="option.credentialId"> - + {{option.credentialId}} - + {{option.credentialId}} - + {{option.credentialId}}