This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-05 20:02:51 +08:00
parent 44cb911e41
commit 9b2f67b842
3 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,12 @@ type client struct {
func (s client) List(m *ice.Message, arg ...string) {
if len(arg) == 1 {
s.Fields(m, model.HOST, model.PORT, model.USERNAME, model.DATABASE)
s.SelectDetail(m, model.UID, arg[0]).PushAction(s.Config).Action(s.Config)
s.SelectDetail(m, model.UID, arg[0])
if m.Append(model.USERNAME) == "" {
m.EchoInfoButton("", s.Config)
} else {
m.PushAction(s.Config).Action(s.Config)
}
}
}
func (s client) Config(m *ice.Message, arg ...string) {

View File

@ -25,10 +25,6 @@ func (s Table) Inputs(m *ice.Message, arg ...string) {
s.Hash.Inputs(m, arg...)
case ctx.INDEX:
s.Hash.Inputs(m, arg...)
case model.TABLES:
s.Hash.Inputs(m, ctx.INDEX)
case model.FIELDS:
m.Push(arg[0], "count(*)")
default:
s.Table.Inputs(m, arg...)
}

View File

@ -53,6 +53,9 @@ func (s summary) Scan(m *ice.Message, arg ...string) {
func (s summary) List(m *ice.Message, arg ...string) *ice.Message {
s.Orders(m, model.SCORE, s.Desc(model.CREATED_AT))
s.Select(m, model.CLIENT_UID, arg[0]).Action(s.Create, s.Scan).PushAction(s.Modify, s.Remove).Display("").DisplayCSS("")
if m.Length() == 0 {
m.EchoInfoButton("")
}
return m
}