Browse Source

feat:更新

wangshan 2 năm trước cách đây
mục cha
commit
df55ef4a66
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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
 							}
 						}