教师列表样式

dev_unstable^2
hjm 6 years ago
parent 6dd78b4ca9
commit 4ed38deeaa

@ -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
}

Loading…
Cancel
Save