|
@@ -2,11 +2,11 @@ package controllers
|
|
|
|
|
|
import (
|
|
import (
|
|
"encoding/json"
|
|
"encoding/json"
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
|
"eta/eta_api/models"
|
|
"eta/eta_api/models"
|
|
"eta/eta_api/models/system"
|
|
"eta/eta_api/models/system"
|
|
"eta/eta_api/services"
|
|
"eta/eta_api/services"
|
|
"eta/eta_api/utils"
|
|
"eta/eta_api/utils"
|
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
"time"
|
|
"time"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -35,7 +35,7 @@ func (this *ClassifyController) Add() {
|
|
}
|
|
}
|
|
|
|
|
|
// 获取系统菜单, 如果没有对应的字段的特殊处理项, 则忽略必填
|
|
// 获取系统菜单, 如果没有对应的字段的特殊处理项, 则忽略必填
|
|
- menus, e := system.GetSysMenuItemsByCondition("", make([]interface{}, 0), []string{}, ``)
|
|
|
|
|
|
+ menus, e := system.GetSysMenuItemsByCondition(` AND hidden = 0`, make([]interface{}, 0), []string{}, ``)
|
|
if e != nil {
|
|
if e != nil {
|
|
br.Msg = "保存失败"
|
|
br.Msg = "保存失败"
|
|
br.ErrMsg = "获取菜单列表失败, Err: " + e.Error()
|
|
br.ErrMsg = "获取菜单列表失败, Err: " + e.Error()
|
|
@@ -362,7 +362,7 @@ func (this *ClassifyController) Edit() {
|
|
}
|
|
}
|
|
|
|
|
|
// 获取系统菜单, 如果没有对应的字段的特殊处理项, 则忽略必填
|
|
// 获取系统菜单, 如果没有对应的字段的特殊处理项, 则忽略必填
|
|
- menus, e := system.GetSysMenuItemsByCondition("", make([]interface{}, 0), []string{}, ``)
|
|
|
|
|
|
+ menus, e := system.GetSysMenuItemsByCondition(` AND hidden = 0`, make([]interface{}, 0), []string{}, ``)
|
|
if e != nil {
|
|
if e != nil {
|
|
br.Msg = "保存失败"
|
|
br.Msg = "保存失败"
|
|
br.ErrMsg = "获取菜单列表失败, Err: " + e.Error()
|
|
br.ErrMsg = "获取菜单列表失败, Err: " + e.Error()
|