教师列表样式

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

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

Loading…
Cancel
Save