增加功能:系统界面演示系统相关提示信息 link #ITEI0

This commit is contained in:
Argo-MacBookPro 2019-03-27 14:09:42 +08:00 committed by Argo Zhang
parent 744d74810e
commit 78a38b7f8b
11 changed files with 40 additions and 8 deletions

View File

@ -15,18 +15,27 @@ namespace Bootstrap.Admin.Models
Title = DictHelper.RetrieveWebTitle();
Footer = DictHelper.RetrieveWebFooter();
Theme = DictHelper.RetrieveActiveTheme();
IsDemo = DictHelper.RetrieveSystemModel();
}
/// <summary>
///
/// </summary>
public string Title { get; private set; }
/// <summary>
///
/// </summary>
public string Footer { get; private set; }
/// <summary>
///
/// </summary>
public string Theme { get; protected set; }
/// <summary>
/// 是否为演示系统
/// </summary>
public bool IsDemo { get; protected set; }
}
}

View File

@ -41,6 +41,11 @@
</div>
</form>
}
@section body {
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
<span>演示系统禁止修改系统使用字典配置项</span>
</div>
}
@section modal {
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">字典编辑窗口</h5>

View File

@ -90,6 +90,11 @@
@section gear {
<a id="tb_assignRole" href="#" title="分配角色" asp-auth="assignRole"><i class="fa fa-sitemap"></i></a>
}
@section body {
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
<span>演示系统禁止修改系统菜单,可修改外部菜单</span>
</div>
}
@section modal {
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">菜单编辑窗口</h5>

View File

@ -53,6 +53,9 @@
<div class="card">
<div class="card-header">修改密码</div>
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSavePassword">
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
<span>演示系统禁止更改管理员密码</span>
</div>
<form class="form-inline">
<div class="row">
<div class="form-group col-sm-6 col-md-auto">
@ -71,7 +74,7 @@
</div>
</div>
</form>
<div class="modal-footer" asp-auth="savePassword">
<div class="modal-footer" asp-auth="savePassword" asp-condition="!@Model.IsDemo">
<button id="btnSavePassword" data-method="password" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>

View File

@ -58,6 +58,11 @@
<a id="tb_assignMenu" href="#" title="分配菜单" asp-auth="assignMenu"><i class="fa fa-dashboard"></i></a>
<a id="tb_assignApp" href="#" title="分配应用" asp-auth="assignApp"><i class="fa fa-cubes"></i></a>
}
@section body {
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
<span>演示系统禁止修改内置角色Administrators、Default</span>
</div>
}
@section modal {
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">角色编辑窗口</h5>

View File

@ -38,6 +38,11 @@
@section tableButtons {
<button class="reset btn btn-warning" asp-auth="resetPassword"><i class="fa fa-remove"></i><span>重置</span></button>
}
@section body {
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
<span>演示系统禁止修改Admin账户</span>
</div>
}
@section modal {
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">用户编辑窗口</h5>

View File

@ -1,6 +1,6 @@
@model ModelBase
<footer class="position-fixed">
<span id="websiteFooter">@Model.Footer</span>
<div><span id="websiteFooter">@Model.Footer</span><span asp-condition="@Model.IsDemo">(演示系统)</span></div>
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
<i class="fa fa-angle-up"></i>
</a>

View File

@ -80,6 +80,7 @@
查询结果
</div>
<div class="card-body">
@await RenderSectionAsync("body", false)
<table></table>
</div>
</div>

View File

@ -1,3 +1,4 @@
@using Bootstrap.Admin.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Bootstrap.Security.Mvc
@addTagHelper *, Bootstrap.Security.Mvc
@addTagHelper *, Longbow.Web

View File

@ -151,11 +151,9 @@ footer {
display: flex;
}
footer > span {
footer div {
flex: 1 1 auto;
text-align: center;
margin-left: 4px;
display: inline-block;
}
.go-top {

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@ -14,7 +14,7 @@
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.1.0" />
<PackageReference Include="Longbow.Data" Version="2.2.6" />
<PackageReference Include="Longbow.Security.Cryptography" Version="1.3.0" />
<PackageReference Include="Longbow.Web" Version="2.2.6" />
<PackageReference Include="Longbow.Web" Version="2.2.7" />
<PackageReference Include="Longbow.Cache" Version="2.2.3" />
<PackageReference Include="Longbow" Version="2.2.7" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.2" />