dev_forum
hjm 6 years ago
parent 95ad53667b
commit a27d43695f

@ -93,13 +93,14 @@ class AddStudentModal extends Component{
} }
onSendOk = () => { onSendOk = () => {
this.setState({
isSpin:true
})
if(!this.state.checkBoxValues || this.state.checkBoxValues.length == 0) { if(!this.state.checkBoxValues || this.state.checkBoxValues.length == 0) {
this.props.showNotification('请从列表中先选择用户。') this.props.showNotification('请从列表中先选择用户。')
return; return;
} }
this.setState({
isSpin:true
})
const courseId = this.props.match.params.coursesId const courseId = this.props.match.params.coursesId
const url = `/courses/${courseId}/add_students_by_search.json` const url = `/courses/${courseId}/add_students_by_search.json`
const params = { const params = {

Loading…
Cancel
Save