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}>