feat: 用户维护增加分配按钮空函数

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

View File

@ -5,6 +5,10 @@
<LgbInputText ColumnClass="col-sm-auto" @bind-Value="@context.UserName" maxlength="50" />
<LgbInputText ColumnClass="col-sm-auto" @bind-Value="@context.DisplayName" maxlength="50" />
</QueryBody>
<TableToolbarTemplate>
<TableToolbarButton class="btn btn-info" Icon="fa fa-bank" Title="分配部门" OnClick="AssignGroups" />
<TableToolbarButton class="btn btn-warning" Icon="fa fa-sitemap" Title="分配角色" OnClick="AssignRoles" />
</TableToolbarTemplate>
<TableHeader>
<LgbTableHeader TItem="string" @bind-Value="@context.UserName"></LgbTableHeader>
<LgbTableHeader TItem="string" @bind-Value="@context.DisplayName"></LgbTableHeader>

View File

@ -35,5 +35,21 @@ namespace Bootstrap.Pages.Admin.Components
/// 删除方法
/// </summary>
protected override bool Delete(IEnumerable<User> users) => UserHelper.Delete(users.Select(item => item.Id ?? ""));
/// <summary>
/// 分配部门方法
/// </summary>
protected void AssignGroups()
{
}
/// <summary>
/// 分配角色方法
/// </summary>
protected void AssignRoles()
{
}
}
}