diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index e75baa3fe..ba29dfccb 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -1,5 +1,5 @@ import React,{ Component } from "react"; -import { Input,Checkbox,Table, Pagination, Modal,Menu ,Spin} from "antd"; +import { Input,Checkbox,Table, Pagination, Modal,Menu ,Spin, Tooltip} from "antd"; import ClipboardJS from 'clipboard' import '../css/Courses.css' import '../css/members.css' @@ -31,14 +31,6 @@ const dataSource = [{ const buildColumns = (that) => { const columns=[{ - title: '', - dataIndex: 'check', - key: 'check', - render: (text, item) => { - return - }, - width:"5%" - },{ title: '序号', dataIndex: 'id', key: 'id', @@ -71,6 +63,19 @@ const buildColumns = (that) => { width:"50%", className:"color-grey-6" }]; + const isAdmin = that.props.isAdmin() + if (isAdmin) { + columns.unshift({ + title: '', + dataIndex: 'check', + key: 'check', + render: (text, item) => { + return + }, + width:"5%" + }) + } + return columns; } @@ -445,7 +450,14 @@ class studentsList extends Component{ {invite_code} - + +
成员可以通过邀请码主动加入课堂
+
点击立刻复制邀请码
+ }> + + + +
} @@ -528,7 +540,7 @@ class studentsList extends Component{ total_count > 0 ?
- 已选 {checkBoxValues.length} 个 + {isAdmin && 已选 {checkBoxValues.length} 个}
{isAdmin &&
  • 删除
  • } {isAdmin &&