feat: 角色维护增加分配空函数

This commit is contained in:
Argo Zhang 2020-01-16 13:00:17 +08:00
parent 44b19579b9
commit 91627fac3f
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 39 additions and 0 deletions

View File

@ -5,6 +5,12 @@
<LgbInputText ColumnClass="col-sm-auto" @bind-Value="@context.RoleName" maxlength="50" />
<LgbInputText ColumnClass="col-sm-auto" @bind-Value="@context.Description" maxlength="50" />
</QueryBody>
<TableToolbarTemplate>
<TableToolbarButton class="btn btn-info" Icon="fa fa-user" Title="分配用户" OnClick="AssignUsers" />
<TableToolbarButton class="btn btn-warning" Icon="fa fa-bank" Title="分配部门" OnClick="AssignGroups" />
<TableToolbarButton class="btn btn-secondary" Icon="fa fa-dashboard" Title="分配菜单" OnClick="AssignMenus" />
<TableToolbarButton class="btn btn-success" Icon="fa fa-cubes" Title="分配应用" OnClick="AssignApps" />
</TableToolbarTemplate>
<TableInfoTemplate>
<div class="alert alert-info" role="alert">
<span>禁止修改系统内置 Administrators Default 两个角色</span>

View File

@ -35,5 +35,38 @@ namespace Bootstrap.Pages.Admin.Components
/// 删除方法
/// </summary>
protected override bool Delete(IEnumerable<Role> items) => RoleHelper.Delete(items.Select(item => item.Id ?? ""));
/// <summary>
/// 分配用户方法
/// </summary>
protected void AssignUsers()
{
}
/// <summary>
/// 分配部门方法
/// </summary>
protected void AssignGroups()
{
}
/// <summary>
/// 分配菜单方法
/// </summary>
protected void AssignMenus()
{
}
/// <summary>
/// 分配应用方法
/// </summary>
protected void AssignApps()
{
}
}
}