杨树明 5 years ago
parent 49bcbc1b5b
commit fd4e6e4177

@ -176,13 +176,9 @@ class GraduationTasksSubmitedit extends Component{
}
// this.setState({
// Modalstype:true,
// Modalstopval:response.data.message,
// ModalSave:this.cancelAttachment,
// Loadtype:true,
// attachments:newattachments
// })
this.setState({
attachments:newattachments
})
this.cancelAttachment();
this.setState((state) => {
@ -190,8 +186,7 @@ class GraduationTasksSubmitedit extends Component{
const newFileList = state.fileList.slice();
newFileList.splice(index, 1);
return {
fileList: newFileList,
attachments:newattachments
fileList: newFileList
};
});
}
@ -624,7 +619,7 @@ class GraduationTasksSubmitedit extends Component{
{/*<Link to={"/courses/"+courseId+"/graduation/graduation_tasks/"+category_id} className="color-grey-6">{workslist&&workslist.task_name}</Link>*/}
{/*<span className="color-grey-9 ml3 mr3">&gt;</span>*/}
{/*</WordsBtn>*/}
<span>{this.props.user&&this.props.user.username} 提交作品</span>
<span>{this.props.user&&this.props.user.username} 修改作品</span>
</p>
<div style={{ width:'100%',height:'75px'}} >

Loading…
Cancel
Save