doc: 更改类名

This commit is contained in:
Argo-Lenovo 2022-01-03 02:39:46 +08:00
parent 9612e48bbb
commit f87efc7c20
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
</div>
</CardHeader>
<CardBody>
<Table TItem="HealthsCheckReportItem" OnQueryAsync="OnQueryAsync" ShowSkeleton="true" IsBordered="true" IsStriped="true" ShowExtendButtons="true">
<Table TItem="HealthCheckReportItem" OnQueryAsync="OnQueryAsync" ShowSkeleton="true" IsBordered="true" IsStriped="true" ShowExtendButtons="true">
<TableColumns>
<TableColumn @bind-Field="@context.Name" Lookup="@GetNameLookup()" Text="检查项"></TableColumn>
<TableColumn @bind-Field="@context.Description" Text="描述"></TableColumn>

View File

@ -38,12 +38,12 @@ public partial class Healths
Client.BaseAddress = new Uri(NavigationManager.BaseUri);
}
private async Task<QueryData<HealthsCheckReportItem>> OnQueryAsync(QueryPageOptions options)
private async Task<QueryData<HealthCheckReportItem>> OnQueryAsync(QueryPageOptions options)
{
var payload = await Client.GetStringAsync("/Healths");
var report = HealthsCheckHelper.Parse(payload);
var report = HealthCheckHelper.Parse(payload);
var ret = new QueryData<HealthsCheckReportItem>()
var ret = new QueryData<HealthCheckReportItem>()
{
IsSorted = true,
IsFiltered = true,
@ -80,7 +80,7 @@ public partial class Healths
_ => "fa fa-times-circle"
};
private Task OnRowButtonClick(HealthsCheckReportItem item) => DialogService.Show(new DialogOption()
private Task OnRowButtonClick(HealthCheckReportItem item) => DialogService.Show(new DialogOption()
{
Title = $"{LookupHelper.GetCheckItems().FirstOrDefault(i => i.Value == item.Name)?.Text} - 详细数据",
IsScrolling = true,