|
|
|
@ -42,6 +42,7 @@ function buildColumns(that) {
|
|
|
|
|
title: '序号',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'index',
|
|
|
|
|
width: 78,
|
|
|
|
|
render: (content, item, index) => {
|
|
|
|
|
return index + 1
|
|
|
|
|
// return item.isApply == true ? '' : <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1
|
|
|
|
@ -74,6 +75,7 @@ function buildColumns(that) {
|
|
|
|
|
dataIndex: 'role',
|
|
|
|
|
key: 'role',
|
|
|
|
|
sorter: showSorter,
|
|
|
|
|
width: 86,
|
|
|
|
|
// 'ascend' | 'descend'
|
|
|
|
|
defaultSortOrder: 'ascend',
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
@ -160,16 +162,16 @@ function buildColumns(that) {
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(isAdminOrTeacher && hasGraduationModule) {
|
|
|
|
|
columns.unshift({
|
|
|
|
|
title: '',
|
|
|
|
|
dataIndex: 'course_member_id',
|
|
|
|
|
key: 'course_member_id',
|
|
|
|
|
render: (content, item, index) => {
|
|
|
|
|
return content ? <Checkbox value={content}></Checkbox> : ''
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// if(isAdminOrTeacher && hasGraduationModule) {
|
|
|
|
|
// columns.unshift({
|
|
|
|
|
// title: '',
|
|
|
|
|
// dataIndex: 'course_member_id',
|
|
|
|
|
// key: 'course_member_id',
|
|
|
|
|
// render: (content, item, index) => {
|
|
|
|
|
// return content ? <Checkbox value={content}></Checkbox> : ''
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
return columns
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|