diff --git a/public/react/src/modules/courses/members/teacherList.js b/public/react/src/modules/courses/members/teacherList.js index 748345c87..a3ff2d745 100644 --- a/public/react/src/modules/courses/members/teacherList.js +++ b/public/react/src/modules/courses/members/teacherList.js @@ -105,7 +105,8 @@ function buildColumns(that) { } , }); - if (that.hasGraduationModule()) { + const hasGraduationModule = that.hasGraduationModule() + if (hasGraduationModule { columns.push({ title: '答辩组', key: 'graduation_group', @@ -145,7 +146,7 @@ function buildColumns(that) { }, }) } - if(isAdmin) { + if(isAdmin && hasGraduationModule) { columns.unshift({ title: '', dataIndex: 'course_member_id', @@ -498,6 +499,7 @@ class studentsList extends Component{ }) } const isAdminOrTeacher = this.props.isAdminOrTeacher() + const hasGraduationModule = this.hasGraduationModule() return( @@ -543,9 +545,9 @@ class studentsList extends Component{ `}
- { isAdmin && 已选 {checkBoxValues.length} 个 } + { isAdmin && hasGraduationModule && 已选 {checkBoxValues.length} 个 } {
- { this.hasGraduationModule() && isAdminOrTeacher &&
  • + { hasGraduationModule && isAdminOrTeacher &&
  • 加入答辩组