master
杨树林 5 years ago
parent d0153307f8
commit 2c590a4bea

@ -1,7 +1,7 @@
import React,{ Component } from "react"; import React,{ Component } from "react";
import {Checkbox,Input,Table, Pagination,Menu} from "antd"; import {Checkbox,Input,Table, Pagination,Menu} from "antd";
import {Link,NavLink} from 'react-router-dom'; import {Link,NavLink} from 'react-router-dom';
import { WordsBtn ,ActionBtn} from 'educoder'; import { WordsBtn ,ActionBtn,queryString} from 'educoder';
import CoursesListType from '../coursesPublic/CoursesListType'; import CoursesListType from '../coursesPublic/CoursesListType';
import '../css/members.css'; import '../css/members.css';
import '../css/busyWork.css'; import '../css/busyWork.css';
@ -170,12 +170,7 @@ class Testpapersettinghomepage extends Component{
} }
console.log("170"); console.log("170");
console.log(params); console.log(params);
axios.get(url,{ axios.get(url+`?${queryString.stringify(params)}`).then((response) => {
params,
paramsSerializer: function(params) {
return qs.stringify(params, {arrayFormat: 'brackets'})
}
}).then((response) => {
if(response===undefined){ if(response===undefined){
return return
} }
@ -198,7 +193,7 @@ class Testpapersettinghomepage extends Component{
} }
}else { }else {
this.props.showNotification(`正在下载中`); this.props.showNotification(`正在下载中`);
window.open("/api"+url, '_blank'); window.open("/api"+url+`?${queryString.stringify(params)}`, '_blank');
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)

Loading…
Cancel
Save