杨树明 6 years ago
parent 49bcbc1b5b
commit fd4e6e4177

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

Loading…
Cancel
Save