Commit f25e8d43 authored by zhengke's avatar zhengke

1

parent b76a84e6
...@@ -268,7 +268,6 @@ ...@@ -268,7 +268,6 @@
dataList: [], //数据列表 dataList: [], //数据列表
checkedStu: [], //选中数据 checkedStu: [], //选中数据
checked: false, checked: false,
isReSearch:false
} }
}, },
mounted() { mounted() {
...@@ -332,7 +331,6 @@ ...@@ -332,7 +331,6 @@
}, },
//装进右侧选中方法 //装进右侧选中方法
getCkedChild(){ getCkedChild(){
if(!this.isReSearch){
this.checkedStu=[]; this.checkedStu=[];
this.dataList.forEach(x=>{ this.dataList.forEach(x=>{
x.SubList.forEach(y=>{ x.SubList.forEach(y=>{
...@@ -341,21 +339,9 @@ ...@@ -341,21 +339,9 @@
} }
}) })
}) })
}else{
let newArr = [];
this.dataList.forEach(x=>{
x.SubList.forEach(y=>{
if(y.IsCheck){
newArr.push(y);
}
})
})
this.checkedStu = this.checkedStu.concat(newArr);
}
}, },
//重新查询 //重新查询
research() { research() {
this.isReSearch=true;
this.getClassStudentTree(); 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