forked from Gitlink/forgeplus-react
本地版头部menu更新
This commit is contained in:
parent
97b246d608
commit
c3fcf4a1bb
|
@ -301,12 +301,25 @@ class NewHeader extends Component {
|
|||
</Menu>
|
||||
)
|
||||
}
|
||||
|
||||
platMenu=(http)=>{
|
||||
return(
|
||||
<Menu className="headmenus">
|
||||
<Menu.Item><a href={`${http}/shixuns`}>实训项目运行平台</a></Menu.Item>
|
||||
<Menu.Item><a href={`${http}/shixuns/new`}>开发运行工具集</a></Menu.Item>
|
||||
<Menu.Item><a href={`${http}/admins/mirror_repositories`}>镜像管理</a></Menu.Item>
|
||||
<Menu.Item><a href={`${http}/shixuns/2pvunkqe/challenges`}>实训项目自动评测系统</a></Menu.Item>
|
||||
<Menu.Item><a href={`${http}/shixuns/2pvunkqe/edit/107884/editcheckpoint`}>实训项目开发平台</a></Menu.Item>
|
||||
</Menu>
|
||||
)
|
||||
}
|
||||
moopMenu=(http,forgeHttp)=>{
|
||||
return(
|
||||
<Menu className="headmenus">
|
||||
<Menu.Item><a href={`${http}/moop_cases`}>案列管理</a></Menu.Item>
|
||||
<Menu.Item><a href={`${http}/competitions`}>竞赛管理</a></Menu.Item>
|
||||
<Menu.Item><a href={forgeHttp}>协同开发</a></Menu.Item>
|
||||
<Menu.Item><a href={`${http}/paths?discipline_id=21`}>综合案例定制</a></Menu.Item>
|
||||
</Menu>
|
||||
)
|
||||
}
|
||||
|
@ -432,15 +445,22 @@ class NewHeader extends Component {
|
|||
<ul id="header-nav">
|
||||
<li>
|
||||
<Dropdown overlay={this.classMenu(settings && settings.new_course.default_url)} placement={"bottomCenter"}>
|
||||
<a href={`${settings && settings.new_course.default_url}/classrooms`}>大数据实验教学资源</a>
|
||||
<a href={`${settings && settings.new_course.default_url}/classrooms`}>大数据实验教学资源软件平台</a>
|
||||
</Dropdown>
|
||||
</li>
|
||||
<li>
|
||||
<Dropdown overlay={this.platMenu(settings && settings.new_course.default_url,settings && settings.new_course.forge_url)} placement={"bottomCenter"}>
|
||||
<a href={`${settings && settings.new_course.default_url}/shixuns`}>数据科学支撑工具集和实训平台</a>
|
||||
</Dropdown>
|
||||
</li>
|
||||
<li><a href={`${settings && settings.new_course.default_url}/shixuns`}>数据科学支撑工具集和实训</a></li>
|
||||
<li>
|
||||
<Dropdown overlay={this.moopMenu(settings && settings.new_course.default_url,settings && settings.new_course.forge_url)} placement={"bottomCenter"}>
|
||||
<a href={`${settings && settings.new_course.default_url}/moop_cases`}>大数据工程教研</a>
|
||||
<a href={`${settings && settings.new_course.default_url}/moop_cases`}>大数据工程教研支撑平台</a>
|
||||
</Dropdown>
|
||||
</li>
|
||||
<li>
|
||||
<a href={`${settings && settings.new_course.default_url}/forums`}>交流问答</a>
|
||||
</li>
|
||||
{/* {
|
||||
settings.navbar && settings.navbar.map((item, key) => {
|
||||
var new_link = item.link;
|
||||
|
|
Loading…
Reference in New Issue