From 00da074328599d6fa89452e28c6b33d285d15e88 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 13 Sep 2024 20:29:59 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9UAT=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9A=E6=B3=95=E8=A7=84=E7=AC=A6=E5=90=88=E6=80=A7?= =?UTF-8?q?=E6=8E=92=E6=9F=A5=E6=B5=81=E7=A8=8B=E6=8F=90=E4=BA=A4=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E8=AE=BE=E7=BD=AE=E6=89=A9=E5=B1=95=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E7=9A=84=E5=B1=95=E5=BC=80keys=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/JExpandTable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/JExpandTable.vue b/src/components/JExpandTable.vue index efb591b..339dad7 100644 --- a/src/components/JExpandTable.vue +++ b/src/components/JExpandTable.vue @@ -282,6 +282,9 @@ export default { }, deep: true, immediate: true + }, + expandedRowKeys (val) { + console.log('expandedRowKeys改变了', val) } }, data () { @@ -359,7 +362,8 @@ export default { const firstPage = parseInt((Number(firstIndex) + 1) / this.ipagination.pageSize) + 1 this.ipagination.current = firstPage this.$nextTick(() => { - this.expandedRowKeys = [...this.expandedRowKeys, ...errorRows.map(tt => tt.rowKey)] + const arr = [...this.expandedRowKeys, ...errorRows.map(tt => tt.rowKey)] + this.expandedRowKeys = Array.from(new Set(arr)) let timer = setTimeout(() => { this.$nextTick(() => { errorIndex.forEach(index => {