建立生成器功能
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-07-23 12:30:28 +08:00
parent cd92dd4628
commit cd9a5b4c35
6 changed files with 257 additions and 49 deletions

View File

@@ -23,6 +23,8 @@ function AppUserList() {
const [areaEnum, setAreaEnum] = useState<Record<string, any>>({});
const [politicalEnum, setPoliticalEnum] = useState<Record<string, any>>({});
const [nationEnum, setNationEnum] = useState<Record<string, any>>({});
const [userTypeEnum, setUserTypeEnum] = useState<Record<string, any>>({});
const [workExperienceEnum, setWorkExperienceEnum] = useState<Record<string, any>>({});
/** 修改身份证 Modal 状态 */
const [idCardModalOpen, setIdCardModalOpen] = useState(false);
@@ -40,6 +42,8 @@ function AppUserList() {
getDictValueEnum('area', true, true).then(setAreaEnum);
getDictValueEnum('political_affiliation', true, true).then(setPoliticalEnum);
getDictValueEnum('nation', false, true).then(setNationEnum);
getDictValueEnum('user_type', false, true).then(setUserTypeEnum);
getDictValueEnum('experience', false, true).then(setWorkExperienceEnum);
}, []);
const columns: ProColumns<API.CmsAppUser.AppUserRow>[] = [
@@ -80,7 +84,14 @@ function AppUserList() {
valueType: 'text',
align: 'center',
width: 70,
hideInSearch: true,
},
{
title: '出生年月',
dataIndex: 'birthDate',
valueType: 'date',
align: 'center',
width: 120,
fieldProps: { format: 'YYYY-MM-DD' },
},
{
title: '学历',
@@ -91,6 +102,21 @@ function AppUserList() {
valueEnum: educationEnum,
render: (_, record) => <DictTag enums={educationEnum} value={record.education} />,
},
{
title: '毕业院校',
dataIndex: 'schoolName',
valueType: 'text',
align: 'center',
width: 160,
},
{
title: '毕业时间',
dataIndex: 'endTime',
valueType: 'date',
align: 'center',
width: 120,
fieldProps: { format: 'YYYY-MM-DD' },
},
{
title: '地区',
dataIndex: 'area',
@@ -118,6 +144,24 @@ function AppUserList() {
valueEnum: nationEnum,
render: (_, record) => <DictTag enums={nationEnum} value={record.nation ?? undefined} />,
},
{
title: '个人标签',
dataIndex: 'userType',
valueType: 'select',
align: 'center',
width: 110,
valueEnum: userTypeEnum,
render: (_, record) => <DictTag enums={userTypeEnum} value={record.userType ?? undefined} />,
},
{
title: '工作经验',
dataIndex: 'workExperience',
valueType: 'select',
align: 'center',
width: 110,
valueEnum: workExperienceEnum,
render: (_, record) => <DictTag enums={workExperienceEnum} value={record.workExperience ?? undefined} />,
},
{
title: '期望薪资',
dataIndex: 'salaryRange',
@@ -267,7 +311,7 @@ function AppUserList() {
success: true,
}));
}}
search={{ labelWidth: 'auto' }}
search={{ labelWidth: 'auto', defaultCollapsed: false }}
scroll={{ x: 'max-content' }}
pagination={{ defaultPageSize: 10, showSizeChanger: true }}
headerTitle="个人用户管理"