diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor index 686b7cb6..fb19c3ae 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor @@ -5,12 +5,14 @@ 健康检查结果 - @Duration - @GetTagText() + @Duration + @GetTagText() + - + diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs index 6a7afd4c..0f1eb485 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs @@ -23,6 +23,9 @@ public partial class Healths private HealthStatus Status { get; set; } + [NotNull] + private Table? HealthTable { get; set; } + [Inject] [NotNull] private DialogService? DialogService { get; set; } @@ -58,6 +61,13 @@ public partial class Healths return ret; } + private async Task OnCheck() + { + await HealthTable.ToggleLoading(true); + await HealthTable.QueryAsync(); + await HealthTable.ToggleLoading(false); + } + private static List GetNameLookup() => LookupHelper.GetCheckItems(); private string? GetTagText(HealthStatus? status = null) => (status ?? Status) switch diff --git a/src/blazor/admin/BootstrapAdmin.Web/wwwroot/css/site.css b/src/blazor/admin/BootstrapAdmin.Web/wwwroot/css/site.css index 210edf02..48813db5 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/wwwroot/css/site.css +++ b/src/blazor/admin/BootstrapAdmin.Web/wwwroot/css/site.css @@ -114,3 +114,7 @@ text-overflow: ellipsis; color: var(--bs-info); } + +.btn-hc { + padding: 3px 12px; +}