summaryrefslogtreecommitdiff
path: root/lib/pq/pq-criteria/pq-table.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-27 10:03:06 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-27 10:03:06 +0000
commita3525f8bdfcf849cc1716fab81cb8facadbe9a8e (patch)
tree0b5b534e92bcfe188d4906db7d16c37044262c2f /lib/pq/pq-criteria/pq-table.tsx
parente87b7b06d92dc7e7235ecda24c212169f30e82ec (diff)
(최겸) 구매 협력업체 관리(PQ/실사관리, 정기평가 협력업체 제출 상세 dialog 개발,
Diffstat (limited to 'lib/pq/pq-criteria/pq-table.tsx')
-rw-r--r--lib/pq/pq-criteria/pq-table.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pq/pq-criteria/pq-table.tsx b/lib/pq/pq-criteria/pq-table.tsx
index e0e3dee5..187a727b 100644
--- a/lib/pq/pq-criteria/pq-table.tsx
+++ b/lib/pq/pq-criteria/pq-table.tsx
@@ -18,7 +18,7 @@ import { getColumns } from "./pq-table-column"
import { UpdatePqSheet } from "./update-pq-sheet"
interface DocumentListTableProps {
- promises: Promise<[Awaited<ReturnType<typeof getPQsByListId>>]>
+ promises: Promise<[Awaited<ReturnType<typeof getPQsByListId>>, Awaited<ReturnType<typeof getPQListInfo>>]>
pqListId: number
}
@@ -27,14 +27,14 @@ export function PqsTable({
pqListId
}: DocumentListTableProps) {
// 1) 데이터를 가져옴 (server component -> use(...) pattern)
- const [{ data, pageCount }] = React.use(promises)
+ const [{ data, pageCount }, pqListInfo] = React.use(promises)
const [rowAction, setRowAction] = React.useState<DataTableRowAction<PqCriterias> | null>(null)
const columns = React.useMemo(
- () => getColumns({ setRowAction }),
- [setRowAction]
+ () => getColumns({ setRowAction, pqListInfo }),
+ [setRowAction, pqListInfo]
)
// Filter fields
@@ -105,7 +105,7 @@ export function PqsTable({
filterFields={advancedFilterFields}
shallow={false}
>
- <PqTableToolbarActions table={table} pqListId={pqListId}/>
+ <PqTableToolbarActions table={table} pqListId={pqListId} pqListInfo={pqListInfo}/>
</DataTableAdvancedToolbar>
</DataTable>