From 8c26d818465e8b1bc9d767061cc85dbc28b8d604 Mon Sep 17 00:00:00 2001 From: Eamon <17516219072@163.com> Date: Sat, 28 Mar 2026 15:36:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E8=A1=A8=E6=A0=BC=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(root)/admin/page.tsx | 2 ++ src/app/(root)/batch/page.tsx | 1 - src/app/(root)/billing/page.tsx | 5 ----- src/app/(root)/channel/page.tsx | 4 ---- src/app/(root)/coupon/page.tsx | 2 ++ src/app/(root)/cust/create.tsx | 4 ---- src/app/(root)/cust/page.tsx | 3 ++- src/app/(root)/discount/page.tsx | 2 ++ src/app/(root)/product/page.tsx | 4 ++-- src/app/(root)/resources/page.tsx | 1 - src/app/(root)/roles/page.tsx | 2 ++ src/app/(root)/trade/page.tsx | 1 - src/app/(root)/user/page.tsx | 1 - src/models/user.ts | 2 +- 14 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/app/(root)/admin/page.tsx b/src/app/(root)/admin/page.tsx index fb084b9..55c1ec6 100644 --- a/src/app/(root)/admin/page.tsx +++ b/src/app/(root)/admin/page.tsx @@ -78,6 +78,8 @@ export default function AdminPage() { cell: ({ row }) => , }, { + id: "action", + meta: { pin: "right" }, header: "操作", cell: ({ row }) => (
diff --git a/src/app/(root)/batch/page.tsx b/src/app/(root)/batch/page.tsx index 3c5c3f0..1d8c3ca 100644 --- a/src/app/(root)/batch/page.tsx +++ b/src/app/(root)/batch/page.tsx @@ -81,7 +81,6 @@ export default function BatchPage() { const table = useDataTable((page, size) => getPageBatch({ page, size, ...filters }), ) - console.log(table, "使用记录") const onFilter = handleSubmit(data => { const result: APIFilterParams = {} diff --git a/src/app/(root)/billing/page.tsx b/src/app/(root)/billing/page.tsx index c255ae6..c378957 100644 --- a/src/app/(root)/billing/page.tsx +++ b/src/app/(root)/billing/page.tsx @@ -98,7 +98,6 @@ export default function BillingPage() { useEffect(() => { setLoading(true) - console.log(skuProductCode, "skuProductCode") getSkuList({ product_code: skuProductCode, }) @@ -112,7 +111,6 @@ export default function BillingPage() { resource_name: sku.name, })), ) - console.log(resp.data, "skus") }) .catch(e => { console.error("获取套餐类型失败:", e) @@ -130,10 +128,7 @@ export default function BillingPage() { getPageBill({ page, size, ...filters }), ) - console.log(table, "账单详情的table") const onFilter = handleSubmit(data => { - console.log(data, "data") - const result: FilterValues = {} if (data.phone?.trim()) result.user_phone = data.phone.trim() if (data.inner_no?.trim()) result.trade_inner_no = data.inner_no.trim() diff --git a/src/app/(root)/channel/page.tsx b/src/app/(root)/channel/page.tsx index 9c0784b..3b038b1 100644 --- a/src/app/(root)/channel/page.tsx +++ b/src/app/(root)/channel/page.tsx @@ -89,13 +89,9 @@ export default function ChannelPage() { const table = useDataTable((page, size) => getPageChannel({ page, size, ...filters }), ) - console.log(table, "IP管理的table") const onFilter = handleSubmit(data => { - console.log(data, "data") - const result: FilterValues = {} - if (data.batch_no?.trim()) result.batch_no = data.batch_no.trim() if (data.user_phone?.trim()) result.user_phone = data.user_phone.trim() if (data.resource_no?.trim()) result.resource_no = data.resource_no.trim() diff --git a/src/app/(root)/coupon/page.tsx b/src/app/(root)/coupon/page.tsx index 1e054a1..1287010 100644 --- a/src/app/(root)/coupon/page.tsx +++ b/src/app/(root)/coupon/page.tsx @@ -74,6 +74,8 @@ export default function CouponPage() { format(new Date(row.original.updated_at), "yyyy-MM-dd HH:mm"), }, { + id: "action", + meta: { pin: "right" }, header: "操作", cell: ({ row }) => (
diff --git a/src/app/(root)/cust/create.tsx b/src/app/(root)/cust/create.tsx index 464ba77..bdedf0d 100644 --- a/src/app/(root)/cust/create.tsx +++ b/src/app/(root)/cust/create.tsx @@ -108,8 +108,6 @@ export function AddUserDialog({ setIsLoadingDiscount(true) try { const res = await getAllProductDiscount() - console.log("折扣res", res) - if (res.success) { setDiscountList(res.data || []) } else { @@ -127,8 +125,6 @@ export function AddUserDialog({ setIsLoadingAdmin(true) try { const res = await getAllAdmin() - console.log(res, "管理员res") - if (res.success) { setAdminList(res.data || []) } else { diff --git a/src/app/(root)/cust/page.tsx b/src/app/(root)/cust/page.tsx index b596696..316f089 100644 --- a/src/app/(root)/cust/page.tsx +++ b/src/app/(root)/cust/page.tsx @@ -90,7 +90,6 @@ export default function UserPage() { ) const table = useDataTable(fetchUsers) - console.log(table, "table") const onFilter = handleSubmit(data => { const result: FilterValues = {} @@ -458,6 +457,8 @@ export default function UserPage() { format(new Date(row.original.created_at), "yyyy-MM-dd HH:mm"), }, { + id: "action", + meta: { pin: "right" }, header: "操作", cell: ({ row }) => { const isEditing = editingRowId === row.original.id diff --git a/src/app/(root)/discount/page.tsx b/src/app/(root)/discount/page.tsx index 686b3b7..601703f 100644 --- a/src/app/(root)/discount/page.tsx +++ b/src/app/(root)/discount/page.tsx @@ -57,6 +57,8 @@ export default function DiscountPage() { format(new Date(row.original.updated_at), "yyyy-MM-dd HH:mm"), }, { + id: "action", + meta: { pin: "right" }, header: "操作", cell: ({ row }) => (
diff --git a/src/app/(root)/product/page.tsx b/src/app/(root)/product/page.tsx index 0077a63..087bb4d 100644 --- a/src/app/(root)/product/page.tsx +++ b/src/app/(root)/product/page.tsx @@ -48,8 +48,6 @@ function Products(props: { const refresh = useCallback(async () => { const resp = await getAllProduct() - console.log(resp, "产品管理的resp") - if (resp.success) { setList(resp.data) } @@ -141,6 +139,8 @@ function ProductSkus(props: { selected?: number }) { accessorFn: row => format(row.updated_at, "yyyy-MM-dd HH:mm"), }, { + id: "action", + meta: { pin: "right" }, header: "操作", cell: ({ row }) => (
diff --git a/src/app/(root)/resources/page.tsx b/src/app/(root)/resources/page.tsx index 72e7e01..9173238 100644 --- a/src/app/(root)/resources/page.tsx +++ b/src/app/(root)/resources/page.tsx @@ -1,6 +1,5 @@ "use client" import { zodResolver } from "@hookform/resolvers/zod" -import { ColumnDef } from "@tanstack/react-table" import { format, isBefore, isSameDay } from "date-fns" import { Box, Loader2, Timer } from "lucide-react" import { Suspense, useCallback, useMemo, useState } from "react" diff --git a/src/app/(root)/roles/page.tsx b/src/app/(root)/roles/page.tsx index 0902c11..f90aaf1 100644 --- a/src/app/(root)/roles/page.tsx +++ b/src/app/(root)/roles/page.tsx @@ -57,6 +57,8 @@ export default function RolesPage() { ), }, { + id: "action", + meta: { pin: "right" }, header: "操作", cell: ({ row }) => (
diff --git a/src/app/(root)/trade/page.tsx b/src/app/(root)/trade/page.tsx index 7193606..d85996d 100644 --- a/src/app/(root)/trade/page.tsx +++ b/src/app/(root)/trade/page.tsx @@ -85,7 +85,6 @@ export default function TradePage() { const table = useDataTable((page, size) => getPageTrade({ page, size, ...filters }), ) - console.log(table, "交易明细的table") const onFilter = handleSubmit(data => { const result: FilterValues = {} diff --git a/src/app/(root)/user/page.tsx b/src/app/(root)/user/page.tsx index d0f4e3b..0f6b64f 100644 --- a/src/app/(root)/user/page.tsx +++ b/src/app/(root)/user/page.tsx @@ -60,7 +60,6 @@ export default function UserPage() { done: "用户已认领", fail: "用户认领失败", }) - console.log(table, "table") const onFilter = handleSubmit(data => { const result: FilterValues = {} diff --git a/src/models/user.ts b/src/models/user.ts index 21efc6f..1d29446 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -4,7 +4,7 @@ export type User = { id: number admin_id?: number admin?: Admin - account: string + phone: string source: number has_password: boolean username: string