|
@@ -37,10 +37,65 @@
|
|
|
<div
|
|
|
class="submenu"
|
|
|
v-for="(item2, ind2) in item['group']"
|
|
|
- :key="ind2"
|
|
|
+ :key="`${ind}-${ind2}`"
|
|
|
>
|
|
|
+ <el-submenu
|
|
|
+ v-if="item2['group'].length"
|
|
|
+ :index="`${ind}-${ind2}`"
|
|
|
+ >
|
|
|
+ <template slot="title">
|
|
|
+ <div
|
|
|
+ class="subTitle subItem"
|
|
|
+ @click="goto(item2.goto)"
|
|
|
+ :style="
|
|
|
+ $route.path.indexOf(item2.goto) != -1
|
|
|
+ ? 'color:#40aaff'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ :class="item2.icon"
|
|
|
+ style="margin-right: 15px; width: 15px"
|
|
|
+ :style="
|
|
|
+ $route.path.indexOf(item2.goto) != -1
|
|
|
+ ? 'color:#40aaff'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ ></i>
|
|
|
+ {{ item2.label }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div
|
|
|
+ class="submenu"
|
|
|
+ v-for="(item3, ind3) in item2['group']"
|
|
|
+ :key="`${ind}-${ind2}-${ind3}`"
|
|
|
+ >
|
|
|
+ <el-menu-item
|
|
|
+ :index="`${ind}-${ind2}-${ind3}`"
|
|
|
+ @click="goto(item3.goto)"
|
|
|
+ >
|
|
|
+ <template slot="title">
|
|
|
+ <div
|
|
|
+ class="subTitle subItem subItemChild"
|
|
|
+ :style="
|
|
|
+ $route.path.indexOf(item3.goto) != -1
|
|
|
+ ? 'color:#40aaff'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ :class="item3.icon"
|
|
|
+ style="margin-right: 15px; width: 15px"
|
|
|
+ ></i>
|
|
|
+ {{ item3.label }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-menu-item>
|
|
|
+ </div>
|
|
|
+ </el-submenu>
|
|
|
<el-menu-item
|
|
|
- :index="ind2.toString()"
|
|
|
+ :index="`${ind}-${ind2}`"
|
|
|
+ v-else-if="$store.state.userInfo.type == 0 || !item2['power']"
|
|
|
@click="goto(item2.goto)"
|
|
|
>
|
|
|
<template slot="title">
|
|
@@ -64,7 +119,7 @@
|
|
|
</el-submenu>
|
|
|
<el-menu-item
|
|
|
:index="ind.toString()"
|
|
|
- v-else
|
|
|
+ v-else-if="$store.state.userInfo.type == 0 || !item['power']"
|
|
|
@click="goto(item.goto)"
|
|
|
>
|
|
|
<template slot="title">
|
|
@@ -256,30 +311,49 @@ export default {
|
|
|
this.navList.push(
|
|
|
{
|
|
|
id: 1,
|
|
|
- label: "项目立项管理",
|
|
|
+ label: "事前申请",
|
|
|
goto: "/projectApplication",
|
|
|
icon: "iconfont icon-shuben",
|
|
|
group: [
|
|
|
- { label: "创客空间申请", goto: "/MakerSpaceApply" },
|
|
|
{
|
|
|
- label: "创客项目申请",
|
|
|
- goto: "/newStudentProjectApply",
|
|
|
+ id: 1,
|
|
|
+ label: "项目立项管理",
|
|
|
+ goto: "/projectApplication",
|
|
|
+ group: [
|
|
|
+ {
|
|
|
+ label: "创客项目申请",
|
|
|
+ goto: "/newStudentProjectApply",
|
|
|
+ },
|
|
|
+ { label: "创客空间申请", goto: "/MakerSpaceApply" },
|
|
|
+ ],
|
|
|
},
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- label: "活动申请",
|
|
|
- icon: "el-icon-wind-power",
|
|
|
- goto: "/makerActvity",
|
|
|
- group: [
|
|
|
{
|
|
|
- label: "创客活动申请",
|
|
|
- goto: "/newMarkerActivity",
|
|
|
+ id: 1,
|
|
|
+ label: "创客活动管理",
|
|
|
+ goto: "/makerActvity",
|
|
|
+ group: [
|
|
|
+ {
|
|
|
+ label: "双创实践活动申请",
|
|
|
+ goto: "/newMarkerActivity",
|
|
|
+ },
|
|
|
+ // {label:"个人创客申请",power:false,goto:"/newNomMarkerActivity"},
|
|
|
+ ],
|
|
|
},
|
|
|
- // {label:"个人创客申请",power:false,goto:"/newNomMarkerActivity"},
|
|
|
],
|
|
|
},
|
|
|
+ // {
|
|
|
+ // id: 2,
|
|
|
+ // label: "创客活动管理",
|
|
|
+ // icon: "el-icon-wind-power",
|
|
|
+ // goto: "/makerActvity",
|
|
|
+ // group: [
|
|
|
+ // {
|
|
|
+ // label: "双创实践活动申请",
|
|
|
+ // goto: "/newMarkerActivity",
|
|
|
+ // },
|
|
|
+ // // {label:"个人创客申请",power:false,goto:"/newNomMarkerActivity"},
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
{
|
|
|
id: 2,
|
|
|
label: "事后汇总",
|
|
@@ -289,6 +363,7 @@ export default {
|
|
|
{
|
|
|
label: "创客资金申请",
|
|
|
goto: "/newMarkerfundApply",
|
|
|
+ group: [],
|
|
|
},
|
|
|
// {label:"创客活动资金申请",power:false,goto:"/newMarkerfundApply"},
|
|
|
// {label:"个人创客资金申请",power:false,goto:"/newNomMarkerFundApply"}
|
|
@@ -299,28 +374,34 @@ export default {
|
|
|
this.navList.push(
|
|
|
{
|
|
|
id: 1,
|
|
|
- label: "项目立项管理",
|
|
|
+ label: "事前申请",
|
|
|
goto: "/projectApplication",
|
|
|
icon: "iconfont icon-shuben",
|
|
|
group: [
|
|
|
- { label: "创客空间申请", goto: "/MakerSpaceApply" },
|
|
|
{
|
|
|
- label: "创客项目申请",
|
|
|
- goto: "/newStudentProjectApply",
|
|
|
+ id: 1,
|
|
|
+ label: "项目立项管理",
|
|
|
+ goto: "/projectApplication",
|
|
|
+ group: [
|
|
|
+ {
|
|
|
+ label: "创客项目申请",
|
|
|
+ goto: "/newStudentProjectApply",
|
|
|
+ },
|
|
|
+ { label: "创客空间申请", goto: "/MakerSpaceApply" },
|
|
|
+ ],
|
|
|
},
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- label: "活动申请",
|
|
|
- icon: "el-icon-wind-power",
|
|
|
- goto: "/makerActvity",
|
|
|
- group: [
|
|
|
{
|
|
|
- label: "创客活动申请",
|
|
|
- goto: "/newMarkerActivity",
|
|
|
+ id: 1,
|
|
|
+ label: "创客活动管理",
|
|
|
+ goto: "/makerActvity",
|
|
|
+ group: [
|
|
|
+ {
|
|
|
+ label: "双创实践活动申请",
|
|
|
+ goto: "/newMarkerActivity",
|
|
|
+ },
|
|
|
+ // {label:"个人创客申请",power:false,goto:"/newNomMarkerActivity"},
|
|
|
+ ],
|
|
|
},
|
|
|
- // {label:"个人创客申请",power:false,goto:"/newNomMarkerActivity"},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -332,6 +413,7 @@ export default {
|
|
|
{
|
|
|
label: "创客资金申请",
|
|
|
goto: "/newMarkerfundApply",
|
|
|
+ group: [],
|
|
|
},
|
|
|
// {label:"创客活动资金申请",power:false,goto:"/newMarkerfundApply"},
|
|
|
// {label:"个人创客资金申请",power:false,goto:"/newNomMarkerFundApply"}
|
|
@@ -541,6 +623,9 @@ export default {
|
|
|
.subItem {
|
|
|
padding-left: 13%;
|
|
|
}
|
|
|
+.subItemChild {
|
|
|
+ padding-left: 7%;
|
|
|
+}
|
|
|
:deep(.el-menu-item.is-active) {
|
|
|
color: #333 !important;
|
|
|
i {
|