|
@@ -633,12 +633,11 @@ func (this *BIDaShboardController) PublicList() {
|
|
}
|
|
}
|
|
|
|
|
|
for _, vv := range respGroupNameListItemList {
|
|
for _, vv := range respGroupNameListItemList {
|
|
- tmpRespGroupListItem.DashboardList = append(tmpRespGroupListItem.DashboardList, vv)
|
|
|
|
|
|
+ tmpRespGroupListItem.DashboardList = append(tmpRespGroupListItem.DashboardList, vv)
|
|
}
|
|
}
|
|
resp = append(resp, tmpRespGroupListItem)
|
|
resp = append(resp, tmpRespGroupListItem)
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "查询成功"
|
|
br.Msg = "查询成功"
|
|
@@ -1281,8 +1280,7 @@ func (this *BIDaShboardController) ChartExcelPermission() {
|
|
}
|
|
}
|
|
lenList := len(list)
|
|
lenList := len(list)
|
|
|
|
|
|
- menuList := make([]*system.SysMenu, 0)
|
|
|
|
-
|
|
|
|
|
|
+ menuList := make([]*system.SysMenuSimple, 0)
|
|
|
|
|
|
chartExcelTypes, e := models.GetBusinessConfByKey("ChartExcelType")
|
|
chartExcelTypes, e := models.GetBusinessConfByKey("ChartExcelType")
|
|
if e != nil {
|
|
if e != nil {
|
|
@@ -1296,21 +1294,28 @@ func (this *BIDaShboardController) ChartExcelPermission() {
|
|
typeMap[v] = true
|
|
typeMap[v] = true
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
for i := 0; i < lenList; i++ {
|
|
for i := 0; i < lenList; i++ {
|
|
item := list[i]
|
|
item := list[i]
|
|
if !typeMap[item.LevelPath] && !typeMap[item.Path] {
|
|
if !typeMap[item.LevelPath] && !typeMap[item.Path] {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
- menuList = append(menuList, list[i])
|
|
|
|
|
|
+ newItem := &system.SysMenuSimple{
|
|
|
|
+ MenuId: item.MenuId,
|
|
|
|
+ ParentId: item.ParentId,
|
|
|
|
+ Name: item.Name,
|
|
|
|
+ Sort: item.Sort,
|
|
|
|
+ Path: item.Path,
|
|
|
|
+ NameEn: item.NameEn,
|
|
|
|
+ }
|
|
|
|
+ if item.IsLevel == 1 {
|
|
|
|
+ newItem.Path = item.LevelPath
|
|
|
|
+ }
|
|
|
|
+ menuList = append(menuList, newItem)
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "查询成功"
|
|
br.Msg = "查询成功"
|
|
br.Data = menuList
|
|
br.Data = menuList
|
|
return
|
|
return
|
|
-}
|
|
|
|
|
|
+}
|