ancora fix scarti
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@page "/scarti"
|
||||
@*@page "/scarti/{IdxMacchina}"*@
|
||||
|
||||
@using MP.Stats.Components
|
||||
|
||||
@@ -9,7 +10,7 @@
|
||||
<div class="card-body py-0 px-1">
|
||||
@if (ShowCharts == true)
|
||||
{
|
||||
<ChartScarti ListScarti="@SearchRecords"></ChartScarti>
|
||||
<ChartScarti RawData="SearchRecords"></ChartScarti>
|
||||
}
|
||||
@if (ListRecords == null)
|
||||
{
|
||||
@@ -67,6 +68,6 @@
|
||||
}
|
||||
</div>
|
||||
<div class="card-footer py-1">
|
||||
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="totalCount" showLoading="@isLoading" />
|
||||
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="totalCount" showLoading="isLoading" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,18 +25,6 @@ namespace MP.Stats.Pages
|
||||
|
||||
private int _numRecord { get; set; } = 10;
|
||||
|
||||
private SelectData currFilter
|
||||
{
|
||||
get
|
||||
{
|
||||
return MessageService.DetailFilter;
|
||||
}
|
||||
set
|
||||
{
|
||||
MessageService.DetailFilter = value;
|
||||
}
|
||||
}
|
||||
|
||||
private int currPage
|
||||
{
|
||||
get => _currPage;
|
||||
@@ -100,6 +88,23 @@ namespace MP.Stats.Pages
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Public Properties
|
||||
|
||||
[Parameter]
|
||||
public SelectData currFilter
|
||||
{
|
||||
get
|
||||
{
|
||||
return MessageService.DetailFilter;
|
||||
}
|
||||
set
|
||||
{
|
||||
MessageService.DetailFilter = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private async Task reloadData()
|
||||
@@ -196,11 +201,11 @@ namespace MP.Stats.Pages
|
||||
MessageService.EA_SearchUpdated -= OnSeachUpdated;
|
||||
}
|
||||
|
||||
public void OnSeachUpdated()
|
||||
public async void OnSeachUpdated()
|
||||
{
|
||||
InvokeAsync(() =>
|
||||
await InvokeAsync(() =>
|
||||
{
|
||||
UpdateData();
|
||||
Task task = UpdateData();
|
||||
StateHasChanged();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user