|
|
@ -168,14 +168,14 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
console.log('--- success')
|
|
|
|
console.log('--- success')
|
|
|
|
let newattachments=attachments;
|
|
|
|
let newattachments=attachments;
|
|
|
|
if(id===undefined){
|
|
|
|
|
|
|
|
for(var i=0; i<newattachments.length; i++){
|
|
|
|
for(var i=0; i<newattachments.length; i++){
|
|
|
|
if(newattachments[i].id===id){
|
|
|
|
if(newattachments[i].id===id){
|
|
|
|
newattachments.splice(i, 1);
|
|
|
|
newattachments.splice(i, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// this.setState({
|
|
|
|
// this.setState({
|
|
|
|
// Modalstype:true,
|
|
|
|
// Modalstype:true,
|
|
|
|
// Modalstopval:response.data.message,
|
|
|
|
// Modalstopval:response.data.message,
|
|
|
@ -191,6 +191,7 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
newFileList.splice(index, 1);
|
|
|
|
newFileList.splice(index, 1);
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
fileList: newFileList,
|
|
|
|
fileList: newFileList,
|
|
|
|
|
|
|
|
attachments:newattachments
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|