diff --git a/public/react/src/modules/courses/statistics/Statistics.js b/public/react/src/modules/courses/statistics/Statistics.js index b48036530..8b22f2c25 100644 --- a/public/react/src/modules/courses/statistics/Statistics.js +++ b/public/react/src/modules/courses/statistics/Statistics.js @@ -160,44 +160,7 @@ class Statistics extends Component{ derivefun=(url)=>{ let{group_ids}=this.state; - let data={ - group_id:group_ids - } - axios.get(url,{params: - data, - paramsSerializer: function(params) { - return qs.stringify(params, {arrayFormat: 'brackets'}) - } - }).then((response)=>{ - if(response === undefined){ - return - } - if(response.data.status&&response.data.status===-1){ - this.props.showNotification(response.data.message); - }else if(response.data.status&&response.data.status===-2){ - // if(response.data.message === "100"){ - // // 已超出文件导出的上限数量(100 ),建议: - // - // this.setState({ - // DownloadType:true, - // DownloadMessageval:100 - // }) - // }else { - // //因附件资料超过500M - // this.setState({ - // DownloadType:true, - // DownloadMessageval:500 - // }) - // } - this.props.showNotification(response.data.message); - }else { - // this.props.showNotification(`正在下载中`); - // window.open("/api"+url, '_blank'); - this.props.slowDownload(url); - } - }).catch((error) => { - console.log(error) - }); + this.props.slowDownload(`${url}?group_id=${group_ids}`); }