Commit fda53f55 by Jianli Ou

完善

parent 6f68e4c2
...@@ -156,6 +156,7 @@ export default { ...@@ -156,6 +156,7 @@ export default {
}, },
], ],
userType: ADMIN, userType: ADMIN,
loginInfo: JSON.parse(localStorage.getItem('loginInfo'))
}; };
}, },
created() { created() {
...@@ -176,8 +177,14 @@ export default { ...@@ -176,8 +177,14 @@ export default {
} }
if (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)
}
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) { // 业务大厅用户不展示厂商实名认证菜单
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"),
......
...@@ -123,10 +123,10 @@ export default { ...@@ -123,10 +123,10 @@ export default {
} else { } else {
localStorage.setItem('loginInfo', JSON.stringify(res.data)) localStorage.setItem('loginInfo', JSON.stringify(res.data))
localStorage.setItem('TOKEN', res.data.token) localStorage.setItem('TOKEN', res.data.token)
if (res.data.levels === null) { if (res.data.userType === 3) {
localStorage.setItem('gs-user', JSON.stringify({type: 'unVerify'})) localStorage.setItem('gs-user', JSON.stringify({type: 'unVerify'}))
this.$router.push({path: '/MyManage/UnVerify/index'}) this.$router.push({path: '/MyManage/UnVerify/index'})
} else if (res.data.levels === 4) { } else if (res.data.userType === 2) {
localStorage.setItem('gs-user', JSON.stringify({type: 'verify'})) localStorage.setItem('gs-user', JSON.stringify({type: 'verify'}))
this.$router.push({path: '/MyManage/SystemMember/index'}) this.$router.push({path: '/MyManage/SystemMember/index'})
} else if (res.data.levels === 0) { } else if (res.data.levels === 0) {
......
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