[성현모] CPMeta 최근데이터 조회 기능 추가
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
@* <RadzenPanelMenuItem Text="ProxyKms" Icon="assignment" Path="/ProxyKms"/> *@
|
||||
</RadzenPanelMenu>
|
||||
</RadzenSidebar>
|
||||
<RadzenBody Style="margin:0; padding:1rem; overflow:hidden; font-size: 2rem;">
|
||||
<RadzenBody Style="margin:0; padding:1rem; overflow:auto; font-size: 2rem;">
|
||||
@Body
|
||||
</RadzenBody>
|
||||
</RadzenLayout>
|
||||
|
||||
@ -46,7 +46,11 @@
|
||||
</div> *@
|
||||
|
||||
<OperationGrid TDataModel="tWbms" DataList="@response.Wbms">
|
||||
</OperationGrid>
|
||||
|
||||
<br />
|
||||
<RadzenLabel Style="width: 200px; color:darkorange" Text="Latest Data"></RadzenLabel>
|
||||
<OperationGrid TDataModel="tWbms" DataList="@latest.Wbms">
|
||||
</OperationGrid>
|
||||
|
||||
@code {
|
||||
@ -56,10 +60,18 @@
|
||||
private string SearchProductMacAddress = string.Empty;
|
||||
|
||||
Response_GetWbmsMeta response = new Response_GetWbmsMeta();
|
||||
Response_GetWbmsMeta latest = new Response_GetWbmsMeta();
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
ServerAddress = _cpMetaService.ApiHost;
|
||||
|
||||
var apiConfig = _configService.GetConfig().Api.Find(x => x.Id == 1);
|
||||
|
||||
if (apiConfig is not null)
|
||||
{
|
||||
latest = await _cpMetaService.GetWbmsLatest(ServerAddress, apiConfig.LastCount);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task SearchByProductID()
|
||||
|
||||
Reference in New Issue
Block a user