From a7fe25c67d0aa298a161b06b4d0d1811c0814930 Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Wed, 5 Jan 2022 04:10:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=8F=9C=E5=8D=95=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E6=8E=92=E5=BA=8F=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor | 4 +++- .../admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor.cs | 3 +++ src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor | 2 +- .../admin/BootstrapAdmin.Web/Pages/Admin/Users.razor.cs | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor index 115d3ba8..0912dc7c 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor @@ -1,6 +1,8 @@ @page "/Admin/Menus" - + diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor.cs index 2b0dff5b..124ae830 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Menus.razor.cs @@ -72,6 +72,9 @@ public partial class Menus return Task.FromResult(new QueryData() { + IsFiltered = true, + IsSearch = true, + IsSorted = true, Items = menus }); } diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor index 04fa9942..e6bf289c 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor @@ -1,6 +1,6 @@ @page "/Admin/Users" - + diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor.cs index a55923aa..0fc21872 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Users.razor.cs @@ -25,6 +25,8 @@ public partial class Users [NotNull] private IRole? RoleService { get; set; } + private List SortList { get; } = new List { "UserName" }; + private async Task OnAssignmentGroups(User user) { var groups = GroupService.GetAll().ToSelectedItemList();