feat(#I18IRV): 增加网站调整功能

#Comment
comment #I18IRV

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I18IRV
This commit is contained in:
Argo Zhang 2020-01-17 11:53:29 +08:00
parent 9ac820c4b9
commit 9e081f6340
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 11 additions and 1 deletions

View File

@ -86,7 +86,7 @@
</div>
</div>
<div class="modal-footer text-right">
<button data-method="UISettings" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
<button class="btn btn-secondary" type="button" @onclick="SaveSidebar"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>

View File

@ -67,6 +67,16 @@ namespace Bootstrap.Pages.Admin.Components
RootLayout?.NavigationManager?.NavigateTo(url, true);
}
}
/// <summary>
/// 保存 网站调整 方法
/// </summary>
protected void SaveSidebar()
{
var ret = DictHelper.SaveSettings(new BootstrapDict() { Category = "网站调整", Name = "侧边栏状态", Code = Model.ShowSideBar ? "1" : "0" }) &&
DictHelper.SaveSettings(new BootstrapDict() { Category = "网站调整", Name = "卡片标题状态", Code = Model.ShowCardTitle ? "1" : "0" });
ShowMessage("网站调整 设置保存", ret);
}
/// <summary>
/// 网站设置编辑模型实体类
/// </summary>