Commit fb44824c authored by zhengke's avatar zhengke

修改

parent 79b64fc3
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<div class="SendContent"> <div class="SendContent">
<div class="SendOne_Left"> <div class="SendOne_Left">
<div class="object_tit"> <div class="object_tit">
<span>班级/学生</span> <span style="margin-left:20px;">班级/学生</span>
<span>全选</span> <span>全选</span>
</div> </div>
<div class="objectList"> <div class="objectList">
...@@ -267,7 +267,8 @@ ...@@ -267,7 +267,8 @@
loading: false, //表格加载进度条 loading: false, //表格加载进度条
dataList: [], //数据列表 dataList: [], //数据列表
checkedStu: [], //选中数据 checkedStu: [], //选中数据
checked: false checked: false,
isReSearch:false
} }
}, },
mounted() { mounted() {
...@@ -331,6 +332,7 @@ ...@@ -331,6 +332,7 @@
}, },
//装进右侧选中方法 //装进右侧选中方法
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=>{
...@@ -339,9 +341,21 @@ ...@@ -339,9 +341,21 @@
} }
}) })
}) })
}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();
}, },
//获取题库分页列表 //获取题库分页列表
...@@ -356,6 +370,7 @@ ...@@ -356,6 +370,7 @@
this.checkedStu = this.sendStudent; this.checkedStu = this.sendStudent;
this.getLeftChecked(); 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