Commit f25e8d43 authored by zhengke's avatar zhengke

1

parent b76a84e6
......@@ -268,7 +268,6 @@
dataList: [], //数据列表
checkedStu: [], //选中数据
checked: false,
isReSearch:false
}
},
mounted() {
......@@ -332,30 +331,17 @@
},
//装进右侧选中方法
getCkedChild(){
if(!this.isReSearch){
this.checkedStu=[];
this.dataList.forEach(x=>{
x.SubList.forEach(y=>{
if(y.IsCheck){
this.checkedStu.push(y);
}
})
})
}else{
let newArr = [];
this.dataList.forEach(x=>{
x.SubList.forEach(y=>{
if(y.IsCheck){
newArr.push(y);
}
})
this.checkedStu=[];
this.dataList.forEach(x=>{
x.SubList.forEach(y=>{
if(y.IsCheck){
this.checkedStu.push(y);
}
})
this.checkedStu = this.checkedStu.concat(newArr);
}
})
},
//重新查询
research() {
this.isReSearch=true;
this.getClassStudentTree();
},
//获取题库分页列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment