From fd16a61c872b4124a327f34815cec5b90b8f1fa0 Mon Sep 17 00:00:00 2001 From: Odboy Date: Thu, 28 May 2026 21:09:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E6=94=B9=E4=B8=BA=E7=8B=AC=E7=AB=8B=E5=8D=A1=E7=89=87?= =?UTF-8?q?+=E6=8C=89=E9=92=AE=E8=A7=A6=E5=8F=91=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 业务组管理、用户管理、配置管理、应用管理页面的查询条件拆分为独立卡片, 新增查询/重置按钮,移除下拉选中即时触发查询的交互; 应用管理新增应用名称、应用编码模糊查询和业务组精确查询条件。 --- server/internal/handler/app.go | 12 ++++++ web/src/views/app/AppList.vue | 41 ++++++++++++++---- web/src/views/config/AllConfigList.vue | 44 ++++++++++++++------ web/src/views/group/GroupList.vue | 40 +++++++++++++----- web/src/views/profile/ProfileList.vue | 2 +- web/src/views/user/UserList.vue | 57 +++++++++++++++++--------- 6 files changed, 146 insertions(+), 50 deletions(-) diff --git a/server/internal/handler/app.go b/server/internal/handler/app.go index 76488c6..e7c08e4 100644 --- a/server/internal/handler/app.go +++ b/server/internal/handler/app.go @@ -24,6 +24,9 @@ type AppListRequest struct { PageNo int `form:"pageNo" binding:"required"` PageSize int `form:"pageSize" binding:"required"` AppType string `form:"appType"` + Name string `form:"name"` + Code string `form:"code"` + GroupId string `form:"groupId"` } func (h *AppHandler) List(c *gin.Context) { @@ -66,6 +69,15 @@ func (h *AppHandler) List(c *gin.Context) { if req.AppType != "" { whereClause += " AND service_id = '" + req.AppType + "'" } + if req.Name != "" { + whereClause += " AND name LIKE '%" + req.Name + "%'" + } + if req.Code != "" { + whereClause += " AND code LIKE '%" + req.Code + "%'" + } + if req.GroupId != "" { + whereClause += " AND group_id = " + req.GroupId + } total, _ := dao.Engine.Where(whereClause).Count(&model.Application{}) dao.Engine.Where(whereClause).Limit(req.PageSize, (req.PageNo-1)*req.PageSize).Find(&apps) diff --git a/web/src/views/app/AppList.vue b/web/src/views/app/AppList.vue index 6428240..45ec049 100644 --- a/web/src/views/app/AppList.vue +++ b/web/src/views/app/AppList.vue @@ -1,13 +1,31 @@