|
|
@ -171,7 +171,8 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("170");
|
|
|
|
console.log("170");
|
|
|
|
console.log(params);
|
|
|
|
console.log(params);
|
|
|
|
axios.get(url+`?${queryString.stringify(params)}`+ '&export=true').then((response) => {
|
|
|
|
const urll=url+`?${queryString.stringify(params)}`;
|
|
|
|
|
|
|
|
axios.get(urll+ '&export=true').then((response) => {
|
|
|
|
if(response===undefined){
|
|
|
|
if(response===undefined){
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -195,13 +196,13 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.setState({ donwloading: true })
|
|
|
|
this.setState({ donwloading: true })
|
|
|
|
downloadFile({
|
|
|
|
downloadFile({
|
|
|
|
url: url+`?${queryString.stringify(params)}`,
|
|
|
|
url: urll,
|
|
|
|
successCallback: (url) => {
|
|
|
|
successCallback: (url) => {
|
|
|
|
this.setState({ donwloading: false });
|
|
|
|
this.setState({ donwloading: false })
|
|
|
|
console.log('successCallback')
|
|
|
|
console.log('successCallback')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
failCallback: (responseHtml, url) => {
|
|
|
|
failCallback: (responseHtml, url) => {
|
|
|
|
this.setState({ donwloading: false });
|
|
|
|
this.setState({ donwloading: false })
|
|
|
|
console.log('failCallback')
|
|
|
|
console.log('failCallback')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|