Commit 259d7711 by Jianli Ou

侧边栏处理

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