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