1 获取表格api
methods中添加方法
onGridReady(params) {
this.gridApi = params.api;
}
2 .1 执行更新方法
2.2 移除某行,但不重新渲染整个表格
代码
// 多行渲染
this.baseList.forEach(item => {
if (this.selectedRowIds.includes(item.companyId)) {
item.hasAttended = false;
const tran = {
update: [item]
};
this.gridApi.applyTransaction(tran);
}
});