点击批量操作选中什么表格相应的就会被选中

  confirm(){
console.log(this.trainStatus);
let checkbox=$("#checkboxs input[type='checkbox']");
this.sampleList.forEach(v=>{
if(v.status==true){
v.trainStatus=checkbox[0].checked;
v.testStatus=checkbox[1].checked;
v.otherStatus=checkbox[2].checked;
}else{
}
});

}
原文地址:https://www.cnblogs.com/ycc-521/p/9983766.html