|
|
|
@ -649,6 +649,7 @@ class studentsList extends Component{
|
|
|
|
|
combineArray = this.state.application_list
|
|
|
|
|
}
|
|
|
|
|
const isAdminOrTeacher = this.props.isAdminOrTeacher()
|
|
|
|
|
const isAdminOrCreator = this.props.isAdminOrCreator()
|
|
|
|
|
const isSuperAdmin = this.props.isSuperAdmin()
|
|
|
|
|
const hasGraduationModule = this.hasGraduationModule()
|
|
|
|
|
const coursesId = this.props.match.params.coursesId
|
|
|
|
@ -685,7 +686,7 @@ class studentsList extends Component{
|
|
|
|
|
{/* { isAdmin && <WordsBtn style="blue" className="mr30" onClick={()=>this.addTeacher()}>添加教师</WordsBtn> }
|
|
|
|
|
{ isAdmin && <WordsBtn style="blue" className="mr30" onClick={()=>this.addStudent()}>添加学生</WordsBtn> } */}
|
|
|
|
|
|
|
|
|
|
{ isAdmin && <WordsBtn style="blue" className="fr" onClick={()=>this.showChangeAdminModal()}>更换管理员</WordsBtn>}
|
|
|
|
|
{ isAdminOrCreator && <WordsBtn style="blue" className="fr" onClick={()=>this.showChangeAdminModal()}>更换管理员</WordsBtn>}
|
|
|
|
|
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
}
|
|
|
|
|