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} /> ); }