浏览代码

feat:更新

wangshan 2 年之前
父节点
当前提交
df55ef4a66
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      entity/user.go

+ 4 - 4
entity/user.go

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