feat(#I18IRV): 增加网站调整功能
#Comment comment #I18IRV #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I18IRV
This commit is contained in:
parent
9ac820c4b9
commit
9e081f6340
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue