diff --git a/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml b/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml index 3138e32d..79aaaff4 100644 --- a/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml +++ b/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml @@ -1,6 +1,6 @@ @using Infrastructure.Application.Entites.Settings @using System.Security.Claims -@model PagedList +@model PagedList @{ HtmlTitle = "配置"; var start = 0; diff --git a/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml b/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml index b53f4caf..e7c90321 100644 --- a/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml +++ b/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml @@ -5,6 +5,11 @@
@foreach (var prop in ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForEdit).Where(o => o.PropertyName != "Capacity" && o.PropertyName != "Count")) { + if (prop.PropertyName == "Query" || prop.PropertyName == "Schema" || prop.PropertyName == "ViewData") + { + continue; + } +
@prop.PropertyName
if (prop.HideSurroundingHtml) { @Html.Hidden(prop.PropertyName)