fix: 모든 표의 번호 열을 위에서부터 세는 순번으로 통일한다
관리자 목록은 전체 건수에서 빼 내려가는 역순이었고, 앱 메뉴 트리는 메뉴 ID를, 상세코드는 정렬번호를 그 자리에 보였다. 번호는 백엔드 값이 아니라 페이지 기준 순번이다(사용자 확정). Co-Authored-By: Claude Opus 5
@185778e957637eca7b25470204e1e45f2aafcfb2
--- app/(protected)/(basic)/admins/_components/admin-member-list.tsx
+++ app/(protected)/(basic)/admins/_components/admin-member-list.tsx
... | ... | @@ -62,14 +62,12 @@ |
| 62 | 62 |
router.replace(buildAdminMemberHref(query, { ...patch, page: 1 }));
|
| 63 | 63 |
} |
| 64 | 64 |
|
| 65 |
- const offset = (currentPage - 1) * query.pageSize; |
|
| 66 |
- |
|
| 67 | 65 |
const columns: FoxListColumn<AdminMember>[] = [ |
| 68 | 66 |
{
|
| 69 | 67 |
key: 'no', |
| 70 | 68 |
header: '번호', |
| 71 | 69 |
width: 80, |
| 72 |
- render: (_row, index) => totalCount - offset - index, |
|
| 70 |
+ render: (_row, index) => (currentPage - 1) * query.pageSize + index + 1, |
|
| 73 | 71 |
}, |
| 74 | 72 |
{ key: 'name', header: '이름', align: 'start', width: FILL_COLUMN_WIDTH },
|
| 75 | 73 |
{ key: 'loginId', header: '아이디', align: 'start', width: FILL_COLUMN_WIDTH },
|
--- app/(protected)/(basic)/system/codes/_components/code-management.tsx
+++ app/(protected)/(basic)/system/codes/_components/code-management.tsx
... | ... | @@ -186,8 +186,7 @@ |
| 186 | 186 |
key: 'no', |
| 187 | 187 |
header: '번호', |
| 188 | 188 |
width: 80, |
| 189 |
- // 기획의 상세코드 목록은 이 자리에 정렬번호를 보여준다(FSC01→1, FSC10→10). |
|
| 190 |
- render: (row) => row.sortSeq, |
|
| 189 |
+ render: (_row, index) => (detailPage - 1) * COMMON_CODE_PAGE_SIZE + index + 1, |
|
| 191 | 190 |
}, |
| 192 | 191 |
{ key: 'comDtlCd', header: '상세코드ID', align: 'start', width: 120 },
|
| 193 | 192 |
{ key: 'name', header: '상세코드명', align: 'start', width: 120, emphasis: true },
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?