dev_ec
杨树明 5 years ago
parent 2fce82d533
commit 4e1e83f8fe

@ -84,9 +84,9 @@ export function initAxiosInterceptors(props) {
}
config.url = `${proxy}${url}`;
if (config.url.indexOf('?') == -1) {
config.url = `${config.url}?debug=${debugType}`;
config.url = `${config.url}?debug=${'student'}`;
} else {
config.url = `${config.url}&debug=${debugType}`;
config.url = `${config.url}&debug=${'student'}`;
}
} else {
// 加api前缀

@ -334,24 +334,22 @@ 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){
if(selects[z].user_id===id){
selects.splice(z,1)
}else if(selects[z].student_id===newid){
selects.splice(z,1)
}
}
}
console.log(newlist)
console.log(selects)
@ -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>

Loading…
Cancel
Save