|
|
@ -3,7 +3,9 @@ using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
|
|
|
|
|
|
|
|
using Volo.Abp.EventBus.Local;
|
|
|
|
using Volo.Abp.PermissionManagement.Web.Utils;
|
|
|
|
using Volo.Abp.PermissionManagement.Web.Utils;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.Web.Pages.AbpPermissionManagement
|
|
|
|
namespace Volo.Abp.PermissionManagement.Web.Pages.AbpPermissionManagement
|
|
|
@ -31,11 +33,16 @@ namespace Volo.Abp.PermissionManagement.Web.Pages.AbpPermissionManagement
|
|
|
|
|
|
|
|
|
|
|
|
protected IPermissionAppService PermissionAppService { get; }
|
|
|
|
protected IPermissionAppService PermissionAppService { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public PermissionManagementModal(IPermissionAppService permissionAppService)
|
|
|
|
protected ILocalEventBus LocalEventBus { get; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public PermissionManagementModal(
|
|
|
|
|
|
|
|
IPermissionAppService permissionAppService,
|
|
|
|
|
|
|
|
ILocalEventBus localEventBus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ObjectMapperContext = typeof(AbpPermissionManagementWebModule);
|
|
|
|
ObjectMapperContext = typeof(AbpPermissionManagementWebModule);
|
|
|
|
|
|
|
|
|
|
|
|
PermissionAppService = permissionAppService;
|
|
|
|
PermissionAppService = permissionAppService;
|
|
|
|
|
|
|
|
LocalEventBus = localEventBus;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual async Task<IActionResult> OnGetAsync()
|
|
|
|
public virtual async Task<IActionResult> OnGetAsync()
|
|
|
@ -88,6 +95,10 @@ namespace Volo.Abp.PermissionManagement.Web.Pages.AbpPermissionManagement
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await LocalEventBus.PublishAsync(
|
|
|
|
|
|
|
|
new CurrentApplicationConfigurationCacheResetEventData()
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
return NoContent();
|
|
|
|
return NoContent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -155,4 +166,4 @@ namespace Volo.Abp.PermissionManagement.Web.Pages.AbpPermissionManagement
|
|
|
|
public string ProviderKey { get; set; }
|
|
|
|
public string ProviderKey { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|