mirror of
https://shylinux.com/x/enterprise
synced 2025-07-01 20:41:20 +08:00
add some
This commit is contained in:
parent
fdc905cd76
commit
f46765b3bc
@ -1,5 +1,7 @@
|
||||
Volcanos(chat.ONIMPORT, {
|
||||
_init: function(can, msg) {
|
||||
can.base.Time(null, "%Y-%D")
|
||||
return
|
||||
can.onimport.myView(can, msg, function(value) { return [
|
||||
{view: html.TITLE, list: [value.title, can.onimport.titleAction(can, value)]},
|
||||
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
||||
|
@ -35,7 +35,7 @@ func (s Done) List(m *ice.Message, arg ...string) {
|
||||
switch DoneStatus(kit.Int(value[model.DONE_STATUS])) {
|
||||
case DoneCreate:
|
||||
if value[model.USER_UID] == user_uid {
|
||||
button = append(button, s.Process)
|
||||
button = append(button, s.Process, s.Modify, s.Remove)
|
||||
}
|
||||
case DoneProcess:
|
||||
if value[model.USER_UID] == user_uid {
|
||||
|
@ -1,7 +1,7 @@
|
||||
Volcanos(chat.ONIMPORT, {
|
||||
_init: function(can, msg) {
|
||||
can.onimport.myView(can, msg, function(value) { return [
|
||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value)]},
|
||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "done_status")]},
|
||||
{view: html.STATUS, list: [can.onimport.beginTime(can, value), can.onimport.unitView(can, value, "plan_title")]},
|
||||
{view: html.OUTPUT, list: [value.content]}, can.onimport.titleAction(can, value),
|
||||
] })
|
||||
|
@ -27,6 +27,7 @@ func (s Plan) List(m *ice.Message, arg ...string) {
|
||||
s.Orders(m, model.STATUS, model.TASK_COUNT, s.Desc(model.CREATED_AT))
|
||||
s.ValueList(m, arg).Table(func(value ice.Maps) {
|
||||
button := []ice.Any{}
|
||||
defer func() { m.PushButton(button...) }()
|
||||
switch PlanStatus(kit.Int(value[model.PLAN_STATUS])) {
|
||||
case PlanCreate:
|
||||
if isLeader {
|
||||
@ -48,14 +49,15 @@ func (s Plan) List(m *ice.Message, arg ...string) {
|
||||
case PlanFinish:
|
||||
kit.If(m.FieldsIsDetail(), func() { s.DoneMessage(m) })
|
||||
}
|
||||
m.PushButton(button...)
|
||||
}).Display("")
|
||||
if !s.IsLeader(m) {
|
||||
if m.Action(); m.Length() == 0 {
|
||||
m.SetResult("请等待「管理员」创建项目计划")
|
||||
}
|
||||
}
|
||||
if s.IsWorker(m) {
|
||||
m.Option("otherList", "taskList,doneList")
|
||||
}
|
||||
}
|
||||
func (s Plan) Process(m *ice.Message, arg ...string) {
|
||||
s.changeStatus(m, PlanCreate, PlanProcess)
|
||||
|
@ -20,4 +20,5 @@ func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||
s.DashboardInsert(m, 3, "提报待办", "个", Done{}, "", "project_uid = ? AND status != ?", m.Option(model.PROJECT_UID), DoneFinish)
|
||||
s.DashboardInsert(m, 4, "提报总量", "个", Done{}, "")
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userProject{}, project{})}) }
|
||||
|
@ -1,7 +1,7 @@
|
||||
Volcanos(chat.ONIMPORT, {
|
||||
_init: function(can, msg) {
|
||||
can.onimport.myView(can, msg, function(value) { return [
|
||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value)]},
|
||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "task_status")]},
|
||||
{view: html.STATUS, list: [can.onimport.beginTime(can, value), can.onimport.unitView(can, value, "plan_title"), can.onimport.unitView(can, value, "done_count", "个")]},
|
||||
{view: html.OUTPUT, list: [value.content]}, can.onimport.titleAction(can, value),
|
||||
] })
|
||||
|
Loading…
x
Reference in New Issue
Block a user