dev_static
杨树明 5 years ago
parent 963f25258d
commit 7780252230

@ -231,6 +231,17 @@ 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;
if(listype===false){
@ -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)
//
// }
}

Loading…
Cancel
Save