|
|
|
@ -28,6 +28,7 @@ const pageSize = 20;
|
|
|
|
|
function buildColumns(that) {
|
|
|
|
|
const isAdmin = that.props.isAdmin()
|
|
|
|
|
const isAdminOrCreator = that.props.isAdminOrCreator();
|
|
|
|
|
const isAdminOrTeacher = that.props.isAdminOrTeacher()
|
|
|
|
|
const { course_groups } = that.state
|
|
|
|
|
const columns = [{
|
|
|
|
|
title: '',
|
|
|
|
@ -121,7 +122,7 @@ function buildColumns(that) {
|
|
|
|
|
),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (isAdminOrCreator) {
|
|
|
|
|
if (isAdminOrTeacher) {
|
|
|
|
|
columns.push({
|
|
|
|
|
title: '操作',
|
|
|
|
|
key: 'action',
|
|
|
|
|