From b18d293268cae9bdc5437dc5f764f7dd6afd173b Mon Sep 17 00:00:00 2001
From: mmc <1556375442@qq.com>
Date: Fri, 15 May 2026 16:23:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E5=92=8C?=
=?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/SystemSetting/UserPage.tsx | 4 +-
src/pages/Profile.tsx | 42 +++++++++++++++-
src/pages/WorkOrder.tsx | 60 +++++++++++++++++++++--
3 files changed, 99 insertions(+), 7 deletions(-)
diff --git a/src/components/SystemSetting/UserPage.tsx b/src/components/SystemSetting/UserPage.tsx
index c053057..96f97df 100644
--- a/src/components/SystemSetting/UserPage.tsx
+++ b/src/components/SystemSetting/UserPage.tsx
@@ -523,8 +523,8 @@ export default function UserRolePage() {
title={{r.roleName}}
description={
- 权限:{r.roleKey}
- 等级:{r.roleLevel || '-'}
+ 权限:{r.roleKey}
+ 等级:{r.roleLevel || '-'}
{/*{r.roleKey == "admin1" && 超级管理员}*/}
}
diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx
index 95bf52f..73272fc 100644
--- a/src/pages/Profile.tsx
+++ b/src/pages/Profile.tsx
@@ -13,6 +13,7 @@ import {
Divider,
Typography,
Space,
+ Radio,
} from 'antd';
import {
UserOutlined,
@@ -22,6 +23,8 @@ import {
MailOutlined,
SafetyOutlined,
EditOutlined,
+ ManOutlined,
+ WomanOutlined,
} from '@ant-design/icons';
import { useSelector } from 'react-redux';
import { RootState, useAppDispatch } from '../store';
@@ -59,7 +62,12 @@ const Profile: React.FC = () => {
const handleUpdateProfile = async (values: any) => {
setLoading(true);
try {
- const res: any = await updateUserProfile(values);
+ // 构建完整的个人信息对象,包含用户 ID 等必要字段
+ const updateData = {
+ ...profileData,
+ ...values,
+ };
+ const res: any = await updateUserProfile(updateData);
if (res.code === 200) {
message.success('修改成功');
const newUserInfo = { ...userInfo, ...values };
@@ -232,6 +240,17 @@ const Profile: React.FC = () => {
initialValues={profileData}
size="large"
>
+
+ }
+ disabled
+ style={{ borderRadius: 6 }}
+ />
+
+
{
/>
+
+
+ 男
+ 女
+
+
+
{
/>
+
+
+
+
} danger ghost block style={{ borderRadius: 8, height: 36, fontWeight: 600 }}>挂起
{
setDispatchModalVisible(false)} footer={null} width={550}>