Browse Source

feat:更新

wangshan 2 years ago
parent
commit
df55ef4a66
1 changed files with 4 additions and 4 deletions
  1. 4 4
      entity/user.go

+ 4 - 4
entity/user.go

@@ -92,17 +92,17 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 						case 1: //新版商机管理
 							UserPowerMap["110"] = 1
 							switch MC.IntAll(entNicheInfo["role_id"]) {
-							case 1: //企业管理员
-								UserPowerMap["111"] = 1
 							case 2: //部门管理员
+								UserPowerMap["111"] = 1
+							case 1: //企业管理员
 								UserPowerMap["112"] = 1
 							}
 						case 0: //老版商机管理
 							UserPowerMap["100"] = 1
 							switch MC.IntAll(entNicheInfo["role_id"]) {
-							case 1: //企业管理员
-								UserPowerMap["101"] = 1
 							case 2: //部门管理员
+								UserPowerMap["101"] = 1
+							case 1: //企业管理员
 								UserPowerMap["102"] = 1
 							}
 						}