mirror of
https://shylinux.com/x/operation
synced 2025-07-01 21:21:19 +08:00
add some
This commit is contained in:
parent
391d69579b
commit
b1c7d0a18a
@ -67,12 +67,12 @@ func (s care) List(m *ice.Message, arg ...string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (s care) IssueList(m *ice.Message, arg ...string) {
|
func (s care) IssueList(m *ice.Message, arg ...string) {
|
||||||
s.Orders(m, model.STATUS, model.DESIGN_COUNT, model.TASK_COUNT, s.Desc(model.CREATED_AT)).Limit(m, 300)
|
s.Orders(m, model.STATUS, s.Desc(model.UPDATED_AT)).Limit(m, 300)
|
||||||
s.OtherList(m, Issue{}, model.USER_UID, m.Option(model.UID))
|
s.OtherList(m, Issue{}, model.USER_UID, m.Option(model.UID))
|
||||||
m.RenameAppend(model.STORY_UID, model.PLACE_UID)
|
m.RenameAppend(model.STORY_UID, model.PLACE_UID)
|
||||||
}
|
}
|
||||||
func (s care) DesignList(m *ice.Message, arg ...string) {
|
func (s care) DesignList(m *ice.Message, arg ...string) {
|
||||||
s.Orders(m, model.STATUS, s.Desc(model.CREATED_AT)).Limit(m, 300)
|
s.Orders(m, model.STATUS, s.Desc(model.UPDATED_AT)).Limit(m, 300)
|
||||||
s.OtherList(m, Design{}, model.USER_UID, m.Option(model.UID))
|
s.OtherList(m, Design{}, model.USER_UID, m.Option(model.UID))
|
||||||
m.RenameAppend(model.STORY_UID, model.PLACE_UID)
|
m.RenameAppend(model.STORY_UID, model.PLACE_UID)
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Volcanos(chat.ONIMPORT, {
|
Volcanos(chat.ONIMPORT, {
|
||||||
_init: function(can, msg) {
|
_init: function(can, msg) {
|
||||||
can.onimport.myView(can, msg, function(value) { return [
|
can.onimport.myViewTabs(can, "case_status", msg, function(value) { return [
|
||||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "case_status")]},
|
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "case_status")]},
|
||||||
{view: html.STATUS, list: [
|
{view: html.STATUS, list: [
|
||||||
(value.process_time||value.begin_time).split(" ")[0],
|
(value.process_time||value.begin_time).split(" ")[0],
|
||||||
|
@ -89,6 +89,14 @@ func (s Table) Inputs(m *ice.Message, arg ...string) {
|
|||||||
})
|
})
|
||||||
default:
|
default:
|
||||||
switch m.Option(ctx.ACTION) {
|
switch m.Option(ctx.ACTION) {
|
||||||
|
case "addNote":
|
||||||
|
switch arg[0] {
|
||||||
|
case model.CONTENT:
|
||||||
|
m.Push(arg[0], "业务负责人已验收,请产研负责人验收~")
|
||||||
|
m.Push(arg[0], "产研负责人已验收,请研发负责人验收~")
|
||||||
|
default:
|
||||||
|
s.Table.Inputs(m, arg...)
|
||||||
|
}
|
||||||
case "discuss":
|
case "discuss":
|
||||||
switch arg[0] {
|
switch arg[0] {
|
||||||
case "date":
|
case "date":
|
||||||
@ -272,7 +280,7 @@ func (s Table) StatusPrice(m *ice.Message, arg ...string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (s Table) UserInfo(m *ice.Message, arg ...string) {
|
func (s Table) UserInfo(m *ice.Message, arg ...string) {
|
||||||
m.ProcessField(care{}, []string{m.Option(model.STORY_UID), m.Option(model.UID)}, arg...)
|
m.ProcessField(care{}, []string{m.Option(model.STORY_UID), m.Option(model.TO_USER_UID)}, arg...)
|
||||||
}
|
}
|
||||||
func (s care) UserInfo(m *ice.Message, arg ...string) {
|
func (s care) UserInfo(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(s.PrefixPortal(m), s.UserInfo, arg)
|
m.Cmdy(s.PrefixPortal(m), s.UserInfo, arg)
|
||||||
|
@ -56,7 +56,8 @@ func (s Issue) List(m *ice.Message, arg ...string) {
|
|||||||
}
|
}
|
||||||
isCreator, isWorker := s.IsCreator(m), s.IsWorker(m)
|
isCreator, isWorker := s.IsCreator(m), s.IsWorker(m)
|
||||||
msg := m.Cmd(Design{}, s.Select, model.STORY_UID, arg[0], m.OptionSimple(model.USER_UID), model.STATUS, IssueCreate)
|
msg := m.Cmd(Design{}, s.Select, model.STORY_UID, arg[0], m.OptionSimple(model.USER_UID), model.STATUS, IssueCreate)
|
||||||
s.Orders(m, model.STATUS, model.DESIGN_COUNT, model.TASK_COUNT, s.Desc(model.UPDATED_AT)).Limit(m, 300)
|
// s.Orders(m, model.STATUS, model.DESIGN_COUNT, model.TASK_COUNT, s.Desc(model.UPDATED_AT)).Limit(m, 300)
|
||||||
|
s.Orders(m, model.STATUS, model.DESIGN_COUNT, s.Desc(model.UPDATED_AT)).Limit(m, 300)
|
||||||
s.ValueList(m, arg)
|
s.ValueList(m, arg)
|
||||||
s.SelectJoinPlan(m)
|
s.SelectJoinPlan(m)
|
||||||
s.SettingSelect(m)
|
s.SettingSelect(m)
|
||||||
@ -73,7 +74,8 @@ func (s Issue) List(m *ice.Message, arg ...string) {
|
|||||||
s.PushIssueButton(m, value, button...)
|
s.PushIssueButton(m, value, button...)
|
||||||
}).Display("")
|
}).Display("")
|
||||||
kit.If(len(arg) == 1, func() {
|
kit.If(len(arg) == 1, func() {
|
||||||
m.Sort("plan_status,status,design_count,task_count,updated_at", ice.STR, ice.STR, ice.STR, ice.STR, ice.STR_R)
|
// m.Sort("plan_status,status,design_count,task_count,updated_at", ice.STR, ice.STR, ice.STR, ice.STR, ice.STR_R)
|
||||||
|
m.Sort("plan_status,status,design_count,updated_at", ice.STR, ice.STR, ice.STR, ice.STR_R)
|
||||||
})
|
})
|
||||||
s.OtherListCmd(m, s.PlanList, s.DesignList, s.TaskList, s.CaseList, s.NoteList, s.FileList, s.MeetList, s.DealList)
|
s.OtherListCmd(m, s.PlanList, s.DesignList, s.TaskList, s.CaseList, s.NoteList, s.FileList, s.MeetList, s.DealList)
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
"issueCreate": "原型设计", "designCreate": "界面设计", "taskCreate": "开发任务", "caseCreate": "测试用例",
|
"issueCreate": "原型设计", "designCreate": "界面设计", "taskCreate": "开发任务", "caseCreate": "测试用例",
|
||||||
"issueList": "原型设计", "designList": "界面设计", "taskList": "开发任务", "caseList": "测试用例",
|
"issueList": "原型设计", "designList": "界面设计", "taskList": "开发任务", "caseList": "测试用例",
|
||||||
"program": "编程", "discuss": "约会", "payfor": "支付", "setType": "设置类型", "bindPlan": "绑定计划",
|
"program": "编程", "discuss": "约会", "payfor": "支付", "setType": "设置类型", "bindPlan": "绑定计划",
|
||||||
"note": "备注",
|
"note": "验收备注",
|
||||||
"addNote": "备注",
|
"addNote": "备注",
|
||||||
"noteList": "备注列表", "fileList": "附件列表", "meetList": "会议安排", "dealList": "支付记录",
|
"noteList": "验收备注", "fileList": "附件列表", "meetList": "会议安排", "dealList": "支付记录",
|
||||||
"planList": "迭代计划",
|
"planList": "迭代计划",
|
||||||
"style": {
|
"style": {
|
||||||
"preview": "notice",
|
"preview": "notice",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Volcanos(chat.ONIMPORT, {
|
Volcanos(chat.ONIMPORT, {
|
||||||
_init: function(can, msg) {
|
_init: function(can, msg) {
|
||||||
can.onimport.myView(can, msg, function(value) { return [
|
can.onimport.myViewTabs(can, "task_status", msg, function(value) { return [
|
||||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "task_status")]},
|
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "task_status")]},
|
||||||
{view: html.STATUS, list: [
|
{view: html.STATUS, list: [
|
||||||
(value.process_time||value.begin_time).split(" ")[0],
|
(value.process_time||value.begin_time).split(" ")[0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user