let checkedStudents = this.data.checkedStudents
//判断两个数组是否有相同的id 如果有相同的id 给当前的student添加选中状态
oarr.forEach(item => {
const isChecked = checkedStudents.some(citem => citem.studentId === item.studentId);
item.checked = isChecked;
});
let checkedStudents = this.data.checkedStudents
//判断两个数组是否有相同的id 如果有相同的id 给当前的student添加选中状态
oarr.forEach(item => {
const isChecked = checkedStudents.some(citem => citem.studentId === item.studentId);
item.checked = isChecked;
});