diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index 6ba8b8f7f..e34aaa169 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -23,7 +23,8 @@ class Challengesjupyter extends Component { booljupyterurls:false, loading:false, boxoffsetHeigh:0, - opentitletype:true + opentitletype:true, + enlarge:false, } } @@ -194,9 +195,15 @@ class Challengesjupyter extends Component { }) } + onclki=(bool)=>{ + this.setState({ + enlarge:bool + }) + } + render() { - let{ChallengesDataList,booljupyterurls}=this.state; + let{ChallengesDataList,booljupyterurls,enlarge}=this.state; let id = this.props.match.params.shixunId; //老师 const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false; @@ -289,8 +296,9 @@ class Challengesjupyter extends Component { display: flex; flex-direction:row-reverse; } + ; - } + } ` } @@ -300,18 +308,31 @@ class Challengesjupyter extends Component { : ( admin===true||business===true||mysidentity===true? -
+
+ +

任务详情

(请将实训题目写在下方并保存)

- + { + enlarge===true? + this.onclki(false)}> + : + this.onclki(true)}> + }
this.modifyjupyter(this.state)}>

导入

+
+ : "" ) @@ -346,7 +367,7 @@ class Challengesjupyter extends Component { { admin===true||business===true||mysidentity===true?
-
+
{ this.state.jupyter_url===null || this.state.jupyter_url===undefined? ( diff --git a/public/react/src/modules/tpm/shixunchild/shixunchildCss/Challenges.css b/public/react/src/modules/tpm/shixunchild/shixunchildCss/Challenges.css index 9ff7f0564..d18370a51 100644 --- a/public/react/src/modules/tpm/shixunchild/shixunchildCss/Challenges.css +++ b/public/react/src/modules/tpm/shixunchild/shixunchildCss/Challenges.css @@ -190,3 +190,28 @@ line-height: 30px; } +.fangdaone{ + height: 63px; + width: 100%; + position: fixed; + top: 0px; + left: 0px; + z-index: 999999; + right: 0px; +} + +.fangdatwo{ + height: 100%; + width: 100%; + position: fixed; + top:0px; + margin-top: 63px; + bottom: 0px; + left: 0px; + z-index: 999999; + right: 0px; +} + +.jupyterswidth{ + width: 1140px; +}