37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
@page "/_Admin/FrameworkGroup/Details/{id}"
|
|
@using WalkingTec.Mvvm.Mvc.Admin.ViewModels.FrameworkGroupVMs;
|
|
@inherits BasePage
|
|
|
|
|
|
<ValidateForm @ref="vform" Model="@Model">
|
|
<Display @bind-Value="@Model.Entity.GroupCode" ShowLabel="true" />
|
|
<Display @bind-Value="@Model.Entity.GroupName" ShowLabel="true" />
|
|
<Display @bind-Value="@Model.Entity.ParentId" ShowLabel="true" Lookup="@AllParents" />
|
|
<Display @bind-Value="@Model.Entity.Manager" ShowLabel="true" />
|
|
<Display @bind-Value="@Model.Entity.GroupRemark" ShowLabel="true" />
|
|
<div class="modal-footer table-modal-footer">
|
|
<Button Color="Color.Primary" Icon="fa fa-save" Text="关闭" OnClick="OnClose" />
|
|
</div>
|
|
</ValidateForm>
|
|
|
|
@code {
|
|
private FrameworkGroupVM Model = null;
|
|
private ValidateForm vform { get; set; }
|
|
[Parameter]
|
|
public string id { get; set; }
|
|
private List<SelectedItem> AllParents = new List<SelectedItem>();
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
AllParents = await WtmBlazor.Api.CallItemsApi("/api/_FrameworkGroup/GetParents", placeholder: WtmBlazor.Localizer["Sys.PleaseSelect"]);
|
|
var rv = await WtmBlazor.Api.CallAPI<FrameworkGroupVM>($"/api/_FrameworkGroup/{id}");
|
|
Model = rv.Data;
|
|
}
|
|
|
|
public void OnClose()
|
|
{
|
|
CloseDialog();
|
|
}
|
|
|
|
}
|