This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-05 21:23:55 +08:00
parent 2de61939b4
commit 95bcab02db
2 changed files with 6 additions and 2 deletions

View File

@ -93,9 +93,9 @@ Volcanos(chat.ONIMPORT, {
})), can.page.Append(can, target, [{view: html.ACTION, _init: function(target) { can.onappend._action(can, msg.Option(ice.MSG_ACTION), target) }}]) })), can.page.Append(can, target, [{view: html.ACTION, _init: function(target) { can.onappend._action(can, msg.Option(ice.MSG_ACTION), target) }}])
return place_uid||"" return place_uid||""
}, },
myCount: function(can, msg, target) { myCount: function(can, msg, target) { var dashboard_uid = msg.Option("dashboard_uid")
can.page.Append(can, target, [{view: html.TITLE, list: [{text: can.user.trans(can, "My Count", "我的数据")}]}]) can.page.Append(can, target, [{view: html.TITLE, list: [{text: can.user.trans(can, "My Count", "我的数据")}]}])
can.onappend.plugin(can._root.Action, {space: "20240903-operation", index: "web.team.dashboard.summary", args: ["e61693838bfe34ab15485b0bc2355d19"]}, function() {}, target) can.onappend.plugin(can._root.Action, {width: can.ConfWidth()-40, space: "20240903-operation", index: "web.team.dashboard.summary", args: [dashboard_uid||"e61693838bfe34ab15485b0bc2355d19"]}, function() {}, target)
}, },
myInit: function(can, msg, value, target) { if (!msg) { return } can.onmotion.hidden(can, target) myInit: function(can, msg, value, target) { if (!msg) { return } can.onmotion.hidden(can, target)
return return

View File

@ -6,11 +6,15 @@ type {{.Option "table"}} struct {
Table Table
fields string `data:"title,content"` fields string `data:"title,content"`
create string `name:"create title* content*" role:"leader"` create string `name:"create title* content*" role:"leader"`
remove string `name:"remove" role:"leader"`
} }
func (s {{.Option "table"}}) Create(m *ice.Message, arg ...string) { func (s {{.Option "table"}}) Create(m *ice.Message, arg ...string) {
s.Table.ValueCreate(m, arg...) s.Table.ValueCreate(m, arg...)
} }
func (s {{.Option "table"}}) Remove(m *ice.Message, arg ...string) {
s.Table.ValueRemove(m, arg...)
}
func (s {{.Option "table"}}) List(m *ice.Message, arg ...string) { func (s {{.Option "table"}}) List(m *ice.Message, arg ...string) {
s.Table.ValueList(m, arg).Display("") s.Table.ValueList(m, arg).Display("")
} }