From e9b2fd383622853117d8238a02dcebb18ba1a677 Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 26 May 2025 18:41:54 +0800 Subject: [PATCH] add some --- src/main.go | 4 +++- src/template/web.code.autogen/demo.go | 3 +-- src/template/web.code.go/demo.go | 9 +++++---- src/template/web.code.js/demo.js | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main.go b/src/main.go index 8f3ee17..dc5bda8 100644 --- a/src/main.go +++ b/src/main.go @@ -9,6 +9,8 @@ import ( _ "shylinux.com/x/enterprise/src/zijinlian" _ "shylinux.com/x/enterprise/src/xiangmuguanli" + + _ "shylinux.com/x/enterprise/src/peixunguanli" ) func main() { print(ice.Run()) } @@ -16,4 +18,4 @@ func main() { print(ice.Run()) } func init() { ice.Info.CodeMain = "src/guanlixitong/portal.go" ice.Info.NodeMain = "web.team.guanlixitong.portal" -} +} \ No newline at end of file diff --git a/src/template/web.code.autogen/demo.go b/src/template/web.code.autogen/demo.go index 3a51d5b..8822bdf 100644 --- a/src/template/web.code.autogen/demo.go +++ b/src/template/web.code.autogen/demo.go @@ -4,12 +4,11 @@ import "shylinux.com/x/ice" type {{.Option "name"}} struct { Table - order string `data:"1"` fields string `data:"title,content,user_uid"` create string `name:"create title* content*" role:"leader"` remove string `name:"remove" role:"leader"` } -func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { s.ValueList(m, arg) } +func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") } func init() { ice.TeamCtxCmd({{.Option "name"}}{}) } \ No newline at end of file diff --git a/src/template/web.code.go/demo.go b/src/template/web.code.go/demo.go index 3a51d5b..5790d0a 100644 --- a/src/template/web.code.go/demo.go +++ b/src/template/web.code.go/demo.go @@ -3,13 +3,14 @@ package {{.Option "zone"}} import "shylinux.com/x/ice" type {{.Option "name"}} struct { - Table - order string `data:"1"` - fields string `data:"title,content,user_uid"` + Tables + fields string `data:"title,content"` create string `name:"create title* content*" role:"leader"` remove string `name:"remove" role:"leader"` } -func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { s.ValueList(m, arg) } +func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { + // s.ValueList(m, arg).Display("") +} func init() { ice.TeamCtxCmd({{.Option "name"}}{}) } \ No newline at end of file diff --git a/src/template/web.code.js/demo.js b/src/template/web.code.js/demo.js index 8424c14..308755b 100644 --- a/src/template/web.code.js/demo.js +++ b/src/template/web.code.js/demo.js @@ -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||value.name||value.user_name, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]}, + {view: html.TITLE, list: [value.title||value.name||value.user_name, 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||value.info]}, ] })