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> </div>
</CardHeader> </CardHeader>
<CardBody> <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> <TableColumns>
<TableColumn @bind-Field="@context.Name" Lookup="@GetNameLookup()" Text="检查项"></TableColumn> <TableColumn @bind-Field="@context.Name" Lookup="@GetNameLookup()" Text="检查项"></TableColumn>
<TableColumn @bind-Field="@context.Description" 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); 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 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, IsSorted = true,
IsFiltered = true, IsFiltered = true,
@ -80,7 +80,7 @@ public partial class Healths
_ => "fa fa-times-circle" _ => "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} - 详细数据", Title = $"{LookupHelper.GetCheckItems().FirstOrDefault(i => i.Value == item.Name)?.Text} - 详细数据",
IsScrolling = true, IsScrolling = true,