|
|
@ -125,10 +125,11 @@ class AccessoryModal extends Component{
|
|
|
|
let {fileList,description} =this.state;
|
|
|
|
let {fileList,description} =this.state;
|
|
|
|
|
|
|
|
|
|
|
|
let newfileList=[];
|
|
|
|
let newfileList=[];
|
|
|
|
for(var list of fileList){
|
|
|
|
if(fileList!=undefined&&fileList.length>0) {
|
|
|
|
|
|
|
|
for (var list of fileList) {
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (newfileList.length == 0) {
|
|
|
|
if (newfileList.length == 0) {
|
|
|
|
// this.props.showNotification('请先上传附件')
|
|
|
|
// this.props.showNotification('请先上传附件')
|
|
|
|
if(this.props.modalname === "补交附件"){
|
|
|
|
if(this.props.modalname === "补交附件"){
|
|
|
@ -194,9 +195,11 @@ class AccessoryModal extends Component{
|
|
|
|
let {fileList,description} =this.state;
|
|
|
|
let {fileList,description} =this.state;
|
|
|
|
|
|
|
|
|
|
|
|
let newfileList=[];
|
|
|
|
let newfileList=[];
|
|
|
|
for(var list of fileList){
|
|
|
|
if(fileList!=undefined&&fileList.length>0) {
|
|
|
|
|
|
|
|
for (var list of fileList) {
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
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,{
|
|
|
|
description:description,
|
|
|
|
description:description,
|
|
|
|