mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-24 11:28:40 +08:00
任务,通知功能完成
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"log"
|
||||
entity "pandax/apps/system/entity"
|
||||
services "pandax/apps/system/services"
|
||||
"pandax/base/biz"
|
||||
@@ -91,7 +90,6 @@ func (m *MenuApi) GetMenuList(rc *ctx.ReqCtx) {
|
||||
status := rc.GinCtx.Query("status")
|
||||
|
||||
menu := entity.SysMenu{MenuName: menuName, Status: status}
|
||||
log.Println(menuName)
|
||||
if menu.MenuName == "" {
|
||||
rc.ResData = m.MenuApp.SelectMenu(menu)
|
||||
} else {
|
||||
|
||||
@@ -33,7 +33,8 @@ func (p *NoticeApi) GetNoticeList(rc *ctx.ReqCtx) {
|
||||
// 获取部门的子部门id
|
||||
one := p.DeptApp.FindOne(rc.LoginAccount.DeptId)
|
||||
split := strings.Split(strings.Trim(one.DeptPath, "/"), "/")
|
||||
ids := utils.DeptPCIds(split, rc.LoginAccount.DeptId, false)
|
||||
// 获取所有父部门id
|
||||
ids := utils.DeptPCIds(split, rc.LoginAccount.DeptId, true)
|
||||
notice := entity.SysNotice{NoticeType: noticeType, Title: title, DeptIds: ids}
|
||||
list, total := p.NoticeApp.FindListPage(pageNum, pageSize, notice)
|
||||
|
||||
@@ -58,6 +59,7 @@ func (p *NoticeApi) GetNoticeList(rc *ctx.ReqCtx) {
|
||||
func (p *NoticeApi) InsertNotice(rc *ctx.ReqCtx) {
|
||||
var notice entity.SysNotice
|
||||
ginx.BindJsonAndValid(rc.GinCtx, ¬ice)
|
||||
notice.UserName = rc.LoginAccount.UserName
|
||||
p.NoticeApp.Insert(notice)
|
||||
}
|
||||
|
||||
|
||||
@@ -439,7 +439,7 @@ func Build(menus []entity.SysMenu) []vo.RouterVo {
|
||||
IsHide: equals("1", ms.IsHide),
|
||||
IsKeepAlive: equals("0", ms.IsKeepAlive),
|
||||
IsAffix: equals("0", ms.IsAffix),
|
||||
IsFrame: equals("0", ms.IsFrame),
|
||||
IsIframe: equals("0", ms.IsIframe),
|
||||
Auth: auth,
|
||||
Icon: ms.Icon,
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ type MetaVo struct {
|
||||
IsHide bool `json:"isHide"`
|
||||
IsKeepAlive bool `json:"isKeepAlive"`
|
||||
IsAffix bool `json:"isAffix"`
|
||||
IsFrame bool `json:"isFrame"`
|
||||
IsIframe bool `json:"isIframe"`
|
||||
Auth []string `json:"auth"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user