feat: 添加登陆页面

This commit is contained in:
zhangpeihang 2022-01-14 23:37:04 +08:00
parent b391d109cd
commit d60bdd3bc8
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
@page "/admin/logins"
<AdminTable TItem="LoginLog" IsPagination="true" ShowDefaultButtons="false" ShowExtendButtons="false">
<TableColumns>
<TableColumn @bind-Field="@context.UserName" Filterable="true"></TableColumn>
<TableColumn @bind-Field="@context.LoginTime" Filterable="true"></TableColumn>
<TableColumn @bind-Field="@context.Ip" Filterable="true"></TableColumn>
<TableColumn @bind-Field="@context.City" Filterable="true"></TableColumn>
<TableColumn @bind-Field="@context.Browser" Filterable="true"></TableColumn>
<TableColumn @bind-Field="@context.OS" Filterable="true"></TableColumn>
<TableColumn @bind-Field="@context.Result" Filterable="true">
<Template Context="v">
@if (v.Value == "登录成功")
{
<Badge Color="Color.Success">@v.Value</Badge>
}
else
{
<Badge Color="Color.Danger">@v.Value</Badge>
}
</Template>
</TableColumn>
</TableColumns>
</AdminTable>