期望是选中人员后,在进行查询时该复选框仍然存在(可多选)
CheckList;//已选中数组
arrays;//表格数据源
table;//表格ref
this.$nextTick(()=>{
arrays.forEach((row,index,arr) => {
CheckList.forEach(item=>{
if(row.bh==item.bh){
table.toggleRowSelection(row,true);
}
})
})
})
效果