mirror of
https://shylinux.com/x/operation
synced 2025-07-02 13:41:18 +08:00
add some
This commit is contained in:
parent
638ce1a4be
commit
588457d01e
@ -44,6 +44,7 @@ type Table struct {
|
|||||||
fileList string `name:"fileList" role:"worker"`
|
fileList string `name:"fileList" role:"worker"`
|
||||||
meetList string `name:"meetList" role:"worker"`
|
meetList string `name:"meetList" role:"worker"`
|
||||||
dealList string `name:"dealList" role:"worker"`
|
dealList string `name:"dealList" role:"worker"`
|
||||||
|
dateInsert string `name:"dateInsert" help:"约会" role:"leader"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Table) Inputs(m *ice.Message, arg ...string) {
|
func (s Table) Inputs(m *ice.Message, arg ...string) {
|
||||||
@ -125,6 +126,9 @@ func (s Table) RewriteAppend(m *ice.Message, arg ...string) *ice.Message {
|
|||||||
})
|
})
|
||||||
return s.Table.RewriteAppend(m)
|
return s.Table.RewriteAppend(m)
|
||||||
}
|
}
|
||||||
|
func (s Table) DateInsert(m *ice.Message, arg ...string) {
|
||||||
|
m.ProcessField(Date{}, []string{m.Option(model.STORY_UID)}, m.OptionSimple(model.ISSUE_UID)...)
|
||||||
|
}
|
||||||
func (s Table) PushIssueButton(m *ice.Message, value ice.Maps, arg ...ice.Any) {
|
func (s Table) PushIssueButton(m *ice.Message, value ice.Maps, arg ...ice.Any) {
|
||||||
user_uid := m.Option(ice.MSG_USERUID)
|
user_uid := m.Option(ice.MSG_USERUID)
|
||||||
button := []ice.Any{}
|
button := []ice.Any{}
|
||||||
@ -136,6 +140,9 @@ func (s Table) PushIssueButton(m *ice.Message, value ice.Maps, arg ...ice.Any) {
|
|||||||
kit.If(value[model.PLAN_TITLE] == "", func() { button = append(button, s.BindPlan) })
|
kit.If(value[model.PLAN_TITLE] == "", func() { button = append(button, s.BindPlan) })
|
||||||
switch IssueStatus(kit.Int(value[model.STATUS])) {
|
switch IssueStatus(kit.Int(value[model.STATUS])) {
|
||||||
case IssueCreate:
|
case IssueCreate:
|
||||||
|
if isLeader {
|
||||||
|
button = append(button, s.DateInsert)
|
||||||
|
}
|
||||||
if isLeaderApproved {
|
if isLeaderApproved {
|
||||||
button = append(button, s.Approve)
|
button = append(button, s.Approve)
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
type Date struct {
|
type Date struct {
|
||||||
Tables
|
Tables
|
||||||
order string `data:"9"`
|
order string `data:"9"`
|
||||||
discuss string `name:"discuss issue_uid*:select meet_type*:select meet_link* begin_time*" role:"leader"`
|
discuss string `name:"discuss issue_uid*:select meet_type*:select meet_link* begin_time*:select@date" role:"leader"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Date) Discuss(m *ice.Message, arg ...string) {
|
func (s Date) Discuss(m *ice.Message, arg ...string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user