|
|
|
@ -159,7 +159,9 @@ class TPMIndex extends Component {
|
|
|
|
|
tpmindexjupyterbool:false,
|
|
|
|
|
is_jupyter:false,
|
|
|
|
|
selectedKeys:"",
|
|
|
|
|
openknows: false
|
|
|
|
|
openknows:false,
|
|
|
|
|
newathArray:[]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -378,6 +380,11 @@ class TPMIndex extends Component {
|
|
|
|
|
} else if (e.key === "9") {
|
|
|
|
|
this.props.history.replace(`/shixuns/${id}/settings`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
setpathArray=(list)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
newathArray:list
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
|
|
|
|
@ -545,24 +552,24 @@ class TPMIndex extends Component {
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/repository/master/shixun_show/:fileId" render={
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} is_jupyter={this.state.is_jupyter}
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} is_jupyter={this.state.is_jupyter} setpathArray={(value)=>this.setpathArray(value)}
|
|
|
|
|
/>)
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/secret_repository/master/shixun_show/:fileId" render={
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} secret_repository_tab={true} is_jupyter={this.state.is_jupyter}
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} secret_repository_tab={true} is_jupyter={this.state.is_jupyter} setpathArray={(value)=>this.setpathArray(value)}
|
|
|
|
|
/>)
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/repository" render={
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} is_jupyter={this.state.is_jupyter}
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} is_jupyter={this.state.is_jupyter} setpathArray={(value)=>this.setpathArray(value)}
|
|
|
|
|
/>)
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/secret_repository" render={
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} secret_repository_tab={true} is_jupyter={this.state.is_jupyter}
|
|
|
|
|
(props) => (<TPMRepositoryComponent {...this.props} {...this.state} {...props} secret_repository_tab={true} is_jupyter={this.state.is_jupyter} setpathArray={(value)=>this.setpathArray(value)}
|
|
|
|
|
/>)
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
@ -570,6 +577,10 @@ class TPMIndex extends Component {
|
|
|
|
|
{/* <Route exact path="/shixuns/:shixunId/propaedeutics" component={TPMPropaedeuticsComponent}></Route> */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* <Route exact path="/shixuns/:shixunId/repository/:shixunId/" component={TPMRepositoryComponent}></Route> */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/shixun_discuss" render={
|
|
|
|
|
(props) => (<TPMShixunDiscussContainer {...this.props} {...this.state} {...props} is_jupyter={this.state.is_jupyter}
|
|
|
|
|
initForumState={(data)=>this.initForumState(data)}
|
|
|
|
@ -580,7 +591,7 @@ class TPMIndex extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/settings" render={
|
|
|
|
|
(props) => (<TPMsettings {...this.props} {...this.state} {...props} />)
|
|
|
|
|
(props) => (<TPMsettings {...this.props} {...this.state} {...props} getcomponentdidmount={()=>this.getcomponentdidmount()} />)
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
{/*实训项目条目塞选*/}
|
|
|
|
@ -651,7 +662,6 @@ class TPMIndex extends Component {
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*<Route exact path="/shixuns/:shixunId" component={TPMChallengeComponent}></Route>*/}
|
|
|
|
|
</Switch>
|
|
|
|
|
|
|
|
|
|