Skip to content

Commit

Permalink
bug:前端制品列表批量选择数目异常 TencentBlueKing#2629
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Oct 9, 2024
1 parent b62ea50 commit 44224bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
}
fn.then(() => {
this.$emit('refresh')
this.$emit('cancelSelect')
if (!this.webError) {
this.$bkMessage({
theme: 'success',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

<generic-clean-dialog ref="genericCleanDialog" @refresh="refreshNodeChange"></generic-clean-dialog>
<generic-detail ref="genericDetail"></generic-detail>
<generic-form-dialog ref="genericFormDialog" @refresh="refreshNodeChange"></generic-form-dialog>
<generic-form-dialog ref="genericFormDialog" @refresh="refreshNodeChange" @cancelSelect="cancelSelect"></generic-form-dialog>
<generic-share-dialog ref="genericShareDialog"></generic-share-dialog>
<generic-tree-dialog ref="genericTreeDialog" @update="updateGenericTreeNode" @refresh="refreshNodeChange"></generic-tree-dialog>
<preview-basic-file-dialog ref="previewBasicFileDialog"></preview-basic-file-dialog>
Expand Down Expand Up @@ -925,6 +925,7 @@
fullPath
}).then(res => {
this.refreshNodeChange()
this.cancelSelect()
if (folder) {
if (totalRecords === res.deletedNumber) {
this.$bkMessage({
Expand Down

0 comments on commit 44224bf

Please sign in to comment.