[update] 修改UAT问题:法规符合性排查流程提交的时候设置扩展表格的展开keys去重

This commit is contained in:
lideqin
2024-09-13 20:29:59 +08:00
parent 1b13e5c1c1
commit 00da074328
+5 -1
View File
@@ -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 => {