|
@@ -16,7 +16,7 @@ import (
|
|
. "userCenter/rpc/usercenter"
|
|
. "userCenter/rpc/usercenter"
|
|
)
|
|
)
|
|
|
|
|
|
-//工作桌面--菜单当前选择模式--全部:all/可用:usable
|
|
|
|
|
|
+// RenewWorkDesktopMenuModeOrCommonly 工作桌面--菜单当前选择模式--全部:all/可用:usable
|
|
//工作桌面--常用功能更新
|
|
//工作桌面--常用功能更新
|
|
//工作桌面--常用功能列表
|
|
//工作桌面--常用功能列表
|
|
func RenewWorkDesktopMenuModeOrCommonly(in *WorkDesktopComprehensiveReq) (r *WorkDesktopComprehensiveResp) {
|
|
func RenewWorkDesktopMenuModeOrCommonly(in *WorkDesktopComprehensiveReq) (r *WorkDesktopComprehensiveResp) {
|
|
@@ -115,7 +115,16 @@ func RenewWorkDesktopMenuModeOrCommonly(in *WorkDesktopComprehensiveReq) (r *Wor
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//常用功能格式化
|
|
//常用功能格式化
|
|
- r.Data, _ = m.CommonlyFormat(childMenus)
|
|
|
|
|
|
+ menu, saveIds, delBool := m.CommonlyFormat(childMenus)
|
|
|
|
+ if delBool && len(saveIds) > 0 {
|
|
|
|
+ in.MenuIds = strings.Join(saveIds, ",")
|
|
|
|
+ go func(in *WorkDesktopComprehensiveReq) {
|
|
|
|
+ if b, _ := entity.CommonlyUpdate(in); !b {
|
|
|
|
+ logx.Info("常用功能-更新数据失败")
|
|
|
|
+ }
|
|
|
|
+ }(in)
|
|
|
|
+ }
|
|
|
|
+ r.Data = menu
|
|
}
|
|
}
|
|
}
|
|
}
|
|
case "menuMode": //菜单模式更新
|
|
case "menuMode": //菜单模式更新
|
|
@@ -149,7 +158,7 @@ func RenewWorkDesktopMenuModeOrCommonly(in *WorkDesktopComprehensiveReq) (r *Wor
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-//
|
|
|
|
|
|
+// GetWorkDesktopMenuMode 获取工作菜单模式
|
|
func GetWorkDesktopMenuMode(in *WorkDesktopMenuInfoReq) (str string, err error) {
|
|
func GetWorkDesktopMenuMode(in *WorkDesktopMenuInfoReq) (str string, err error) {
|
|
if in.UserId == "" {
|
|
if in.UserId == "" {
|
|
return "", fmt.Errorf("参数异常")
|
|
return "", fmt.Errorf("参数异常")
|
|
@@ -165,7 +174,7 @@ func GetWorkDesktopMenuMode(in *WorkDesktopMenuInfoReq) (str string, err error)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-//获取工作桌面菜单树
|
|
|
|
|
|
+// GetWordDesktopMenuTree 获取工作桌面菜单树
|
|
func GetWordDesktopMenuTree(in *WorkDesktopMenuInfoReq) ([]*pb.MenuList, error) {
|
|
func GetWordDesktopMenuTree(in *WorkDesktopMenuInfoReq) ([]*pb.MenuList, error) {
|
|
if in.EntId > 0 {
|
|
if in.EntId > 0 {
|
|
//判断商机管理用户是否切换企业
|
|
//判断商机管理用户是否切换企业
|