From a6741df1a50bdf691e7e4f3a3faa808e90f721ee Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Mon, 25 Aug 2025 12:48:54 +0800 Subject: [PATCH] rename --- src/app/api/escalation/index.ts | 10 +++++----- .../DashboardPage/escalation/EscalationLogTable.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/api/escalation/index.ts b/src/app/api/escalation/index.ts index abfb30a..5c0e7d4 100644 --- a/src/app/api/escalation/index.ts +++ b/src/app/api/escalation/index.ts @@ -7,14 +7,14 @@ import { cache } from "react"; export interface EscalationResult { id: number; - personInCharge?: string; - personInChargeDepartment?: string; - personInChargeName?: string; - personInChargeTitle?: string; + handler?: string; + handlerDepartment?: string; + handlerName?: string; + handlerTitle?: string; polId?: number; poId?: number; reason?: string; - personInChargeId?: number; + handlerId?: number; itemName?: string; demandQty?: number; acceptedQty?: number; diff --git a/src/components/DashboardPage/escalation/EscalationLogTable.tsx b/src/components/DashboardPage/escalation/EscalationLogTable.tsx index a71e89e..62f1040 100644 --- a/src/components/DashboardPage/escalation/EscalationLogTable.tsx +++ b/src/components/DashboardPage/escalation/EscalationLogTable.tsx @@ -61,7 +61,7 @@ const EscalationLogTable: React.FC = ({ const columns = useMemo[]>( () => [ { - name: "personInCharge", + name: "handler", label: t("Responsible for handling colleagues") }, {