|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
<Menu ref="menu" :active-name="selectedItemName" :open-names="openName" theme="dark" width="auto"
|
|
|
|
|
:class="menuitemClasses"
|
|
|
|
|
@on-select="onSelectLister" :accordion="true">
|
|
|
|
|
<MenuItem :name="0" to="/customer/view">
|
|
|
|
|
<MenuItem v-if="roleCode === 'GLY-ADMIN' || roleCode === 'DG-YUNYING'" :name="0" to="/customer/view">
|
|
|
|
|
<Icon type="ios-paper"/>
|
|
|
|
|
<span style="margin-left: 7px">首页</span>
|
|
|
|
|
</MenuItem>
|
|
|
|
@ -56,6 +56,7 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
roleCode: JSON.parse(sessionStorage.getItem("loginInfo")).roleCode,
|
|
|
|
|
mainUrl: "/customer/view",
|
|
|
|
|
isCollapsed: false,
|
|
|
|
|
mHeight: 600,
|
|
|
|
@ -247,21 +248,24 @@
|
|
|
|
|
//导航栏初始化
|
|
|
|
|
menuInit: function () {
|
|
|
|
|
let that = this;
|
|
|
|
|
//默认首页
|
|
|
|
|
that.selectedItemName = 0;
|
|
|
|
|
this.$router.push({path: that.mainUrl});
|
|
|
|
|
this.selectedMenu = "首页";
|
|
|
|
|
this.breadcrumbUrl = this.mainUrl;
|
|
|
|
|
// that.selectedItemName = that.onePermissionList[0].subMenuList[0].id;
|
|
|
|
|
// that.openName = [that.onePermissionList[0].id];
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.$refs.menu.updateOpened();
|
|
|
|
|
// this.$refs.menu.updateActiveName();
|
|
|
|
|
// });
|
|
|
|
|
// this.selectedMenu = this.onePermissionList[0].name;
|
|
|
|
|
// this.selectedSubMenu = this.onePermissionList[0].subMenuList[0].name;
|
|
|
|
|
// sessionStorage.setItem("threeLevel",JSON.stringify(this.onePermissionList[0].subMenuList[0].subMenuList));
|
|
|
|
|
// this.$router.push({path: that.onePermissionList[0].subMenuList[0].resource});
|
|
|
|
|
if(this.roleCode === 'GLY-ADMIN' || this.roleCode === 'DG-YUNYING'){
|
|
|
|
|
//默认首页
|
|
|
|
|
that.selectedItemName = 0;
|
|
|
|
|
this.$router.push({path: that.mainUrl});
|
|
|
|
|
this.selectedMenu = "首页";
|
|
|
|
|
this.breadcrumbUrl = this.mainUrl;
|
|
|
|
|
}else{
|
|
|
|
|
that.selectedItemName = that.onePermissionList[0].subMenuList[0].id;
|
|
|
|
|
that.openName = [that.onePermissionList[0].id];
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.menu.updateOpened();
|
|
|
|
|
this.$refs.menu.updateActiveName();
|
|
|
|
|
});
|
|
|
|
|
this.selectedMenu = this.onePermissionList[0].name;
|
|
|
|
|
this.selectedSubMenu = this.onePermissionList[0].subMenuList[0].name;
|
|
|
|
|
sessionStorage.setItem("threeLevel",JSON.stringify(this.onePermissionList[0].subMenuList[0].subMenuList));
|
|
|
|
|
this.$router.push({path: that.onePermissionList[0].subMenuList[0].resource});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
//账户管理页面回调方法
|
|
|
|
|