From ce6ab4f05b36633a797e39e281ba6702026693b8 Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Sun, 10 May 2026 12:58:03 +0300 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E5=8D=95=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/sections/ticket/index.tsx | 41 ++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/apps/admin/src/sections/ticket/index.tsx b/apps/admin/src/sections/ticket/index.tsx index b36436c..d277928 100644 --- a/apps/admin/src/sections/ticket/index.tsx +++ b/apps/admin/src/sections/ticket/index.tsx @@ -191,6 +191,43 @@ export default function Page() { } />, + { + setLoadingId(row.id); + try { + await updateTicketStatus({ + id: row.id, + status: 4, + }); + toast.success("已关闭工单"); + ref.current?.refresh(); + } catch (e) { + console.error("Cancel payout failed", e); + toast.error("关闭工单失败"); + } + setLoadingId(null); + }} + title="确认关闭订单?" + trigger={ + + } + />, ]; } return []; @@ -238,13 +275,13 @@ export default function Page() { withdrawal { const win = window.open(); win?.document.write(``); }} src={content} + width={40} /> ); }