From 7a4892d8687d650137213c6506634315c1055843 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 2 Nov 2019 12:09:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E8=A1=A8=E6=8E=92=E5=BA=8F=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Query/QueryDictOption.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Query/QueryDictOption.cs b/src/admin/Bootstrap.Admin/Query/QueryDictOption.cs index 6f05b813..e9977655 100644 --- a/src/admin/Bootstrap.Admin/Query/QueryDictOption.cs +++ b/src/admin/Bootstrap.Admin/Query/QueryDictOption.cs @@ -6,7 +6,7 @@ using System.Linq; namespace Bootstrap.Admin.Query { /// - /// + /// 字典表查询类 /// public class QueryDictOption : PaginationOption { @@ -28,6 +28,9 @@ namespace Bootstrap.Admin.Query /// public QueryData RetrieveData() { + if (string.IsNullOrEmpty(Order)) Order = "asc"; + if (string.IsNullOrEmpty(Sort)) Sort = "Category"; + var data = DictHelper.RetrieveDicts(); if (!string.IsNullOrEmpty(Category)) { @@ -63,4 +66,4 @@ namespace Bootstrap.Admin.Query return ret; } } -} \ No newline at end of file +}