mirror of
https://shylinux.com/x/enterprise
synced 2025-05-09 23:18:09 +08:00
add some
This commit is contained in:
parent
d9f550d4b6
commit
fdc905cd76
17
src/xiangmuguanli/date.go
Normal file
17
src/xiangmuguanli/date.go
Normal file
@ -0,0 +1,17 @@
|
||||
package xiangmuguanli
|
||||
|
||||
import "shylinux.com/x/ice"
|
||||
|
||||
type date struct {
|
||||
Table
|
||||
order string `data:"6"`
|
||||
fields string `data:"title,content,link,begin_time,end_time,user_uid"`
|
||||
create string `name:"create title* content* link begin_time:select@date end_time:select@date" role:"worker"`
|
||||
remove string `name:"remove" role:"worker"`
|
||||
}
|
||||
|
||||
func (s date) List(m *ice.Message, arg ...string) {
|
||||
s.ValueList(m, arg).Display("")
|
||||
}
|
||||
|
||||
func init() { ice.TeamCtxCmd(date{}) }
|
9
src/xiangmuguanli/date.js
Normal file
9
src/xiangmuguanli/date.js
Normal file
@ -0,0 +1,9 @@
|
||||
Volcanos(chat.ONIMPORT, {
|
||||
_init: function(can, msg) {
|
||||
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]},
|
||||
{view: html.OUTPUT, list: [value.content]},
|
||||
] })
|
||||
},
|
||||
})
|
9
src/xiangmuguanli/done.js
Normal file
9
src/xiangmuguanli/done.js
Normal file
@ -0,0 +1,9 @@
|
||||
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.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),
|
||||
] })
|
||||
},
|
||||
})
|
9
src/xiangmuguanli/task.js
Normal file
9
src/xiangmuguanli/task.js
Normal file
@ -0,0 +1,9 @@
|
||||
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.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