|
@@ -82,7 +82,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
|
|
|
isFree = false
|
|
|
entNicheInfo := (*entNicheInfos)[0]
|
|
|
//判断是否是企业级服务管理员
|
|
|
- entnichePower = MC.IntAll(entNicheInfo["role_id"]) == 2
|
|
|
+ entnichePower = MC.IntAll(entNicheInfo["role_id"]) == 1
|
|
|
//商机管理
|
|
|
if MC.IntAll(entNicheInfo["status"]) == 1 && MC.IntAll(entNicheInfo["power"]) == 1 {
|
|
|
//商机管理服务 P259需求
|
|
@@ -92,17 +92,17 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
|
|
|
case 1: //新版商机管理
|
|
|
UserPowerMap["110"] = 1
|
|
|
switch MC.IntAll(entNicheInfo["role_id"]) {
|
|
|
- case 1: //部门管理员
|
|
|
+ case 1: //企业管理员
|
|
|
UserPowerMap["111"] = 1
|
|
|
- case 2: //企业管理员
|
|
|
+ case 2: //部门管理员
|
|
|
UserPowerMap["112"] = 1
|
|
|
}
|
|
|
case 0: //老版商机管理
|
|
|
UserPowerMap["100"] = 1
|
|
|
switch MC.IntAll(entNicheInfo["role_id"]) {
|
|
|
- case 1: //部门管理员
|
|
|
+ case 1: //企业管理员
|
|
|
UserPowerMap["101"] = 1
|
|
|
- case 2: //企业管理员
|
|
|
+ case 2: //部门管理员
|
|
|
UserPowerMap["102"] = 1
|
|
|
}
|
|
|
}
|