|
|
|
@ -17,7 +17,8 @@ class AccessoryModal extends Component{
|
|
|
|
|
ModalSave:"",
|
|
|
|
|
loadtype:false,
|
|
|
|
|
updatas:false,
|
|
|
|
|
shixunsreplace:false
|
|
|
|
|
shixunsreplace:false,
|
|
|
|
|
Errormessage:false,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -41,7 +42,10 @@ class AccessoryModal extends Component{
|
|
|
|
|
// for(var list of fileList ){
|
|
|
|
|
// console.log(fileList)
|
|
|
|
|
// }
|
|
|
|
|
this.setState({ fileList });
|
|
|
|
|
this.setState({
|
|
|
|
|
fileList:fileList,
|
|
|
|
|
Errormessage:false,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onAttachmentRemove = (file) => {
|
|
|
|
@ -121,10 +125,23 @@ class AccessoryModal extends Component{
|
|
|
|
|
|
|
|
|
|
if (newfileList.length == 0) {
|
|
|
|
|
// this.props.showNotification('请先上传附件')
|
|
|
|
|
if(this.props.modalname === "补交附件"){
|
|
|
|
|
this.setState({
|
|
|
|
|
Errormessage:true,
|
|
|
|
|
shixunsreplace:false,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunsreplace:true,
|
|
|
|
|
Errormessage:false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunsreplace:false,
|
|
|
|
|
Errormessage:false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let url= this.props.reviseAttachmentUrl || "/graduation_works/"+id+"/revise_attachment.json"
|
|
|
|
@ -326,6 +343,14 @@ class AccessoryModal extends Component{
|
|
|
|
|
border:'1px solid rgba(234,234,234,1)',
|
|
|
|
|
padding: '10px'
|
|
|
|
|
}}></textarea>
|
|
|
|
|
{
|
|
|
|
|
this.state.Errormessage && this.state.Errormessage === true ?
|
|
|
|
|
<p className="color-red mt5 mb5 " style={{width: " 100%", height: "20px"}}>
|
|
|
|
|
<span className="fl" style={{textAlign:"left",width: " 100%"}}>还未上传附件</span>
|
|
|
|
|
</p>
|
|
|
|
|
: <div style={{height:"25px"}}></div>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
{this.state.updatas===true?<span className={"color-red"}>请上传附件</span>:""}
|
|
|
|
|
<div className="clearfix mt30 edu-txt-center mb10">
|
|
|
|
|
<a className="task-btn color-white mr70" onClick={this.props.Cancel}>{this.props.Cancelname || '取消'}</a>
|
|
|
|
|