|
|
|
@ -334,22 +334,20 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
delecttask_status=(id,student_id)=>{
|
|
|
|
|
let newid=id===undefined||id===null?student_id:id;
|
|
|
|
|
delecttask_status=(id)=>{
|
|
|
|
|
|
|
|
|
|
let{selectmemberslist,task_status}=this.state;
|
|
|
|
|
let newlist=task_status;
|
|
|
|
|
let selects=selectmemberslist;
|
|
|
|
|
|
|
|
|
|
for(var i=0; i<newlist.length; i++){
|
|
|
|
|
if(newlist[i]===newid){
|
|
|
|
|
if(newlist[i]===id){
|
|
|
|
|
newlist.splice(i,1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(var z=0; z<selects.length; z++){
|
|
|
|
|
if(selects[z].user_id===newid){
|
|
|
|
|
selects.splice(z,1)
|
|
|
|
|
}else if(selects[z].student_id===newid){
|
|
|
|
|
if(selects[z].user_id===id){
|
|
|
|
|
selects.splice(z,1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -384,10 +382,6 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
let userids=[];
|
|
|
|
|
|
|
|
|
|
for(var list of selectmemberslist){
|
|
|
|
|
|
|
|
|
|
if(list.student_id!=undefined&&list.student_id!=null){
|
|
|
|
|
userids.push(list.student_id)
|
|
|
|
|
}
|
|
|
|
|
if(list.user_id!=undefined&&list.user_id!=null){
|
|
|
|
|
userids.push(list.user_id)
|
|
|
|
|
}
|
|
|
|
@ -812,7 +806,7 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
{key > 0 ?
|
|
|
|
|
<div className={"fr ml20"}><i className={"iconfont icon-shanchudiao fl color-grey-9"}
|
|
|
|
|
style={{marginTop: '-4px'}}
|
|
|
|
|
onClick={() => this.delecttask_status(item.user_id,item.student_id)}></i>
|
|
|
|
|
onClick={() => this.delecttask_status(item.user_id)}></i>
|
|
|
|
|
</div> : ""}
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
</div>
|
|
|
|
|