|
|
|
@ -231,8 +231,19 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
funteachercomment=(list,key)=> {
|
|
|
|
|
// console.log(e.target.value)
|
|
|
|
|
let {teacher_comment, task_status, course_group, cross_comment, order, b_order, search} = this.state;
|
|
|
|
|
if(this.state.teacher_comment!=null&&list.length>0){
|
|
|
|
|
if(this.state.teacher_comment.length>0){
|
|
|
|
|
list.map((item,key)=>{
|
|
|
|
|
this.state.teacher_comment.map((k,y)=>{
|
|
|
|
|
if(item===k){
|
|
|
|
|
list.splice(key, 1)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let listype =list instanceof Array;
|
|
|
|
|
let listype =list instanceof Array;
|
|
|
|
|
if(listype===false){
|
|
|
|
|
this.setState({
|
|
|
|
|
teacher_comment:null,
|
|
|
|
@ -246,14 +257,17 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(list.length===key){
|
|
|
|
|
this.seacthdata(undefined, task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(undefined, task_status, course_group, cross_comment, search)
|
|
|
|
|
}else{
|
|
|
|
|
this.seacthdata(list[0], task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(list[0], task_status, course_group, cross_comment, search)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.seacthdata(list.length===0?undefined:list[0], task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(list.length===0?undefined:list[0], task_status, course_group, cross_comment, search)
|
|
|
|
|
// if(list.length===key){
|
|
|
|
|
// this.seacthdata(undefined, task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
// this.props.getsonar(undefined, task_status, course_group, cross_comment, search)
|
|
|
|
|
// }else{
|
|
|
|
|
// this.seacthdata(list[0], task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
// this.props.getsonar(list[0], task_status, course_group, cross_comment, search)
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1348,7 +1362,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
<a id="graduation_comment_no_limit" alue={null} className={teacher_comment===null?"pl10 pr10 check_on":"pl10 pr10 "} onClick={this.funteachercomment}>全部</a>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<CheckboxGroup value={teacher_comment} onChange={(e)=>this.funteachercomment(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.length)} style={{ paddingTop: '4px'}}>
|
|
|
|
|
<CheckboxGroup value={teacher_comment} onChange={(e)=>this.funteachercomment(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.length)} style={{ paddingTop: '4px'}}>
|
|
|
|
|
{taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span key={key}>
|
|
|
|
|