From c8b831b4124140b4df955a25004c8fd6b7d815cd Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 22 Apr 2024 14:18:16 +0800 Subject: [PATCH] =?UTF-8?q?CN-1592=20fix:=20=E4=BF=AE=E5=A4=8Dtag=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=97=B6=E9=87=8D=E5=A4=8D=E8=AF=B7=E6=B1=82=E5=92=8C?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/tag/TagTable.vue | 4 +++- src/views/tag/Tag.vue | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/table/tag/TagTable.vue b/src/components/table/tag/TagTable.vue index 7a0cce6a..6294b6c9 100644 --- a/src/components/table/tag/TagTable.vue +++ b/src/components/table/tag/TagTable.vue @@ -722,8 +722,10 @@ export default { this.noMinutes = false this.disableToEntity = false clearInterval(this.interval) + this.expandedIds = [] if (expandedRows.length > 0 && row) { - this.init(row) + // this.init(row) + this.expandedIds.push(row.id) this.$nextTick(() => { const uniqueEntityObservedDom = document.getElementById('uniqueEntityObserved' + row.id) if (uniqueEntityObservedDom) { diff --git a/src/views/tag/Tag.vue b/src/views/tag/Tag.vue index f426eb6f..f17fd1da 100644 --- a/src/views/tag/Tag.vue +++ b/src/views/tag/Tag.vue @@ -164,6 +164,7 @@ export default { params = { ...params, name: this.source } } this.getTableData(params) + this.$refs.dataTable.expandedIds = [] }, categoryChange (value) { let params = {} @@ -180,6 +181,7 @@ export default { params = { ...params, name: this.source } } this.getTableData(params) + this.$refs.dataTable.expandedIds = [] }, sourceChange (value) { let params = {} @@ -196,6 +198,7 @@ export default { params = { ...params, name: this.name } } this.getTableData(params) + this.$refs.dataTable.expandedIds = [] }, search (params) { this.name = params.q @@ -208,6 +211,7 @@ export default { } this.pageObj.pageNo = 1 this.getTableData(params) + this.$refs.dataTable.expandedIds = [] }, delBatch () { const ids = [] @@ -257,6 +261,7 @@ export default { this.isSelectedStatus = false this.disableDelete = true this.batchDeleteObjs = [] + this.$refs.dataTable.expandedIds = [] } }) } @@ -294,6 +299,7 @@ export default { } }).finally(() => { this.toggleLoading(false) + this.$refs.dataTable.expandedIds = [] }) } this.isInit = false