|
|
|
@ -604,10 +604,34 @@ class Exercisesetting extends Component{
|
|
|
|
|
modalSave:this.cancelBox
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
|
|
try {
|
|
|
|
|
//是否为助教
|
|
|
|
|
if(this.props.isAssistant()===true){
|
|
|
|
|
//如果是助教是否有权限
|
|
|
|
|
if(this.props.assistant_auth===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
flagPageEdit:true
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
flagPageEdit:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
//是老师
|
|
|
|
|
this.setState({
|
|
|
|
|
flagPageEdit:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
this.setState({
|
|
|
|
|
flagPageEdit:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//取消编辑
|
|
|
|
|
cancelEdit=()=>{
|
|
|
|
|