权限判断修改
This commit is contained in:
@@ -163,15 +163,15 @@ const user = {
|
||||
let userIdentity
|
||||
let userInfo = Vue.ls.get(USER_INFO)
|
||||
// userInfo.companyRole,企业角色:1--普通企业;2--会员企业
|
||||
if (userInfo.companyRole.toString() === '1') {
|
||||
if (userInfo.companyRole + '' === '1') {
|
||||
userIdentity = '0'
|
||||
} else {
|
||||
// userInfo.roleCode,企业用户角色:1--企业联系人、--企业管理员
|
||||
if (userInfo.roleCode.toString() === '2') {
|
||||
if (userInfo.roleCode + '' === '2') {
|
||||
userIdentity = '1'
|
||||
} else {
|
||||
// userInfo.isCouncil,是否理事会成员:1--是;0--否
|
||||
if (userInfo.isCouncil.toString() === '1') {
|
||||
if (userInfo.isCouncil + '' === '1') {
|
||||
userIdentity = '3'
|
||||
} else {
|
||||
userIdentity = '2'
|
||||
|
||||
Reference in New Issue
Block a user