Skip to content

Commit

Permalink
1、修正部门编辑后不能及时更新列表的bug;2、添加部门表相关迁移代码
Browse files Browse the repository at this point in the history
  • Loading branch information
HisKingdom committed Dec 23, 2024
1 parent af88ec3 commit 53ab711
Show file tree
Hide file tree
Showing 5 changed files with 591 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/NetCorePal.D3Shop.Web.Admin.Client/Pages/Dept.razor
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
@if (context.CheckPermission(PermissionCodes.DepartmentEdit))
{
<CascadingValue Value="@row">
<EditDeptInfo></EditDeptInfo>
<EditDeptInfo OnRowUpdated="HandleItemUpdated"></EditDeptInfo>
</CascadingValue>
}
</AuthorizeView>
Expand Down
4 changes: 4 additions & 0 deletions src/NetCorePal.D3Shop.Web.Admin.Client/Pages/Dept.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ private async Task HandleItemAdded()
await GetPagedDepartments();
}

private void HandleItemUpdated()
{
_table.ReloadData();
}
private async Task Delete(DepartmentResponse row)
{
if (!await Confirm($"确认删除部门:{row.Name}?"))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 53ab711

Please sign in to comment.