|
|
|
@ -58,7 +58,7 @@ class Boards extends Component{
|
|
|
|
|
let {pageSize}=this.state;
|
|
|
|
|
const cid = this.props.match.params.coursesId
|
|
|
|
|
|
|
|
|
|
let url = `/courses/${cid}/graduation_topics.json?limit=`+pageSize
|
|
|
|
|
let url = `/courses/${cid}/graduation_topics.json?limit=${pageSize}`
|
|
|
|
|
if(searchValue!=""){
|
|
|
|
|
url+="&search="+searchValue
|
|
|
|
|
}
|
|
|
|
@ -68,7 +68,17 @@ class Boards extends Component{
|
|
|
|
|
if(status!="" && status != "all"){
|
|
|
|
|
url+="&status="+status;
|
|
|
|
|
}
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
url=encodeURI(url);//IE11传参为乱码(search)
|
|
|
|
|
axios.get(url
|
|
|
|
|
// ,{
|
|
|
|
|
// params:{
|
|
|
|
|
// search:encodeURI(searchValue),
|
|
|
|
|
// page:page,
|
|
|
|
|
// status:status,
|
|
|
|
|
// limit:pageSize
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
).then((response) => {
|
|
|
|
|
if (response.status == 200 && response.status) {
|
|
|
|
|
this.setState({
|
|
|
|
|
data:response.data,
|
|
|
|
|