|
|
|
@ -117,7 +117,7 @@ function buildColumns(that) {
|
|
|
|
|
const hasGraduationModule = that.hasGraduationModule()
|
|
|
|
|
if (hasGraduationModule && showSorter) {
|
|
|
|
|
columns.push({
|
|
|
|
|
title: '答辩组',
|
|
|
|
|
title: '所在答辩组',
|
|
|
|
|
// width: 90,
|
|
|
|
|
sorter: showSorter,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
@ -141,6 +141,9 @@ function buildColumns(that) {
|
|
|
|
|
width: 150,
|
|
|
|
|
align:'center',
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
const isAdmin = record.role == ROLE_ADMIN
|
|
|
|
|
const isTeacher = record.role == ROLE_TEACHER
|
|
|
|
|
const isAssitant = record.role == ROLE_TEACHER_ASSISTANT
|
|
|
|
|
if (record.application_id) {
|
|
|
|
|
return (
|
|
|
|
|
<span>
|
|
|
|
@ -151,19 +154,19 @@ function buildColumns(that) {
|
|
|
|
|
} else {
|
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<WordsBtn>删除</WordsBtn>
|
|
|
|
|
<WordsBtn style2={{ marginRight: '12px' }} onClick={() => that.onDelete(record)} style={'grey'}>删除</WordsBtn>
|
|
|
|
|
<Popconfirm
|
|
|
|
|
placement="right"
|
|
|
|
|
placement="bottom"
|
|
|
|
|
icon={null}
|
|
|
|
|
title={
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Checkbox >管理员</Checkbox>
|
|
|
|
|
<Checkbox >助教</Checkbox>
|
|
|
|
|
<Checkbox disable={isAdmin}>管理员</Checkbox>
|
|
|
|
|
<Checkbox disable={isAdmin}>助教</Checkbox>
|
|
|
|
|
<Checkbox >学生</Checkbox>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<WordsBtn>修改角色</WordsBtn>
|
|
|
|
|
<WordsBtn style={'blue'}>修改角色</WordsBtn>
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
|
|