From b50b084100dc9bacc5353db7c99b2741ebd3e60e Mon Sep 17 00:00:00 2001 From: shunli Date: Fri, 6 Mar 2026 11:18:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20[UI8]=20=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=BC=82=E5=B8=B8=E5=8D=A1=E7=89=87=E8=BE=B9?= =?UTF-8?q?=E8=B7=9D=E5=B9=B6=E7=BB=9F=E4=B8=80=E5=89=A9=E4=BD=99=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E8=A1=A8=E5=8D=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/common/EmptyStateCard.tsx | 2 +- client/src/components/ui/input.tsx | 2 +- client/src/pages/ApprovalRulesPage.tsx | 12 ++++++------ client/src/pages/DepartmentsPage.tsx | 2 +- client/src/pages/ForbiddenPage.tsx | 2 +- client/src/pages/NotFoundPage.tsx | 2 +- client/src/pages/ReimbursementsPage.tsx | 2 +- client/src/pages/UserManagementPage.tsx | 14 +++++++------- client/src/pages/WorkflowTaskDetailPage.tsx | 2 +- .../reimbursement-detail/ReimbursementActions.tsx | 2 +- .../ReimbursementItemEditor.tsx | 2 +- .../src/pages/user-management/CreateUserDialog.tsx | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/client/src/components/common/EmptyStateCard.tsx b/client/src/components/common/EmptyStateCard.tsx index 6441d0f5..6663fa55 100644 --- a/client/src/components/common/EmptyStateCard.tsx +++ b/client/src/components/common/EmptyStateCard.tsx @@ -8,7 +8,7 @@ type EmptyStateCardProps = { export function EmptyStateCard({ title, description, footer }: EmptyStateCardProps) { return ( -
+

{title}

{description}

{footer ?
{footer}
: null} diff --git a/client/src/components/ui/input.tsx b/client/src/components/ui/input.tsx index 727c5283..eb2961b0 100644 --- a/client/src/components/ui/input.tsx +++ b/client/src/components/ui/input.tsx @@ -9,7 +9,7 @@ export const Input = React.forwardRef( setLevel1Role(event.target.value as ApprovalRoleCode)} > @@ -225,7 +225,7 @@ export function ApprovalRulesPage() { setLevel3Role(event.target.value as ApprovalRoleCode)} > @@ -429,7 +429,7 @@ export function ApprovalRulesPage() { setLevel2Role(event.target.value as ApprovalRoleCode)} > @@ -464,7 +464,7 @@ export function ApprovalRulesPage() { setParentId(event.target.value)} > diff --git a/client/src/pages/ForbiddenPage.tsx b/client/src/pages/ForbiddenPage.tsx index c52884c1..e2cc02a8 100644 --- a/client/src/pages/ForbiddenPage.tsx +++ b/client/src/pages/ForbiddenPage.tsx @@ -3,7 +3,7 @@ import { Link } from "react-router-dom"; export function ForbiddenPage() { return (
-
+

403

无权限访问

diff --git a/client/src/pages/NotFoundPage.tsx b/client/src/pages/NotFoundPage.tsx index e51ab909..e60991e9 100644 --- a/client/src/pages/NotFoundPage.tsx +++ b/client/src/pages/NotFoundPage.tsx @@ -3,7 +3,7 @@ import { Link } from "react-router-dom"; export function NotFoundPage() { return (

-
+

404

页面不存在

请检查地址,或返回工作台首页继续操作。

diff --git a/client/src/pages/ReimbursementsPage.tsx b/client/src/pages/ReimbursementsPage.tsx index b97893ca..496ab926 100644 --- a/client/src/pages/ReimbursementsPage.tsx +++ b/client/src/pages/ReimbursementsPage.tsx @@ -95,7 +95,7 @@ export function ReimbursementsPage() {
{showProxyOwnerSelector ? ( { @@ -197,8 +197,8 @@ export function UserManagementPage() { }} > - - + +
@@ -207,10 +207,10 @@ export function UserManagementPage() {

{isApiError(listQuery.error) ? `${listQuery.error.code}: ${mapApiErrorMessage( - listQuery.error.code, - listQuery.error.details, - listQuery.error.message, - )}` + listQuery.error.code, + listQuery.error.details, + listQuery.error.message, + )}` : "加载用户列表失败"}

) : null} diff --git a/client/src/pages/WorkflowTaskDetailPage.tsx b/client/src/pages/WorkflowTaskDetailPage.tsx index 0bfe716a..144422b9 100644 --- a/client/src/pages/WorkflowTaskDetailPage.tsx +++ b/client/src/pages/WorkflowTaskDetailPage.tsx @@ -219,7 +219,7 @@ export function WorkflowTaskDetailPage() {

转审

setPaymentChannel(event.target.value as PaymentChannel) diff --git a/client/src/pages/reimbursement-detail/ReimbursementItemEditor.tsx b/client/src/pages/reimbursement-detail/ReimbursementItemEditor.tsx index 0a745184..3dfe3a3f 100644 --- a/client/src/pages/reimbursement-detail/ReimbursementItemEditor.tsx +++ b/client/src/pages/reimbursement-detail/ReimbursementItemEditor.tsx @@ -78,7 +78,7 @@ export function ReimbursementItemEditor({ 费用类型 setDirectManagerId(event.target.value)} >