|
|
@ -32,13 +32,6 @@ function buildColumns(that) {
|
|
|
|
const isAdminOrTeacher = that.props.isAdminOrTeacher()
|
|
|
|
const isAdminOrTeacher = that.props.isAdminOrTeacher()
|
|
|
|
const { course_groups } = that.state
|
|
|
|
const { course_groups } = that.state
|
|
|
|
const columns = [{
|
|
|
|
const columns = [{
|
|
|
|
title: '',
|
|
|
|
|
|
|
|
dataIndex: 'course_member_id',
|
|
|
|
|
|
|
|
key: 'course_member_id',
|
|
|
|
|
|
|
|
render: (content, item, index) => {
|
|
|
|
|
|
|
|
return <Checkbox value={content}></Checkbox>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},{
|
|
|
|
|
|
|
|
title: '序号',
|
|
|
|
title: '序号',
|
|
|
|
// dataIndex: 'name',
|
|
|
|
// dataIndex: 'name',
|
|
|
|
key: 'index',
|
|
|
|
key: 'index',
|
|
|
@ -152,6 +145,16 @@ function buildColumns(that) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isAdmin) {
|
|
|
|
|
|
|
|
columns.unshift({
|
|
|
|
|
|
|
|
title: '',
|
|
|
|
|
|
|
|
dataIndex: 'course_member_id',
|
|
|
|
|
|
|
|
key: 'course_member_id',
|
|
|
|
|
|
|
|
render: (content, item, index) => {
|
|
|
|
|
|
|
|
return <Checkbox value={content}></Checkbox>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
return columns
|
|
|
|
return columns
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -540,7 +543,7 @@ class studentsList extends Component{
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<div className="mt20 edu-back-white padding20 teacherList">
|
|
|
|
<div className="mt20 edu-back-white padding20 teacherList">
|
|
|
|
<div className="clearfix stu_head" style={{paddingLeft: '15px'}}>
|
|
|
|
<div className="clearfix stu_head" style={{paddingLeft: '15px'}}>
|
|
|
|
<Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue} >已选 {checkBoxValues.length} 个</Checkbox>
|
|
|
|
{ isAdmin && <Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue} >已选 {checkBoxValues.length} 个</Checkbox> }
|
|
|
|
{ <div className="studentList_operation_ul">
|
|
|
|
{ <div className="studentList_operation_ul">
|
|
|
|
{ this.hasGraduationModule() && isAdminOrTeacher && <li className="li_line drop_down">
|
|
|
|
{ this.hasGraduationModule() && isAdminOrTeacher && <li className="li_line drop_down">
|
|
|
|
加入答辩组<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
加入答辩组<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|