mirror of
https://shylinux.com/x/operation
synced 2025-07-01 21:21:19 +08:00
add some
This commit is contained in:
parent
6bd50be073
commit
42e9132b22
@ -11,7 +11,7 @@ type Case struct {
|
|||||||
Table
|
Table
|
||||||
order string `data:"5"`
|
order string `data:"5"`
|
||||||
role string `data:"leader,worker"`
|
role string `data:"leader,worker"`
|
||||||
fields string `data:"title,content,status,space,index,begin_time,end_time,process_time,finish_time,task_uid,issue_uid,plan_uid,story_uid,user_uid"`
|
fields string `data:"title,content,status,score,space,index,begin_time,end_time,process_time,finish_time,task_uid,issue_uid,plan_uid,story_uid,user_uid"`
|
||||||
create string `name:"create task_uid*:select title* content* space:select index:select begin_time:select@date end_time:select@date" role:"worker"`
|
create string `name:"create task_uid*:select title* content* space:select index:select begin_time:select@date end_time:select@date" role:"worker"`
|
||||||
modify string `name:"modify title* content* space:select index:select" role:"worker"`
|
modify string `name:"modify title* content* space:select index:select" role:"worker"`
|
||||||
finish string `name:"finish" role:"worker"`
|
finish string `name:"finish" role:"worker"`
|
||||||
@ -36,11 +36,14 @@ func (s Case) List(m *ice.Message, arg ...string) {
|
|||||||
s.ValueList(m, arg)
|
s.ValueList(m, arg)
|
||||||
s.SelectJoinPlan(m)
|
s.SelectJoinPlan(m)
|
||||||
m.Table(func(value ice.Maps) {
|
m.Table(func(value ice.Maps) {
|
||||||
if value[model.SPACE] == "" {
|
button := []ice.Any{}
|
||||||
s.PushTaskButton(m, value)
|
if value[model.SPACE] != "" {
|
||||||
} else {
|
button = append(button, s.Preview)
|
||||||
s.PushTaskButton(m, value, s.Preview)
|
|
||||||
}
|
}
|
||||||
|
if s.IsLeader(m) {
|
||||||
|
button = append(button, s.SetScore)
|
||||||
|
}
|
||||||
|
s.PushTaskButton(m, value, button...)
|
||||||
}).RenameAppend(model.STATUS, model.CASE_STATUS).Display("")
|
}).RenameAppend(model.STATUS, model.CASE_STATUS).Display("")
|
||||||
s.OtherListCmd(m, s.TaskList)
|
s.OtherListCmd(m, s.TaskList)
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ type Task struct {
|
|||||||
Table
|
Table
|
||||||
order string `data:"4"`
|
order string `data:"4"`
|
||||||
role string `data:"leader,worker"`
|
role string `data:"leader,worker"`
|
||||||
fields string `data:"title,content,status,space,path,case_count AS case_count,begin_time,end_time,process_time,finish_time,issue_uid,plan_uid,story_uid,user_uid"`
|
fields string `data:"title,content,status,score,space,path,case_count AS case_count,begin_time,end_time,process_time,finish_time,issue_uid,plan_uid,story_uid,user_uid"`
|
||||||
create string `name:"create issue_uid*:select title* content* space:select path:select begin_time:select@date end_time:select@date" role:"worker"`
|
create string `name:"create issue_uid*:select title* content* space:select path:select begin_time:select@date end_time:select@date" role:"worker"`
|
||||||
modify string `name:"modify title* content* space:select path:select begin_time*:select@date end_time*:select@date" role:"worker"`
|
modify string `name:"modify title* content* space:select path:select begin_time*:select@date end_time*:select@date" role:"worker"`
|
||||||
finish string `name:"finish" role:"worker"`
|
finish string `name:"finish" role:"worker"`
|
||||||
@ -40,6 +40,9 @@ func (s Task) List(m *ice.Message, arg ...string) {
|
|||||||
if IssueStatus(kit.Int(value[model.STATUS])) != IssueFinish {
|
if IssueStatus(kit.Int(value[model.STATUS])) != IssueFinish {
|
||||||
button = append(button, s.CaseCreate)
|
button = append(button, s.CaseCreate)
|
||||||
}
|
}
|
||||||
|
if s.IsLeader(m) {
|
||||||
|
button = append(button, s.SetScore)
|
||||||
|
}
|
||||||
s.PushTaskButton(m, value, button...)
|
s.PushTaskButton(m, value, button...)
|
||||||
}).RenameAppend(model.STATUS, model.TASK_STATUS).Display("")
|
}).RenameAppend(model.STATUS, model.TASK_STATUS).Display("")
|
||||||
s.OtherListCmd(m, s.IssueList, s.DesignList, s.CaseList)
|
s.OtherListCmd(m, s.IssueList, s.DesignList, s.CaseList)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user