From a27d43695f3dbf5aafc719f8a6be1b2f0a6ba71b Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 27 Jul 2019 10:46:52 +0800 Subject: [PATCH] sSpin:true --- .../src/modules/courses/members/modal/AddStudentModal.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/members/modal/AddStudentModal.js b/public/react/src/modules/courses/members/modal/AddStudentModal.js index 97e1a4bbe..59c6e41da 100644 --- a/public/react/src/modules/courses/members/modal/AddStudentModal.js +++ b/public/react/src/modules/courses/members/modal/AddStudentModal.js @@ -93,13 +93,14 @@ class AddStudentModal extends Component{ } onSendOk = () => { - this.setState({ - isSpin:true - }) + if(!this.state.checkBoxValues || this.state.checkBoxValues.length == 0) { this.props.showNotification('请从列表中先选择用户。') return; } + this.setState({ + isSpin:true + }) const courseId = this.props.match.params.coursesId const url = `/courses/${courseId}/add_students_by_search.json` const params = {