From cbaff053ee7728d1f953f0501e7569546a741712 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 14 May 2024 15:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=8F=8A=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/users/index.go | 21 +++++++++++++-------- web/views/@default/users/index.html | 18 +++++++++++++++--- web/views/@default/users/index.js | 3 +++ 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/internal/web/actions/default/users/index.go b/internal/web/actions/default/users/index.go index 513a6998..134a7ea2 100644 --- a/internal/web/actions/default/users/index.go +++ b/internal/web/actions/default/users/index.go @@ -16,11 +16,13 @@ func (this *IndexAction) Init() { } func (this *IndexAction) RunGet(params struct { - Keyword string - Verifying bool + Keyword string + Verifying bool + MobileIsVerified int32 `default:"-1"` }) { this.Data["keyword"] = params.Keyword this.Data["isVerifying"] = params.Verifying + this.Data["mobileIsVerified"] = params.MobileIsVerified // 未审核的总数量 countVerifyingUsersResp, err := this.RPC().UserRPC().CountAllEnabledUsers(this.AdminContext(), &pb.CountAllEnabledUsersRequest{ @@ -34,8 +36,9 @@ func (this *IndexAction) RunGet(params struct { // 当前匹配的数量 countResp, err := this.RPC().UserRPC().CountAllEnabledUsers(this.AdminContext(), &pb.CountAllEnabledUsersRequest{ - Keyword: params.Keyword, - IsVerifying: params.Verifying, + Keyword: params.Keyword, + IsVerifying: params.Verifying, + MobileIsVerified: params.MobileIsVerified, }) if err != nil { this.ErrorPage(err) @@ -46,10 +49,11 @@ func (this *IndexAction) RunGet(params struct { this.Data["page"] = page.AsHTML() usersResp, err := this.RPC().UserRPC().ListEnabledUsers(this.AdminContext(), &pb.ListEnabledUsersRequest{ - Keyword: params.Keyword, - IsVerifying: params.Verifying, - Offset: page.Offset, - Size: page.Size, + Keyword: params.Keyword, + IsVerifying: params.Verifying, + MobileIsVerified: params.MobileIsVerified, + Offset: page.Offset, + Size: page.Size, }) if err != nil { this.ErrorPage(err) @@ -86,6 +90,7 @@ func (this *IndexAction) RunGet(params struct { "isVerified": user.IsVerified, "isRejected": user.IsRejected, "identityIsSubmitted": identityIsSubmitted, + "verifiedMobile": user.VerifiedMobile, }) } this.Data["users"] = userMaps diff --git a/web/views/@default/users/index.html b/web/views/@default/users/index.html index f48d8b84..321a9b93 100644 --- a/web/views/@default/users/index.html +++ b/web/views/@default/users/index.html @@ -16,10 +16,17 @@
+
+ +
  - [清除条件] + [清除条件]
@@ -31,9 +38,10 @@ 用户名 全名 关联集群 - 手机号 + 绑定手机号 + 联系手机号 注册时间 - 状态 + 状态 操作 @@ -60,6 +68,10 @@ - + {{user.verifiedMobile}} + - + + {{user.mobile}} - diff --git a/web/views/@default/users/index.js b/web/views/@default/users/index.js index 0941fbe1..d580ea2c 100644 --- a/web/views/@default/users/index.js +++ b/web/views/@default/users/index.js @@ -1,4 +1,7 @@ Tea.context(function () { + this.windowWidth = window.innerWidth + this.columnWidth1 = 1000 + this.createUser = function () { teaweb.popup(Tea.url(".createPopup"), { height: "30em",