Commit 259d7711 by Jianli Ou

侧边栏处理

分中心管理员去除切换所属分中心功能
parent fc6d8bf2
<template>
<div class="gs-admin-certification-detail">
<div class="to-sub-center" v-if="subCenter">
<div class="to-sub-center" v-if="subCenter && !isAdminBranch">
企业所属分中心:{{ subCenterName }}
<el-popover
placement="left"
......@@ -93,6 +93,7 @@ export default {
},
data() {
return {
isAdminBranch: false,
visible: false,
dialogVisible: false,
branchList: window.CodeTable.ANCCBranches,
......@@ -505,6 +506,7 @@ export default {
}
},
mounted() {
this.isAdminBranch = JSON.parse(localStorage.getItem('gs-user')).type === 'adminBranch'
this.initData()
}
}
......
......@@ -192,20 +192,20 @@ export default {
{
id: uuid("gs_nav"),
name: "实名认证业务审核",
index: 0,
index: 1,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "企业实名认证",
index: 0,
link: "/MyManage/admin/check",
link: "/MyManage/admin/check?menu=1",
},
{
id: uuid("gs_nav"),
name: "企业实名认证变更",
index: 1,
link: "/MyManage/admin/check",
link: "/MyManage/admin/check?menu=2",
},
],
}
......@@ -224,44 +224,44 @@ export default {
// // 2.系统成员
// // 3.管理员
// // 4.分中心管理员
// if (user.type === 'admin') {
// this.userType = ADMIN;
// } else if (user.type === 'adminBranch') {
// this.userType = ADMINBRANCH;
// } else if (user.type === 'verify') {
// this.userType = SYSTEM_MEMBER;
// } else {
// this.userType = UN_VERIFY;
// }
//
// if (this.userType === UN_VERIFY) {
// if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
// this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
// }
// if (this.loginInfo.userType === 3 && this.loginInfo.isQY === 1) {
// this.$store.commit("system/SET_SUB_NAV", this.isQYRouterList);
// return
// }
// this.$store.commit("system/SET_SUB_NAV", this.routerList);
// } else if (this.userType === SYSTEM_MEMBER) {
// if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
// this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
// }
// this.routerList[0].link = '/MyManage/SystemMember/index',
// this.routerList[2].children.push({
// id: uuid("gs_nav"),
// name: "企业信息",
// index: 3,
// link: '/MyManage/SystemMember/companyInfo'
// })
// this.$store.commit("system/SET_SUB_NAV", this.routerList);
// } else if (this.userType === ADMIN) {
// this.$store.commit("system/SET_SUB_NAV", this.adminRouterList);
// } else if (this.userType === ADMINBRANCH) {
// this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList);
// }
if (user.type === 'admin') {
this.userType = ADMIN;
} else if (user.type === 'adminBranch') {
this.userType = ADMINBRANCH;
} else if (user.type === 'verify') {
this.userType = SYSTEM_MEMBER;
} else {
this.userType = UN_VERIFY;
}
if (this.userType === UN_VERIFY) {
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
}
if (this.loginInfo.userType === 3 && this.loginInfo.isQY === 1) {
this.$store.commit("system/SET_SUB_NAV", this.isQYRouterList);
return
}
this.$store.commit("system/SET_SUB_NAV", this.routerList);
} else if (this.userType === SYSTEM_MEMBER) {
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
}
this.routerList[0].link = '/MyManage/SystemMember/index',
this.routerList[2].children.push({
id: uuid("gs_nav"),
name: "企业信息",
index: 3,
link: '/MyManage/SystemMember/companyInfo'
})
this.$store.commit("system/SET_SUB_NAV", this.routerList);
} else if (this.userType === ADMIN) {
this.$store.commit("system/SET_SUB_NAV", this.adminRouterList);
} else if (this.userType === ADMINBRANCH) {
this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList);
}
this.$store.commit("system/SET_SUB_NAV", this.routerList);
// this.$store.commit("system/SET_SUB_NAV", this.routerList);
},
methods: {},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment