优化缓存条件设置,支持不缓存条件设置,支持条件排序等

This commit is contained in:
刘祥超
2021-06-08 22:46:08 +08:00
parent 9de66f080d
commit a8030fa045
17 changed files with 319 additions and 115 deletions

View File

@@ -15,7 +15,11 @@ func (this *CreatePopupAction) Init() {
this.Nav("", "", "")
}
func (this *CreatePopupAction) RunGet(params struct{}) {
func (this *CreatePopupAction) RunGet(params struct {
IsReverse bool
}) {
this.Data["isReverse"] = params.IsReverse
this.Show()
}

View File

@@ -32,6 +32,10 @@ func (this *AddCondPopupAction) RunPost(params struct {
if err != nil {
this.Fail("解析条件设置时发生了错误:" + err.Error())
}
err = condConfig.Init()
if err != nil {
this.Fail("校验条件设置时失败:" + err.Error())
}
condConfig.Type = params.CondType
this.Data["cond"] = condConfig

View File

@@ -32,6 +32,11 @@ func (this *AddGroupPopupAction) RunPost(params struct {
this.Fail("解析条件时发生错误:" + err.Error())
}
err = groupConfig.Init()
if err != nil {
this.Fail("校验条件设置时失败:" + err.Error())
}
this.Data["group"] = groupConfig
this.Success()
}

View File

@@ -14,6 +14,7 @@ type CondJSComponent struct {
Name string `json:"name"`
Description string `json:"description"`
Component string `json:"component"`
ParamsTitle string `json:"paramsTitle"`
IsRequest bool `json:"isRequest"`
}