|
|
@ -15,7 +15,8 @@ class AccessoryModal extends Component{
|
|
|
|
Modalstopval:"",
|
|
|
|
Modalstopval:"",
|
|
|
|
ModalCancel:"",
|
|
|
|
ModalCancel:"",
|
|
|
|
ModalSave:"",
|
|
|
|
ModalSave:"",
|
|
|
|
loadtype:false
|
|
|
|
loadtype:false,
|
|
|
|
|
|
|
|
updatas:false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -114,11 +115,14 @@ class AccessoryModal extends Component{
|
|
|
|
for(var list of fileList){
|
|
|
|
for(var list of fileList){
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
debugger
|
|
|
|
// if (newfileList.length == 0) {
|
|
|
|
if (newfileList.length == 0) {
|
|
|
|
// this.props.showNotification('请先上传附件')
|
|
|
|
// this.props.showNotification('请先上传附件')
|
|
|
|
// return;
|
|
|
|
this.setState({
|
|
|
|
// }
|
|
|
|
updatas:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let url= this.props.reviseAttachmentUrl || "/graduation_works/"+id+"/revise_attachment.json"
|
|
|
|
let url= this.props.reviseAttachmentUrl || "/graduation_works/"+id+"/revise_attachment.json"
|
|
|
|
axios.post(url,{
|
|
|
|
axios.post(url,{
|
|
|
@ -243,7 +247,7 @@ class AccessoryModal extends Component{
|
|
|
|
border:'1px solid rgba(234,234,234,1)',
|
|
|
|
border:'1px solid rgba(234,234,234,1)',
|
|
|
|
padding: '10px'
|
|
|
|
padding: '10px'
|
|
|
|
}}></textarea>
|
|
|
|
}}></textarea>
|
|
|
|
|
|
|
|
{this.state.updatas===true?<span className={"color-red"}>请上传附件</span>:""}
|
|
|
|
<div className="clearfix mt30 edu-txt-center mb10">
|
|
|
|
<div className="clearfix mt30 edu-txt-center mb10">
|
|
|
|
<a className="task-btn color-white mr70" onClick={this.props.Cancel}>{this.props.Cancelname || '取消'}</a>
|
|
|
|
<a className="task-btn color-white mr70" onClick={this.props.Cancel}>{this.props.Cancelname || '取消'}</a>
|
|
|
|
<a className="task-btn task-btn-orange" onClick={()=>this.Saves()}>{this.props.Savesname || '确认'}</a>
|
|
|
|
<a className="task-btn task-btn-orange" onClick={()=>this.Saves()}>{this.props.Savesname || '确认'}</a>
|
|
|
|