|
|
@ -168,9 +168,10 @@ class GraduationTasksSubmitnew extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
deleteAttachment = (file) => {
|
|
|
|
deleteAttachment = (file) => {
|
|
|
|
const url = `/attachments/${file}.json`
|
|
|
|
if(!file.percent || file.percent == 100){
|
|
|
|
axios.delete(url, {
|
|
|
|
let id = file.response == undefined ? file.id : file.response.id;
|
|
|
|
})
|
|
|
|
const url = `/attachments/${id}.json`
|
|
|
|
|
|
|
|
axios.delete(url, {})
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data) {
|
|
|
|
if (response.data) {
|
|
|
|
// const { status } = response.data;
|
|
|
|
// const { status } = response.data;
|
|
|
@ -178,10 +179,10 @@ class GraduationTasksSubmitnew extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
console.log('--- success')
|
|
|
|
console.log('--- success')
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Modalstype:true,
|
|
|
|
Modalstype: true,
|
|
|
|
Modalstopval:response.data.message,
|
|
|
|
Modalstopval: response.data.message,
|
|
|
|
ModalSave:this.cancelAttachment,
|
|
|
|
ModalSave: this.cancelAttachment,
|
|
|
|
Loadtype:true,
|
|
|
|
Loadtype: true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
this.setState((state) => {
|
|
|
|
this.setState((state) => {
|
|
|
@ -199,6 +200,7 @@ class GraduationTasksSubmitnew extends Component{
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inputSearchValue=(e)=>{
|
|
|
|
inputSearchValue=(e)=>{
|
|
|
|
|
|
|
|
|
|
|
|