Merge remote-tracking branch 'origin/dev_aliyun' into dev_aliyun

dev_hjm_a
杨树明 5 years ago
commit add7207310

@ -96,6 +96,9 @@ class AddAdminModal extends Component{
}).then((result)=>{ }).then((result)=>{
if(result.data.status==0){ if(result.data.status==0){
this.props.showNotification('操作成功。') this.props.showNotification('操作成功。')
if (this.props.isCourseAdmin()) {
window.location.reload()
}
// this.fetchAll() // this.fetchAll()
this.setVisible(false) this.setVisible(false)
this.props.changeAdminSuccess && this.props.changeAdminSuccess() this.props.changeAdminSuccess && this.props.changeAdminSuccess()

@ -3344,6 +3344,7 @@ class Listofworksstudentone extends Component {
` `
.edu-position-hide li a:hover { .edu-position-hide li a:hover {
background: #F0F0F0; background: #F0F0F0;
color: #05101A;
} }
` `
} }

@ -222,7 +222,7 @@ export function TPMIndexHOC(WrappedComponent) {
# 课程权限判断 # 课程权限判断
ADMIN = 0 # 超级管理员 ADMIN = 0 # 超级管理员
BUSINESS = 1 # 运营人员 BUSINESS = 1 # 运营人员
CREATOR = 2 # 课程创建者 CREATOR = 2 # 课程创建者 课堂管理员
PROFESSOR = 3 # 课程老师 PROFESSOR = 3 # 课程老师
ASSISTANT_PROFESSOR = 4 # 课程助教 ASSISTANT_PROFESSOR = 4 # 课程助教
STUDENT = 5 # 学生 STUDENT = 5 # 学生
@ -233,6 +233,9 @@ export function TPMIndexHOC(WrappedComponent) {
isSuperAdmin = () => { isSuperAdmin = () => {
// return false // return false
return this.state.coursedata&&this.state.coursedata.course_identity === 0 return this.state.coursedata&&this.state.coursedata.course_identity === 0
}
isCourseAdmin = () => {
return this.state.coursedata&&this.state.coursedata.course_identity === 2
} }
//超管、运维0-1 //超管、运维0-1
isClassManagement = () => { isClassManagement = () => {
@ -537,6 +540,8 @@ export function TPMIndexHOC(WrappedComponent) {
isSuperAdmin:this.isSuperAdmin, isSuperAdmin:this.isSuperAdmin,
isAdminOrCreator:this.isAdminOrCreator, isAdminOrCreator:this.isAdminOrCreator,
isClassManagement:this.isClassManagement, isClassManagement:this.isClassManagement,
isCourseAdmin:this.isCourseAdmin,
isAdmin: this.isAdmin, isAdmin: this.isAdmin,
isAdminOrTeacher: this.isAdminOrTeacher, isAdminOrTeacher: this.isAdminOrTeacher,
isStudent: this.isStudent, isStudent: this.isStudent,

Loading…
Cancel
Save