35 lines
730 B
Plaintext
35 lines
730 B
Plaintext
@using MP.Stats.Data
|
|
|
|
@inject MessageService MessageService
|
|
@inject MpStatsService StatService
|
|
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<ul>
|
|
|
|
@foreach (var item in @CurrData)
|
|
{
|
|
<li>@item.label: @item.value</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
<div class="col-6"></div>
|
|
</div>
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
public SelectData currFilter { get; set; }
|
|
|
|
protected List<ChartKV> CurrData { get; set; } = new List<ChartKV>();
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await reloadData();
|
|
}
|
|
|
|
private async Task reloadData()
|
|
{
|
|
CurrData = await StatService.StatScartiGetPareto(currFilter, MessageService.SearchVal);
|
|
}
|
|
} |