|
|
|
@ -5,7 +5,7 @@ import ModalWrapper from "../../common/ModalWrapper"
|
|
|
|
|
import InfiniteScroll from 'react-infinite-scroller';
|
|
|
|
|
import { ROLE_TEACHER_NUM, ROLE_ASSISTANT_NUM } from '../common'
|
|
|
|
|
import NoneData from '../../coursesPublic/NoneData'
|
|
|
|
|
import { ConditionToolTip } from 'educoder'
|
|
|
|
|
import { ConditionToolTip, ThemeContext } from 'educoder'
|
|
|
|
|
import SchoolSelect from '../../coursesPublic/form/SchoolSelect'
|
|
|
|
|
|
|
|
|
|
const Option = Select.Option;
|
|
|
|
@ -151,6 +151,7 @@ class AddStudentModal extends Component{
|
|
|
|
|
const { users, checkBoxValues, loading, hasMore, name, school_name
|
|
|
|
|
, courseGroup, course_groups,isSpin } = this.state
|
|
|
|
|
const { moduleName } = this.props
|
|
|
|
|
let theme = this.context;
|
|
|
|
|
return(
|
|
|
|
|
<ModalWrapper
|
|
|
|
|
ref="modalWrapper"
|
|
|
|
@ -242,7 +243,7 @@ class AddStudentModal extends Component{
|
|
|
|
|
{ users.map( candidate => {
|
|
|
|
|
return (
|
|
|
|
|
<p className="clearfix mb7" key={candidate.id}>
|
|
|
|
|
<Checkbox className="fl" value={candidate.id} ></Checkbox>
|
|
|
|
|
<Checkbox className="fl" value={candidate.id} disabled={candidate.added}></Checkbox>
|
|
|
|
|
<span className="fl with25">
|
|
|
|
|
<ConditionToolTip title={candidate.name} condition={candidate.name && candidate.name.length > 12 }>
|
|
|
|
|
<label className="task-hide fl" style={{"maxWidth":"208px;"}}>{candidate.name || ' '}</label>
|
|
|
|
@ -254,7 +255,8 @@ class AddStudentModal extends Component{
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fl with35"><label className="task-hide fl" style={{"maxWidth":"208px;"}}>{candidate.school_name}</label></span>
|
|
|
|
|
<span className="fl with10"><label className="task-hide fl" style={{"maxWidth":"48px"}}>{candidate.added ? '已加入' : ''}</label></span>
|
|
|
|
|
<span className="fl with10"><label className="task-hide fl"
|
|
|
|
|
style={{"maxWidth":"48px", color: theme.foreground_select }}>{candidate.added ? '已加入' : ''}</label></span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
@ -274,4 +276,6 @@ class AddStudentModal extends Component{
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AddStudentModal.contextType = ThemeContext;
|
|
|
|
|
export default AddStudentModal;
|
|
|
|
|