diff --git a/src/app/(dashboard)/customers/page.tsx b/src/app/(dashboard)/customers/page.tsx index 0ad94ed..3b35aba 100644 --- a/src/app/(dashboard)/customers/page.tsx +++ b/src/app/(dashboard)/customers/page.tsx @@ -1,7 +1,7 @@ import Link from "next/link"; import { prisma } from "@/lib/prisma"; import { auth } from "@/lib/auth"; -import { isSuperAdmin } from "@/lib/acl"; +import { isStaff, isSuperAdmin } from "@/lib/acl"; import { fmtDate, maskPhone } from "@/lib/utils"; import { Card } from "@/components/ui/card"; import { Table, THead, TR, TH, TD } from "@/components/ui/table"; @@ -28,6 +28,8 @@ export default async function CustomersPage({ }) { const session = await auth(); const superAdmin = isSuperAdmin(session?.user?.roles); + // 查看弹窗:业务员角色也展示明文手机号(列表仍脱敏) + const viewFullPhone = superAdmin || isStaff(session?.user?.roles); const sp = await searchParams; const keyword = (sp.keyword ?? "").trim(); const page = Math.max(1, Number(sp.page) || 1); @@ -123,12 +125,12 @@ export default async function CustomersPage({