From 88f9b0897b3500e9d0eb98fb67007ec8d177ae8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 4 Nov 2019 14:20:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8B=E8=BD=BD=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/courses/statistics/Statistics.js | 39 +------------------ 1 file changed, 1 insertion(+), 38 deletions(-) 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}`); }