|
|
@ -65,7 +65,6 @@ class RepositoryAddFileupload_files extends Component {
|
|
|
|
fileList = fileList.map(file => {
|
|
|
|
fileList = fileList.map(file => {
|
|
|
|
if (file.response) {
|
|
|
|
if (file.response) {
|
|
|
|
if (file.response.status===0) {
|
|
|
|
if (file.response.status===0) {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return file;
|
|
|
|
return file;
|
|
|
@ -76,12 +75,13 @@ class RepositoryAddFileupload_files extends Component {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
onAttachmentRemove=(info)=>{
|
|
|
|
onAttachmentRemove=(info)=>{
|
|
|
|
|
|
|
|
console.log(info);
|
|
|
|
if(info.response){
|
|
|
|
if(info.response){
|
|
|
|
let shixunId = this.props.match.params.shixunId;
|
|
|
|
let shixunId = this.props.match.params.shixunId;
|
|
|
|
let {message,filspath}=this.state;
|
|
|
|
let {message,filspath}=this.state;
|
|
|
|
if(message===""||message===undefined){
|
|
|
|
if(message===""||message===undefined){
|
|
|
|
this.props.showNotification('删除文件请先填写提交信息');
|
|
|
|
this.props.showNotification('删除文件请先填写提交信息');
|
|
|
|
return
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let matchpath =this.props.match.path;
|
|
|
|
let matchpath =this.props.match.path;
|
|
|
|