|
|
|
@ -1349,21 +1349,22 @@ class Listofworks extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
console.log(response);
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
console.log("1352");
|
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
|
console.log("1356");
|
|
|
|
|
console.log(response);
|
|
|
|
|
}else {
|
|
|
|
|
if(type === 1){
|
|
|
|
|
Internshipreportsy(url,struy,".zip",'application/zip');
|
|
|
|
|
}else{
|
|
|
|
|
Internshipreportsy(url,struy,".xlsx",'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(response !== undefined){
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
console.log("1352");
|
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
|
console.log("1356");
|
|
|
|
|
console.log(response);
|
|
|
|
|
}else {
|
|
|
|
|
if(type === 1){
|
|
|
|
|
Internshipreportsy(url,struy,".zip",'application/zip');
|
|
|
|
|
}else{
|
|
|
|
|
Internshipreportsy(url,struy,".xlsx",'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|