添加学生+讨论区的搜索

dev_aliyun_beta
caicai8 5 years ago
parent fa7b81503f
commit 1282efcd5c

@ -51,10 +51,7 @@ class Boards extends Component{
const sort_type = this.state.sort_type
// page_size
const url = `/boards/${bid}/messages.json?page_size=15&search=${_serachText || ''}&page=${_page}&sort=0&sort_type=${sort_type}`
axios.get(url, {
})
.then((response) => {
axios.get(encodeURI(url)).then((response) => {
if (response.data.status == 0 && response.data.data) {
let _newBoards = response.data.data.messages
// if (_page > 1) {

@ -80,8 +80,9 @@ class AddStudentModal extends Component{
}
setVisible = (visible) => {
if (visible) {
this.setState({school_name: this.props.user.user_school})
this.fetchMemberList()
this.setState({school_name: this.props.user.user_school},()=>{
this.fetchMemberList();
})
this.fetchOptions()
}
this.refs.modalWrapper.setVisible(visible)

Loading…
Cancel
Save