diff --git a/Bootstrap.Admin/Controllers/Api/SettingsController.cs b/Bootstrap.Admin/Controllers/Api/SettingsController.cs index 88338e39..98825f89 100644 --- a/Bootstrap.Admin/Controllers/Api/SettingsController.cs +++ b/Bootstrap.Admin/Controllers/Api/SettingsController.cs @@ -19,7 +19,7 @@ namespace Bootstrap.Admin.Controllers.Api /// /// [HttpPost] - [ButtonAuthorize(Url = "~/Admin/Settings", Auth = "saveTitle,saveFooter,saveTheme")] + [ButtonAuthorize(Url = "~/Admin/Settings", Auth = "saveTitle,saveFooter,saveTheme,saveUISettings")] public bool Post([FromBody]BootstrapDict value) => DictHelper.SaveSettings(value); /// diff --git a/Bootstrap.Admin/Models/ModelBase.cs b/Bootstrap.Admin/Models/ModelBase.cs index 92c88be4..cf3f08a7 100644 --- a/Bootstrap.Admin/Models/ModelBase.cs +++ b/Bootstrap.Admin/Models/ModelBase.cs @@ -3,12 +3,12 @@ namespace Bootstrap.Admin.Models { /// - /// + /// ModelBase 基础类 /// public class ModelBase { /// - /// + /// 默认构造函数 /// public ModelBase() { @@ -16,15 +16,16 @@ namespace Bootstrap.Admin.Models Footer = DictHelper.RetrieveWebFooter(); Theme = DictHelper.RetrieveActiveTheme(); IsDemo = DictHelper.RetrieveSystemModel(); + ShowCardTitle = DictHelper.RetrieveCardTitleStatus() ? "" : "no-card-header"; } /// - /// + /// 获取 网站标题 /// public string Title { get; private set; } /// - /// + /// 获取 网站页脚 /// public string Footer { get; private set; } @@ -37,5 +38,10 @@ namespace Bootstrap.Admin.Models /// 是否为演示系统 /// public bool IsDemo { get; protected set; } + + /// + /// 是否显示卡片标题 + /// + public string ShowCardTitle { get; protected set; } } -} \ No newline at end of file +} diff --git a/Bootstrap.Admin/Views/Admin/Settings.cshtml b/Bootstrap.Admin/Views/Admin/Settings.cshtml index 63a84831..df265ebc 100644 --- a/Bootstrap.Admin/Views/Admin/Settings.cshtml +++ b/Bootstrap.Admin/Views/Admin/Settings.cshtml @@ -2,14 +2,24 @@ @{ ViewBag.Title = "网站设置"; } +@section css { + + + + + + +} @section javascript { + + @@ -70,6 +80,26 @@ +
+
网站调整
+
+
+
+
+ + +
+
+ + +
+
+
+ +
+
diff --git a/Bootstrap.Admin/Views/Shared/_Admin.cshtml b/Bootstrap.Admin/Views/Shared/_Admin.cshtml index 39343a95..503380f3 100644 --- a/Bootstrap.Admin/Views/Shared/_Admin.cshtml +++ b/Bootstrap.Admin/Views/Shared/_Admin.cshtml @@ -1,4 +1,5 @@ -@{ +@model ModelBase +@{ Layout = "_Bootstrap"; } @section css { @@ -35,7 +36,7 @@ } @await Html.PartialAsync("Navigator") -
+