From 7f57b5339788b6f4b8359dca2474ef21c5f29e89 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 29 Jun 2019 16:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/members/studentsList.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index 669d8a65d..63ae5683a 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -80,6 +80,15 @@ const buildColumns = (that) => { width:"50%", className:"color-grey-6" }]; + const isAdminOrStudent = that.props.isAdminOrStudent() + if (!isAdminOrStudent) { + columns.some((item,key)=> { + if (item.title === "学号") { + columns.splice(key, 1) + return true + } + }) + } const isAdmin = that.props.isAdmin() if (isAdmin) { columns.unshift({