mh_custom/wtmProject.Shared/Pages/_Admin/FrameworkCustom/Details.razor

37 lines
1006 B
Plaintext
Raw Permalink Normal View History

2024-05-16 17:30:33 +08:00
@page "/_Admin/FrameworkCustom/Details/{id}"
@using wtmProject.ViewModel._Admin.FrameworkCustomVMs;
@inherits BasePage
<ValidateForm @ref="vform" Model="@Model" >
<Row ItemsPerRow="ItemsPerRow.Two" RowType="RowType.Normal">
<Display @bind-Value="@Model.Entity.CustomCode" ShowLabel="true"/>
<Display @bind-Value="@Model.Entity.CustomName" ShowLabel="true"/>
</Row>
<div class="modal-footer table-modal-footer">
<Button Color="Color.Primary" Icon="fa fa-save" Text="@WtmBlazor.Localizer["Sys.Close"]" OnClick="OnClose" />
</div>
</ValidateForm>
@code {
private FrameworkCustomVM Model = null;
private ValidateForm vform { get; set; }
[Parameter]
public string id { get; set; }
protected override async Task OnInitializedAsync()
{
var rv = await WtmBlazor.Api.CallAPI<FrameworkCustomVM>($"/api/FrameworkCustom/{id}");
Model = rv.Data;
}
public void OnClose()
{
CloseDialog();
}
}