mirror of
https://shylinux.com/x/operation
synced 2025-07-03 14:01:20 +08:00
25 lines
969 B
Go
25 lines
969 B
Go
package production
|
|
|
|
import (
|
|
"shylinux.com/x/ice"
|
|
|
|
"shylinux.com/x/community/src/gonganxitong"
|
|
"shylinux.com/x/enterprise/src/guanlixitong"
|
|
"shylinux.com/x/operation/src/production/model"
|
|
)
|
|
|
|
type Portal struct {
|
|
guanlixitong.Portal
|
|
placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type:select" role:"void"`
|
|
}
|
|
|
|
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{}, "", "story_uid = ? AND status != ?", m.Option(model.STORY_UID), IssueFinish)
|
|
s.DashboardInsert(m, 4, "任务总量", "个", Task{}, "")
|
|
}
|
|
|
|
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userStory{}, story{})}) }
|