Commit fb44824c authored by zhengke's avatar zhengke

修改

parent 79b64fc3
......@@ -186,7 +186,7 @@
<div class="SendContent">
<div class="SendOne_Left">
<div class="object_tit">
<span>班级/学生</span>
<span style="margin-left:20px;">班级/学生</span>
<span>全选</span>
</div>
<div class="objectList">
......@@ -267,7 +267,8 @@
loading: false, //表格加载进度条
dataList: [], //数据列表
checkedStu: [], //选中数据
checked: false
checked: false,
isReSearch:false
}
},
mounted() {
......@@ -331,17 +332,30 @@
},
//装进右侧选中方法
getCkedChild(){
this.checkedStu=[];
this.dataList.forEach(x=>{
x.SubList.forEach(y=>{
if(y.IsCheck){
this.checkedStu.push(y);
}
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.checkedStu.concat(newArr);
}
},
//重新查询
research() {
this.isReSearch=true;
this.getClassStudentTree();
},
//获取题库分页列表
......@@ -356,6 +370,7 @@
this.checkedStu = this.sendStudent;
this.getLeftChecked();
}
console.log(this.checkedStu,'checkedStu');
}
})
},
......
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