|
|
|
@ -330,6 +330,7 @@ class studentsList extends Component{
|
|
|
|
|
}
|
|
|
|
|
updateNavSuccess = () => {
|
|
|
|
|
this.fetchCourseGroups()
|
|
|
|
|
this.fetchAll()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addStudentSuccessListener=(e, data)=>{
|
|
|
|
@ -682,12 +683,13 @@ class studentsList extends Component{
|
|
|
|
|
if (this.props.match.path.endsWith('students')) {
|
|
|
|
|
|
|
|
|
|
} else if (course_group_id) {
|
|
|
|
|
pageType = TYPE_COURSE_GOURP_PARENT
|
|
|
|
|
} else {
|
|
|
|
|
pageType = TYPE_COURSE_GOURP_CHILD
|
|
|
|
|
} else {
|
|
|
|
|
pageType = TYPE_COURSE_GOURP_PARENT
|
|
|
|
|
}
|
|
|
|
|
const isStudentPage = pageType == TYPE_STUDENTS
|
|
|
|
|
this.isStudentPage = isStudentPage
|
|
|
|
|
const isGroupChildPage = pageType == TYPE_COURSE_GOURP_CHILD
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<React.Fragment >
|
|
|
|
@ -700,7 +702,12 @@ class studentsList extends Component{
|
|
|
|
|
<Titlesearchsection
|
|
|
|
|
title={isParent ? (pageType == TYPE_STUDENTS ? "全部学生" : "学生列表"):
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<span>{course_group_name || '未分班'}</span>
|
|
|
|
|
<span>
|
|
|
|
|
<Tooltip title="返回">
|
|
|
|
|
<i className="icon-zuojiantou iconfont font-14" onClick={() => { this.props.history.push(`/courses/${coursesids}/course_groups`)}}
|
|
|
|
|
style={{color: '#212121', verticalAlign: 'initial', marginRight: '14px' }}
|
|
|
|
|
></i>
|
|
|
|
|
</Tooltip>{course_group_name || '未分班'}</span>
|
|
|
|
|
{isAdmin && invite_code && <React.Fragment>
|
|
|
|
|
<span className="color-grey-9 font-16 ml10">邀请码:</span>
|
|
|
|
|
<span className="color-orange font-16">
|
|
|
|
|