This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-05-22 17:35:55 +08:00
parent 638ce1a4be
commit 588457d01e
2 changed files with 8 additions and 1 deletions

View File

@ -44,6 +44,7 @@ type Table struct {
fileList string `name:"fileList" role:"worker"`
meetList string `name:"meetList" role:"worker"`
dealList string `name:"dealList" role:"worker"`
dateInsert string `name:"dateInsert" help:"约会" role:"leader"`
}
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)
}
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) {
user_uid := m.Option(ice.MSG_USERUID)
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) })
switch IssueStatus(kit.Int(value[model.STATUS])) {
case IssueCreate:
if isLeader {
button = append(button, s.DateInsert)
}
if isLeaderApproved {
button = append(button, s.Approve)
}

View File

@ -10,7 +10,7 @@ import (
type Date struct {
Tables
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) {