|
|
|
@ -339,16 +339,16 @@ class Workquestionandanswer extends Component {
|
|
|
|
|
|
|
|
|
|
daochushixunbaogao=()=>{
|
|
|
|
|
let url =`/zip/shixun_report?homework_common_id=${this.props.match.params.homeworkid}`;
|
|
|
|
|
this.confirmysl(url + '&export=true');
|
|
|
|
|
this.confirmysl(url, url + '&export=true');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
daochuzuoye =() =>{
|
|
|
|
|
let url = `/homework_commons/${this.props.match.params.homeworkid}/works_list.xlsx`;
|
|
|
|
|
this.confirmysl(url + '?export=true');
|
|
|
|
|
this.confirmysl(url, url + '?export=true');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
confirmysl(url, urlWithExport){
|
|
|
|
|
axios.get(urlWithExport).then((response) => {
|
|
|
|
|
if(response === undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|