网站开发需要那些人才中国各大网站开发语言

一、取消所有选中
 1、表格上绑定ref
 2、清空用户选中数据
this.$refs.loopRef.clearSelection()
 
二、勾选状态赋值
 获取数据,flag为true则是选中状态,并将前面勾选框设为选中状态
this.listData.forEach(item=> {if(row.flag==1){this.$refs.loopRef.toggleRowSelection(item)}
})

一、取消所有选中
 1、表格上绑定ref
 2、清空用户选中数据
this.$refs.loopRef.clearSelection()
 
二、勾选状态赋值
 获取数据,flag为true则是选中状态,并将前面勾选框设为选中状态
this.listData.forEach(item=> {if(row.flag==1){this.$refs.loopRef.toggleRowSelection(item)}
})