This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-05-08 11:58:50 +08:00
parent d9f550d4b6
commit fdc905cd76
4 changed files with 44 additions and 0 deletions

17
src/xiangmuguanli/date.go Normal file
View 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{}) }

View 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]},
] })
},
})

View 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),
] })
},
})

View 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),
] })
},
})