From c6458d9ccf2de47dd1be18b08d777cc0cfdb7733 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 29 Jun 2021 19:47:37 +0800 Subject: [PATCH] Fix convert issue in AbpCrudPageBase. --- framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs b/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs index 19ace62aca..ea7e2236ef 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs +++ b/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs @@ -494,17 +494,17 @@ namespace Volo.Abp.BlazoriseUI await HandleErrorAsync(ex); } } - + protected virtual Task OnDeletingEntityAsync() { return Task.CompletedTask; } - + protected virtual async Task OnDeletedEntityAsync() { await GetEntitiesAsync(); await InvokeAsync(StateHasChanged); - } + } protected virtual string GetDeleteConfirmationMessage(TListViewModel entity) { @@ -596,7 +596,7 @@ namespace Volo.Abp.BlazoriseUI if (propertyInfo.Type.IsEnum) { column.ValueConverter = (val) => - EnumHelper.GetLocalizedMemberName(propertyInfo.Type, val, StringLocalizerFactory); + EnumHelper.GetLocalizedMemberName(propertyInfo.Type, val.As().ExtraProperties[propertyInfo.Name], StringLocalizerFactory); } yield return column;