diff --git a/src/TaxBaik.Web.Client/Components/Admin/Pages/Clients/ClientList.razor b/src/TaxBaik.Web.Client/Components/Admin/Pages/Clients/ClientList.razor index cc3d910..45c1aa4 100644 --- a/src/TaxBaik.Web.Client/Components/Admin/Pages/Clients/ClientList.razor +++ b/src/TaxBaik.Web.Client/Components/Admin/Pages/Clients/ClientList.razor @@ -50,60 +50,84 @@ } else { - - - - 이름 - 회사명 - 연락처 - 서비스 - 세금 유형 - 상태 - 유입 경로 - 등록일 - - - - - @foreach (var c in clients) - { - - @c.Name - @(c.CompanyName ?? "—") - @(c.Phone ?? "—") - - @if (!string.IsNullOrEmpty(c.ServiceType)) - { - @c.ServiceType - } - - @(c.TaxType ?? "—") - - @if (c.Status == "active") - { - 활성 - } - else - { - 비활성 - } - - @(c.Source ?? "—") - @c.CreatedAt.ToLocalTime().ToString("yy.MM.dd") - - - - 수정 - - - 삭제 - - - - - } - - + + @($"검색 결과 {clients.Count}명 / 전체 {totalCount}명") + 페이지 @currentPage / @totalPages + + + + + + + + + + + + + + + + @if (!string.IsNullOrEmpty(context.Item.ServiceType)) + { + + @context.Item.ServiceType + + } + else + { + + } + + + + + + + + @{ + var isActive = context.Item.Status == "active"; + + @(isActive ? "활성" : "비활성") + + } + + + + + + + + + + + + @Icons.Material.Filled.Edit + + + @Icons.Material.Filled.Delete + + + + + + @* 페이징 *@ @if (totalPages > 1) @@ -114,7 +138,6 @@ SelectedChanged="@OnPageChanged" /> } - 총 @(totalCount)명 } @@ -170,6 +193,11 @@ clients = items.ToList(); totalCount = total; totalPages = (int)Math.Ceiling((double)total / PageSize); + + if (clients.Count > 0) + { + Snackbar.Add($"고객 {clients.Count}명을 불러왔습니다.", Severity.Info); + } } catch (Exception ex) { @@ -231,6 +259,5 @@ { Snackbar.Add($"오류: {ex.Message}", Severity.Error); } - await LoadAsync(); } }