From a1684721bde1f46b868bea57a091c4c8875854af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 12 Dec 2019 11:39:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/tpm/component/TPMNav.js | 40 +++++++++--- .../Challenges/Challengesjupyter.js | 62 +++++++++++-------- 2 files changed, 68 insertions(+), 34 deletions(-) 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 ? "" : -
任务详情
(请将实训题目写在下方)
应用到实训
任务详情
(请将实训题目写在下方)
应用到实训