杨树明 5 years ago
parent 20dc1e0a84
commit 49bcbc1b5b

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

Loading…
Cancel
Save