弹框=》表格多选回显
需求:弹框表格中,之前选中的数据回显
实现:
先拿到之前选中的数据
idsMore.forEach((v, i) => {
this.siteList.forEach((_v, _i) => {
if (v === _v.id) {
//表格的ref
this.$refs.multipleTable.toggleRowSelection(_v, true)
}
})
})