Jelajahi Sumber

feat:300项目管理菜单调整

wangshan 2 tahun lalu
induk
melakukan
9f66a97527
1 mengubah file dengan 8 tambahan dan 2 penghapusan
  1. 8 2
      entity/user.go

+ 8 - 2
entity/user.go

@@ -107,6 +107,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 			}
 			UserPowerMap["200"] = int(vip.Status)
 			UserPowerMap["201"] = int(vip.Upgrade)
+			//
 			if vip.Upgrade > 0 && member.Status < 1 {
 				UserPowerMap["202"] = int(vip.Status)
 			}
@@ -189,8 +190,13 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 		//必须是企业管理员-&-购买了企业级应用服务
 		//企业级服务 权限管理(只有企业管理员有权限)
 		entService := entInfo.BuyMember > 0 || entInfo.BuyVip > 0
-		if entInfo.EntRoleId == 1 && entService {
-			UserPowerMap["700"] = 1
+		if entService {
+			if entInfo.EntRoleId == 1 {
+				UserPowerMap["700"] = 1
+			} else if entInfo.EntRoleId == 2 {
+				//企业级服务 部门管理员
+				UserPowerMap["703"] = 1
+			}
 		}
 		//企业级服务 企业订阅--
 		//1、存在未到期的购买主体为“企业”切购买产品为大会员或者超级订阅的部门管理员或企业管理员;c > 0