|
|
@ -12,7 +12,8 @@
|
|
|
|
<template slot="content">
|
|
|
|
<template slot="content">
|
|
|
|
<div v-for="hiddenMenu in hiddenMenus" :key="hiddenMenu.name" class="hidden-menu-style">
|
|
|
|
<div v-for="hiddenMenu in hiddenMenus" :key="hiddenMenu.name" class="hidden-menu-style">
|
|
|
|
<my-icon :type="hiddenMenu.iconType" class="icon-style"></my-icon>
|
|
|
|
<my-icon :type="hiddenMenu.iconType" class="icon-style"></my-icon>
|
|
|
|
<span @click="hiddenMenuClick(hiddenMenu)" class="menu-name-style" style="margin-left: 0.5rem;margin-top:0.5rem;cursor: pointer">{{hiddenMenu.title}}</span>
|
|
|
|
<span @click="hiddenMenuClick(hiddenMenu)" class="menu-name-style"
|
|
|
|
|
|
|
|
style="margin-left: 0.5rem;margin-top:0.5rem;cursor: pointer">{{hiddenMenu.title}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<my-icon :type="showMoreIconType" class="icon-style"></my-icon>
|
|
|
|
<my-icon :type="showMoreIconType" class="icon-style"></my-icon>
|
|
|
@ -94,6 +95,29 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//展示更多
|
|
|
|
//展示更多
|
|
|
|
this.showMore = true;
|
|
|
|
this.showMore = true;
|
|
|
|
|
|
|
|
this.handleHiddenMenu();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* 处理跳转菜单为隐藏菜单
|
|
|
|
|
|
|
|
* */
|
|
|
|
|
|
|
|
handleHiddenMenu: function () {
|
|
|
|
|
|
|
|
let hiddenMenus = this.hiddenMenus;
|
|
|
|
|
|
|
|
let menuName = this.menuName;
|
|
|
|
|
|
|
|
for(let i = 0,len = hiddenMenus.length;i < len;i ++){
|
|
|
|
|
|
|
|
if(menuName === hiddenMenus[i].name){
|
|
|
|
|
|
|
|
this.showMoreTitle = hiddenMenus[i].title;
|
|
|
|
|
|
|
|
this.showMoreIconType = hiddenMenus[i].iconType ? hiddenMenus[i].iconType : "";
|
|
|
|
|
|
|
|
this.menuName = hiddenMenus[i].name;
|
|
|
|
|
|
|
|
this.childMenuName = "";
|
|
|
|
|
|
|
|
this.menuChildren = this.getMenuChildren();
|
|
|
|
|
|
|
|
let path = hiddenMenus[i].path;
|
|
|
|
|
|
|
|
if (this.menuChildren && this.menuChildren.length > 0) {
|
|
|
|
|
|
|
|
path = this.menuChildren[0].path;
|
|
|
|
|
|
|
|
this.childMenuName = this.menuChildren[0].name;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|