|
|
|
@ -170,7 +170,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
}
|
|
|
|
|
console.log("170");
|
|
|
|
|
console.log(params);
|
|
|
|
|
axios.get(url+`?${queryString.stringify(params)}`+ '&export=true' ).then((response) => {
|
|
|
|
|
axios.get(url+`?${queryString.stringify(params)}`+ '&export=true').then((response) => {
|
|
|
|
|
if(response===undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -193,7 +193,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`正在下载中`);
|
|
|
|
|
window.open("/api"+url+`?${queryString.stringify(params)}`, '_blank');
|
|
|
|
|
window.open("/api"+url+`?${queryString.stringify(params)}`+ '&export=true', '_blank');
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
@ -357,7 +357,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
|
<ul className="drop_down_menu" style={{"right":"-34px","left":"unset","height":"auto"}}>
|
|
|
|
|
<li><a onClick={()=>this.confirmysl(`/exercises/${this.props.match.params.Id}/exercise_lists.xlsx`,this.child)}>学生成绩</a></li>
|
|
|
|
|
{/*<li><a onClick={()=>this.confirmysl(`/exercises/${this.props.match.params.Id}/export_exercise`)} >空白试卷</a></li>*/}
|
|
|
|
|
<li><a onClick={()=>this.confirmysl(`/exercises/${this.props.match.params.Id}/export_exercise`,this.child)} >空白试卷</a></li>
|
|
|
|
|
{/*<li><a onClick={()=>this.confirmysl(`/zip/export_exercises?exercise_id=${this.props.match.params.Id}${this.state.groupyslsval===null||this.state.groupyslsval===undefined?null:this.state.groupyslsval}`)}>学生答题试卷</a></li>*/}
|
|
|
|
|
</ul>
|
|
|
|
|
</li>:""}
|
|
|
|
|