From 5a993fd00d7c14f978bf9e3747429d4c5c7d271f Mon Sep 17 00:00:00 2001
From: lannoy0523 <935275025@qq.com>
Date: Tue, 8 Oct 2024 16:13:14 +0800
Subject: [PATCH] =?UTF-8?q?bug:=E5=89=8D=E7=AB=AF=E5=88=B6=E5=93=81?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E6=89=B9=E9=87=8F=E9=80=89=E6=8B=A9=E6=95=B0?=
=?UTF-8?q?=E7=9B=AE=E5=BC=82=E5=B8=B8=20#2629?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../devops-repository/src/store/actions/repoGeneric.js | 2 +-
.../src/views/repoGeneric/genericFormDialog.vue | 1 +
src/frontend/devops-repository/src/views/repoGeneric/index.vue | 3 ++-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/frontend/devops-repository/src/store/actions/repoGeneric.js b/src/frontend/devops-repository/src/store/actions/repoGeneric.js
index debad7e1c4..bc3c58bd4d 100644
--- a/src/frontend/devops-repository/src/store/actions/repoGeneric.js
+++ b/src/frontend/devops-repository/src/store/actions/repoGeneric.js
@@ -133,7 +133,7 @@ export default {
if (isPipeline && !fullPath && !name && localRepo) {
return Vue.prototype.$ajax.get(
`${prefix}/pipeline/list/${projectId}`
- ).then(records => ({ records, totalRecords: 0 }))
+ ).then(records => ({ records, totalRecords: records.length }))
} else {
return Vue.prototype.$ajax.post(
localRepo ? `${prefix}/node/search` : `generic/${projectId}/${repoName}/search`,
diff --git a/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue b/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue
index 6c99cd66eb..52588bef3d 100644
--- a/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue
+++ b/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue
@@ -291,6 +291,7 @@
}
fn.then(() => {
this.$emit('refresh')
+ this.$emit('cancelSelect')
if (!this.webError) {
this.$bkMessage({
theme: 'success',
diff --git a/src/frontend/devops-repository/src/views/repoGeneric/index.vue b/src/frontend/devops-repository/src/views/repoGeneric/index.vue
index 0dc89f0f6c..e1c9444eab 100644
--- a/src/frontend/devops-repository/src/views/repoGeneric/index.vue
+++ b/src/frontend/devops-repository/src/views/repoGeneric/index.vue
@@ -221,7 +221,7 @@
-
+
@@ -925,6 +925,7 @@
fullPath
}).then(res => {
this.refreshNodeChange()
+ this.cancelSelect()
if (folder) {
if (totalRecords === res.deletedNumber) {
this.$bkMessage({