|
|
@ -80,6 +80,15 @@ const buildColumns = (that) => {
|
|
|
|
width:"50%",
|
|
|
|
width:"50%",
|
|
|
|
className:"color-grey-6"
|
|
|
|
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()
|
|
|
|
const isAdmin = that.props.isAdmin()
|
|
|
|
if (isAdmin) {
|
|
|
|
if (isAdmin) {
|
|
|
|
columns.unshift({
|
|
|
|
columns.unshift({
|
|
|
|