|
|
|
@ -213,7 +213,7 @@ class AddStudentModal extends Component{
|
|
|
|
|
{/* <Divider /> */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p className="clearfix mb2" style={{ margin: '0px 15px 6px' }}>
|
|
|
|
|
<p className="clearfix mb2" style={{ margin: '0px 20px 6px' }}>
|
|
|
|
|
<Checkbox className="fl" style={{ visibility: 'hidden' }} ></Checkbox>
|
|
|
|
|
<span className="fl task-hide with25" style={{"maxWidth":"208px;"}}>{'姓名'}</span>
|
|
|
|
|
<span className="fl task-hide with25" style={{"maxWidth":"208px;"}}>{'学号'}</span>
|
|
|
|
@ -224,7 +224,7 @@ class AddStudentModal extends Component{
|
|
|
|
|
<Spin size="large" spinning={isSpin}>
|
|
|
|
|
{ loading || users.length ? <div>
|
|
|
|
|
{/* https://github.com/CassetteRocks/react-infinite-scroller/issues/70 */}
|
|
|
|
|
<div className="edu-back-skyblue padding10-15" style={{"height":"300px", overflowY: "scroll", overflowAnchor: 'none' }}>
|
|
|
|
|
<div className="edu-back-skyblue padding10-15" style={{height:"300px", overflowY: "scroll", overflowAnchor: 'none' }}>
|
|
|
|
|
<InfiniteScroll
|
|
|
|
|
threshold={10}
|
|
|
|
|
initialLoad={false}
|
|
|
|
@ -239,22 +239,17 @@ class AddStudentModal extends Component{
|
|
|
|
|
return (
|
|
|
|
|
<p className="clearfix mb7" key={candidate.id}>
|
|
|
|
|
<Checkbox className="fl" value={candidate.id} key={candidate.id} disabled={candidate.added}></Checkbox>
|
|
|
|
|
<span className="fl task-hide with25 ml5" style={{"maxWidth":"208px;"}}>
|
|
|
|
|
<ConditionToolTip title={candidate.name} condition={candidate.name && candidate.name.length > 12 }>
|
|
|
|
|
<span className="fl task-hide with25 ml5">
|
|
|
|
|
{ candidate.name ?
|
|
|
|
|
<a href={`/users/${candidate.login}`} target="_blank">
|
|
|
|
|
<a href={`/users/${candidate.login}`} title={candidate.name} target="_blank">
|
|
|
|
|
{ candidate.name }
|
|
|
|
|
</a> : <span> </span> }
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</a> : <span> </span> }
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fl task-hide with25" style={{"maxWidth":"208px;"}}>
|
|
|
|
|
<ConditionToolTip title={candidate.student_id} condition={candidate.student_id && candidate.student_id.length > 12 }>
|
|
|
|
|
{candidate.student_id || ' '}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
<span className="fl task-hide with25" title={candidate.student_id} style={{ width: '145px' , height : "20px" }}>
|
|
|
|
|
{candidate.student_id || ' '}
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fl task-hide with35" style={{"maxWidth":"208px;"}}>{candidate.school_name}</span>
|
|
|
|
|
<span className="fl task-hide with35" title={candidate.school_name} style={{ width: '204px' , height : "20px" }}>{candidate.school_name}</span>
|
|
|
|
|
<span className="fl task-hide with10" style={{"maxWidth":"48px", color: theme.foreground_select }}>{candidate.added ? '已加入' : ''}</span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
}) }
|
|
|
|
|