如何建设公司企业安全文化,青岛百度优化,一站式外贸服务平台,网站右下角图片广告代码一、取消所有选中 1、表格上绑定ref 2、清空用户选中数据
this.$refs.loopRef.clearSelection()二、勾选状态赋值 获取数据#xff0c;flag为true则是选中状态#xff0c;并将前面勾选框设为选中状态
this.listData.forEach(item {if(row.flag1){this.$refs.loopRef.to…
一、取消所有选中 1、表格上绑定ref 2、清空用户选中数据
this.$refs.loopRef.clearSelection()二、勾选状态赋值 获取数据flag为true则是选中状态并将前面勾选框设为选中状态
this.listData.forEach(item {if(row.flag1){this.$refs.loopRef.toggleRowSelection(item)}
})