diff --git a/public/react/src/modules/tpm/component/TPMNav.js b/public/react/src/modules/tpm/component/TPMNav.js index 12906fe5a..b18a1e909 100644 --- a/public/react/src/modules/tpm/component/TPMNav.js +++ b/public/react/src/modules/tpm/component/TPMNav.js @@ -53,20 +53,44 @@ class TPMNav extends Component { {/*jupyter*/} { this.props.is_jupyter===true? - 数据集 + ( + is_teacher===true? + 数据集 + :"" + ) + :"" } + { + this.props.is_jupyter === false ? + 评论 + :"" + } + { + this.props.is_jupyter === false ? + 排行榜:"" + } - 评论 + {this.props.identity >2||this.props.identity===undefined?"": + (this.props.is_jupyter === false? + 审核情况 + : + is_teacher===true? + 审核情况 + : + "" + + ) - 排行榜 - {this.props.identity >2||this.props.identity===undefined?"":审核情况} + + } {this.props.identity >4||this.props.identity===undefined ? "":配置} diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index 744b23daa..b59c4ebc2 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -206,7 +206,7 @@ class Challengesjupyter extends Component { // // _iframe.style.display= "none"; //修改样式 // } - + const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false; @@ -257,16 +257,22 @@ class Challengesjupyter extends Component { this.state.jupyter_url === null || this.state.jupyter_url === undefined ? "" : -
任务详情
(请将实训题目写在下方)
应用到实训
任务详情
(请将实训题目写在下方)
应用到实训