修复购买到支付流程的接口和页面&数据展示
This commit is contained in:
29
src/app/(root)/batch/page.tsx
Normal file
29
src/app/(root)/batch/page.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
"use client"
|
||||
import { Suspense } from "react"
|
||||
import { getPageBatch } from "@/actions/batch"
|
||||
import { DataTable, useDataTable } from "@/components/data-table"
|
||||
import type { User } from "@/models/user"
|
||||
|
||||
export default function UserPage() {
|
||||
const table = useDataTable<User>((page, size) => getPageBatch({ page, size }))
|
||||
console.log(table, "table")
|
||||
|
||||
return (
|
||||
<Suspense>
|
||||
<DataTable<User>
|
||||
{...table}
|
||||
columns={[
|
||||
{ header: "ID", accessorKey: "id" },
|
||||
{ header: "批次号", accessorKey: "batch_no" },
|
||||
{ header: "城市", accessorKey: "city" },
|
||||
{ header: "省份", accessorKey: "prov" },
|
||||
{ header: "数量", accessorKey: "count" },
|
||||
{ header: "提取IP", accessorKey: "ip" },
|
||||
{ header: "运营商", accessorKey: "isp" },
|
||||
{ header: "可用资源", accessorKey: "resource_id" },
|
||||
{ header: "时间", accessorKey: "time" },
|
||||
]}
|
||||
/>
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user