|
|
|
@ -62,6 +62,8 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
let{teacher_comment,task_status,course_group,cross_comment,order,b_order,search}=this.state;
|
|
|
|
|
this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,this.state.page);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment, task_status, course_group, cross_comment, search)
|
|
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
this.props.triggerRef(this)
|
|
|
|
|
}catch(e){
|
|
|
|
@ -88,6 +90,8 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
})
|
|
|
|
|
let {teacher_comment, task_status, course_group, cross_comment, order, b_order, search} = this.state;
|
|
|
|
|
this.seacthdata(teacher_comment, task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment, task_status, course_group, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
seacthdata=(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pages)=>{
|
|
|
|
@ -227,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,
|
|
|
|
@ -242,12 +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);
|
|
|
|
|
}else{
|
|
|
|
|
this.seacthdata(list[0], task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
let newvalue=list.length===0?undefined:parseInt(list[0])
|
|
|
|
|
this.seacthdata(newvalue, task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(newvalue, 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)
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -262,7 +282,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate:true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, task_status, course_group, e.target.value===undefined||e.target.value===false?"":e.target.value, order, b_order, search,this.state.page);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment, task_status, course_group, e.target.value===undefined||e.target.value===false?"":e.target.value, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inputSearchValue=(e)=>{
|
|
|
|
@ -287,7 +307,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate:true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, task_status, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment, task_status, course_group, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
funorder = (value, newb_order) => {
|
|
|
|
@ -299,7 +319,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate: true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, task_status, course_group, cross_comment, value, newb_order, search,this.state.page);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment, task_status, course_group, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -320,6 +340,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate:true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, null, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(teacher_comment, null, course_group, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
// else if(checkedValues.length ===key){
|
|
|
|
|
// // 全部抖选中 自然就是查找全部 就是空
|
|
|
|
@ -336,7 +357,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate:true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, checkedValues===key?undefined:checkedValues, course_group, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment, checkedValues===key?undefined:checkedValues, course_group, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -355,6 +376,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate:true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, task_status, null, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(teacher_comment,task_status, null, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
// else if(checkedValues.length ===key){
|
|
|
|
|
// // 全部抖选中 自然就是查找全部 就是空
|
|
|
|
@ -372,6 +394,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
loadingstate:true
|
|
|
|
|
})
|
|
|
|
|
this.seacthdata(teacher_comment, task_status, checkedValues===key?undefined:checkedValues, cross_comment, order, b_order, search,this.state.page);
|
|
|
|
|
this.props.getsonar(teacher_comment,task_status, checkedValues===key?undefined:checkedValues, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -564,6 +587,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
// console.log(result)
|
|
|
|
|
if(result.data.status===0){
|
|
|
|
|
this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,this.state.page);
|
|
|
|
|
this.props.getsonar(teacher_comment,task_status, course_group, cross_comment, search)
|
|
|
|
|
this.props.showNotification(result.data.message);
|
|
|
|
|
this.cancelmodel();
|
|
|
|
|
this.setState({
|
|
|
|
@ -681,7 +705,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
})
|
|
|
|
|
let{teacher_comment,task_status,course_group,cross_comment,order,b_order,search}=this.state;
|
|
|
|
|
this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pageNumber);
|
|
|
|
|
|
|
|
|
|
this.props.getsonar(teacher_comment,task_status, course_group, cross_comment, search)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 确认是否下载
|
|
|
|
@ -1338,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}>
|
|
|
|
|