mirror of
https://shylinux.com/x/operation
synced 2025-04-25 01:08:04 +08:00
add some
This commit is contained in:
parent
b194c8c3e1
commit
4c7f12443d
@ -5,7 +5,6 @@ import (
|
||||
"shylinux.com/x/icebergs/base/aaa"
|
||||
"shylinux.com/x/icebergs/base/ctx"
|
||||
"shylinux.com/x/icebergs/base/mdb"
|
||||
"shylinux.com/x/icebergs/base/web"
|
||||
kit "shylinux.com/x/toolkits"
|
||||
|
||||
"shylinux.com/x/mysql-story/src/db/mysql"
|
||||
@ -58,7 +57,7 @@ func (s dashboard) scan(m *ice.Message, dashboard_uid string, cb func(*ice.Messa
|
||||
switch DashboardType(kit.Int(msg.Append(model.TYPE))) {
|
||||
case DashboardPlace:
|
||||
m.Table(func(value ice.Maps) {
|
||||
msg := m.Cmd(value[web.SPACE], value[ctx.INDEX], mdb.SELECT, kit.Simple(kit.UnMarshal(value[model.QUERY])), kit.Dict(
|
||||
msg := s.AutoCmd(m, value[ctx.INDEX], mdb.SELECT, kit.Simple(kit.UnMarshal(value[model.QUERY])), kit.Dict(
|
||||
mdb.SELECT, kit.Select("count(*)", value[mdb.FIELD]), ice.MSG_USERROLE, aaa.TECH,
|
||||
))
|
||||
cb(msg, value)
|
||||
|
@ -15,10 +15,10 @@ type Portal struct {
|
||||
|
||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||
defer s.DashboardCreate(m, "")()
|
||||
s.DashboardInsert(m, "1", "需求总量", "个", issue{}, "")
|
||||
s.DashboardInsert(m, "2", "需求待办", "个", issue{}, "", "story_uid = ? AND status != ? AND status != ?", m.Option(model.STORY_UID), IssueRejected, IssueFinish)
|
||||
s.DashboardInsert(m, "3", "任务总量", "个", task{}, "")
|
||||
s.DashboardInsert(m, "4", "任务待办", "个", task{}, "", "story_uid = ? AND status != ?", m.Option(model.STORY_UID), TaskFinish)
|
||||
s.DashboardInsert(m, 1, "需求总量", "个", issue{}, "")
|
||||
s.DashboardInsert(m, 2, "需求待办", "个", issue{}, "", "story_uid = ? AND status != ? AND status != ?", m.Option(model.STORY_UID), IssueRejected, IssueFinish)
|
||||
s.DashboardInsert(m, 3, "任务总量", "个", task{}, "")
|
||||
s.DashboardInsert(m, 4, "任务待办", "个", task{}, "", "story_uid = ? AND status != ?", m.Option(model.STORY_UID), TaskFinish)
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userStory{}, story{})}) }
|
||||
|
@ -14,8 +14,8 @@ type Portal struct {
|
||||
|
||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||
defer s.DashboardCreate(m, "")()
|
||||
s.DashboardInsert(m, "1", "文件数量", "个", file{}, "")
|
||||
s.DashboardInsert(m, "2", "文件大小", "size", file{}, "SUM(size)")
|
||||
s.DashboardInsert(m, 1, "文件数量", "个", file{}, "")
|
||||
s.DashboardInsert(m, 2, "文件大小", "size", file{}, "SUM(size)")
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userStorage{}, storage{})}) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user