From a38d9ad0e73ff7029f928d03dfd008a12c12acb5 Mon Sep 17 00:00:00 2001 From: cg33 Date: Sun, 15 Mar 2020 22:43:27 +0800 Subject: [PATCH] feat(new version): ready for v1.2.6 --- Makefile | 4 ++-- examples/gin/main.go | 9 ++++++--- modules/system/version.go | 2 +- plugins/admin/controller/show.go | 2 +- plugins/admin/modules/parameter/parameter.go | 5 +++++ 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index d01877a57..008aad6c1 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ GOCMD = go GOBUILD = $(GOCMD) build BINARY_NAME = adm -LAST_VERSION = v1.2.4 -VERSION = v1.2.5 +LAST_VERSION = v1.2.5 +VERSION = v1.2.6 CLI = adm TEST_CONFIG_PATH=./../../common/config.json diff --git a/examples/gin/main.go b/examples/gin/main.go index 8b518c035..e93f8c411 100644 --- a/examples/gin/main.go +++ b/examples/gin/main.go @@ -49,9 +49,12 @@ func main() { Path: "./uploads", Prefix: "uploads", }, - Language: language.CN, - IndexUrl: "/", - Debug: true, + Language: language.CN, + IndexUrl: "/", + Debug: true, + Animation: config.PageAnimation{ + Type: "fadeInUp", + }, ColorScheme: adminlte.ColorschemeSkinBlack, } diff --git a/modules/system/version.go b/modules/system/version.go index 55e671c54..549615bb2 100644 --- a/modules/system/version.go +++ b/modules/system/version.go @@ -1,6 +1,6 @@ package system -const version = "v1.2.5" +const version = "v1.2.6" // Version return the version of framework. func Version() string { diff --git a/plugins/admin/controller/show.go b/plugins/admin/controller/show.go index cf33d51c9..0d1307416 100644 --- a/plugins/admin/controller/show.go +++ b/plugins/admin/controller/show.go @@ -63,7 +63,7 @@ func (h *Handler) showTable(ctx *context.Context, prefix string, params paramete }, h.config, menu.GetGlobalMenu(user, h.conn).SetActiveClass(h.config.URLRemovePrefix(ctx.Path()))) } - paramStr := params.GetRouteParamStr() + paramStr := params.DeleteIsAll().GetRouteParamStr() editUrl := modules.AorEmpty(panel.GetEditable(), h.routePathWithPrefix("show_edit", prefix)+paramStr) newUrl := modules.AorEmpty(panel.GetCanAdd(), h.routePathWithPrefix("show_new", prefix)+paramStr) diff --git a/plugins/admin/modules/parameter/parameter.go b/plugins/admin/modules/parameter/parameter.go index 8cf0bd006..2d707526a 100644 --- a/plugins/admin/modules/parameter/parameter.go +++ b/plugins/admin/modules/parameter/parameter.go @@ -179,6 +179,11 @@ func (param Parameters) WithIsAll(isAll bool) Parameters { return param } +func (param Parameters) DeleteIsAll() Parameters { + delete(param.Fields, IsAll) + return param +} + func (param Parameters) GetFilterFieldValueStart(field string) string { return param.GetFieldValue(field + FilterRangeParamStartSuffix) }