项目名称: 校园管理系统 - 招聘门户模块
开发时间: 2025-07-25
开发人员: weizzzz
系统状态: ✅ 前端完成,后端API待实现
基于南京大学招聘网站的设计理念,为校园管理系统开发一套完整的在线招聘门户,实现:
/recruitment-portal)文件位置: web/src/views/rs/recruitment-portal.vue
// 真实数据获取
const getJobList = async () => {
const response = await listJob(queryParams);
jobList.value = response.rows || [];
total.value = response.total || 0;
};
// 动态部门选项
const updateDepartmentOptions = () => {
const departments = [...new Set(jobList.value.map(job => job.department))];
departmentOptions.value = departments.map(dept => ({
label: dept, value: dept
}));
};
/recruitment-apply)文件位置: web/src/views/rs/recruitment-apply.vue
interface ApplicationForm {
jobId: string | number;
applicantName: string; // 姓名
gender: string; // 性别
contactPhone: string; // 联系电话
contactEmail: string; // 邮箱地址
age: number; // 年龄
education: string; // 教育背景
experience: string; // 工作经验
selfDescription: string; // 自我介绍
resumePath: string; // 简历路径
remark?: string; // 其他说明
}
文件位置: web/src/api/rs/application.ts
// 提交应聘申请
export function submitJobApplication(data: ApplicationForm) {
return request({
url: '/rs/application/submit',
method: 'post',
data: data
});
}
// 增加岗位浏览次数
export function incrementJobViewCount(jobId: string | number) {
return request({
url: `/rs/job/view/${jobId}`,
method: 'post'
});
}
文件位置: web/src/router/index.ts
// 招聘门户页面(独立路由,不需要权限)
{
path: '/recruitment-portal',
component: () => import('@/views/rs/recruitment-portal.vue'),
name: 'RecruitmentPortal',
meta: { title: '招聘公告', icon: 'job' }
},
{
path: '/recruitment-apply',
component: () => import('@/views/rs/recruitment-apply.vue'),
name: 'RecruitmentApply',
meta: { title: '在线应聘', icon: 'edit' }
}
graph LR
A[管理员在招聘管理中新增岗位] --> B[设置岗位状态为启用]
B --> C[岗位出现在招聘门户]
C --> D[应聘者可以查看和应聘]
graph TD
A[访问招聘门户] --> B[浏览岗位列表]
B --> C[查看岗位详情]
C --> D[点击立即应聘]
D --> E[填写应聘表单]
E --> F[上传简历文件]
F --> G[提交应聘申请]
G --> H[显示成功提示]
isActive=0的启用岗位// 桌面端
@media (min-width: 769px) {
.portal-container {
display: flex;
gap: 30px;
}
}
// 移动端
@media (max-width: 768px) {
.portal-container {
flex-direction: column;
padding: 20px 15px;
}
}
POST /rs/job/view/{jobId} # 增加岗位浏览次数
POST /rs/application/submit # 提交应聘申请
POST /common/upload # 文件上传接口
-- 应聘申请表
CREATE TABLE rs_application (
application_id BIGINT PRIMARY KEY,
job_id BIGINT NOT NULL,
applicant_name VARCHAR(50) NOT NULL,
gender VARCHAR(10),
contact_phone VARCHAR(20),
contact_email VARCHAR(100),
age INT,
education VARCHAR(50),
experience TEXT,
self_description TEXT,
resume_path VARCHAR(500),
status VARCHAR(20) DEFAULT 'pending',
apply_time DATETIME DEFAULT CURRENT_TIMESTAMP,
remark TEXT,
create_by BIGINT,
create_time DATETIME,
update_by BIGINT,
update_time DATETIME,
deleted INT DEFAULT 0
);
基于南京大学招聘网站的设计理念,确保专业性和用户体验
从岗位浏览到简历提交的完整闭环
使用最新的前端技术栈,确保代码质量和维护性
完美适配各种设备,提供一致的用户体验
http://localhost:81/recruitment-portalhttp://localhost:81/recruitment-apply?jobId=[岗位ID]docs/变更管理/code-adjust-record-2025-07-25-weizzzz-recruitment-portal-creation.mddocs/变更管理/code-adjust-record-2025-07-25-weizzzz-recruitment-portal-database-integration.mdweb/src/views/rs/recruitment-portal.vue - 招聘门户页面web/src/views/rs/recruitment-apply.vue - 在线应聘页面web/src/api/rs/application.ts - 应聘相关APIweb/src/router/index.ts - 路由配置开发总结: 招聘门户系统前端开发已完成,具备完整的岗位展示和在线应聘功能,设计专业、用户体验良好。后续需要完善后端API支持,即可投入使用。