2025-09-08 12:59:17 +08:00
|
|
|
|
import { useState, useEffect } from "react";
|
2025-09-03 13:26:13 +08:00
|
|
|
|
import { Radio } from "@arco-design/web-react";
|
|
|
|
|
|
import Modal from "@/components/Modal";
|
2025-09-08 12:59:17 +08:00
|
|
|
|
import ReactMarkdown from 'react-markdown';
|
|
|
|
|
|
import remarkGfm from 'remark-gfm';
|
2025-09-03 13:26:13 +08:00
|
|
|
|
import "./index.css";
|
|
|
|
|
|
|
2025-09-08 12:59:17 +08:00
|
|
|
|
export default ({ visible, onClose, data, initialVersion = "2" }) => {
|
|
|
|
|
|
const [version, setVersion] = useState(initialVersion); // 使用传入的初始版本
|
|
|
|
|
|
|
|
|
|
|
|
// 响应initialVersion变化
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
setVersion(initialVersion);
|
|
|
|
|
|
}, [initialVersion]);
|
|
|
|
|
|
|
|
|
|
|
|
const onRadioChange = (value, e) => {
|
|
|
|
|
|
e?.stopPropagation();
|
|
|
|
|
|
setVersion(value);
|
2025-09-03 13:26:13 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleCloseModal = () => {
|
|
|
|
|
|
onClose();
|
|
|
|
|
|
};
|
2025-09-08 12:59:17 +08:00
|
|
|
|
|
|
|
|
|
|
// 判断是否应该使用markdown渲染(有真实修改版的岗位)
|
|
|
|
|
|
const shouldUseMarkdown = (positionTitle) => {
|
|
|
|
|
|
const markdownPositions = [
|
|
|
|
|
|
"会展策划师",
|
|
|
|
|
|
"会展讲解员",
|
|
|
|
|
|
"活动执行",
|
|
|
|
|
|
"活动策划师",
|
|
|
|
|
|
"漫展策划师",
|
|
|
|
|
|
"会展执行助理",
|
|
|
|
|
|
"旅游规划师",
|
|
|
|
|
|
"旅游计调专员",
|
|
|
|
|
|
"景区运营专员",
|
|
|
|
|
|
"文旅运营总监助理"
|
|
|
|
|
|
];
|
|
|
|
|
|
return markdownPositions.includes(positionTitle);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Markdown解析器 - 解析简历内容
|
|
|
|
|
|
const parseResumeMarkdown = (markdownContent) => {
|
|
|
|
|
|
if (!markdownContent || typeof markdownContent !== 'string') {
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
2025-09-03 13:26:13 +08:00
|
|
|
|
|
2025-09-08 12:59:17 +08:00
|
|
|
|
const result = {
|
|
|
|
|
|
personalInfo: { name: "岗位名称" },
|
|
|
|
|
|
education: [{
|
|
|
|
|
|
school: '苏州信息职业技术学院',
|
|
|
|
|
|
major: '旅游管理',
|
|
|
|
|
|
period: '2020.9-2023.6'
|
|
|
|
|
|
}],
|
|
|
|
|
|
projects: [],
|
|
|
|
|
|
skills: { core: [], additional: [] },
|
|
|
|
|
|
personalSummary: []
|
|
|
|
|
|
};
|
2025-09-03 13:26:13 +08:00
|
|
|
|
|
2025-09-08 12:59:17 +08:00
|
|
|
|
// 提取岗位名称
|
|
|
|
|
|
const positionMatch = markdownContent.match(/# 对应岗位:(.+)/);
|
|
|
|
|
|
if (positionMatch) {
|
|
|
|
|
|
result.personalInfo.name = positionMatch[1].trim();
|
|
|
|
|
|
}
|
2025-09-03 13:26:13 +08:00
|
|
|
|
|
2025-09-08 12:59:17 +08:00
|
|
|
|
// 提取项目经历
|
|
|
|
|
|
const projectSectionMatch = markdownContent.match(/# 一、项目经历\s+([\s\S]*?)(?=# 二、专业技能|$)/);
|
|
|
|
|
|
if (projectSectionMatch) {
|
|
|
|
|
|
const projectContent = projectSectionMatch[1];
|
|
|
|
|
|
|
|
|
|
|
|
// 提取项目名称
|
|
|
|
|
|
const projectNameMatch = projectContent.match(/### (一)项目名称:(.+)/);
|
|
|
|
|
|
const roleMatch = projectContent.match(/### (二)实习岗位:(.+)/);
|
|
|
|
|
|
const timeMatch = projectContent.match(/### (三)实习时间:(.+)/);
|
|
|
|
|
|
const companyMatch = projectContent.match(/### (四)实习单位:(.+)/);
|
|
|
|
|
|
|
|
|
|
|
|
// 提取岗位职责内容 - 从"### (五)岗位职责:"开始到下一个section
|
|
|
|
|
|
const responsibilityMatch = projectContent.match(/### (五)岗位职责:\s+([\s\S]*?)$/);
|
|
|
|
|
|
|
|
|
|
|
|
if (projectNameMatch) {
|
|
|
|
|
|
result.projects = [{
|
|
|
|
|
|
name: projectNameMatch[1].trim(),
|
|
|
|
|
|
role: roleMatch ? roleMatch[1].trim() : "参与者",
|
|
|
|
|
|
period: timeMatch ? timeMatch[1].trim() : "",
|
|
|
|
|
|
company: companyMatch ? companyMatch[1].trim() : "",
|
|
|
|
|
|
description: responsibilityMatch ? responsibilityMatch[1].trim() : ""
|
|
|
|
|
|
}];
|
|
|
|
|
|
}
|
2025-09-07 23:09:48 +08:00
|
|
|
|
}
|
2025-09-08 12:59:17 +08:00
|
|
|
|
|
|
|
|
|
|
// 提取专业技能
|
|
|
|
|
|
const skillsSectionMatch = markdownContent.match(/# 二、专业技能\s+([\s\S]*?)$/);
|
|
|
|
|
|
if (skillsSectionMatch) {
|
|
|
|
|
|
const skillsContent = skillsSectionMatch[1];
|
|
|
|
|
|
|
|
|
|
|
|
// 提取核心能力
|
|
|
|
|
|
const coreSkillsMatch = skillsContent.match(/### (一)核心能力\s+([\s\S]*?)(?=### (二)复合能力|$)/);
|
|
|
|
|
|
if (coreSkillsMatch) {
|
|
|
|
|
|
const coreSkills = coreSkillsMatch[1]
|
|
|
|
|
|
.split(/\d+\.\s+/)
|
|
|
|
|
|
.filter(skill => skill.trim())
|
|
|
|
|
|
.map(skill => skill.trim().replace(/;\s*$/, ''));
|
|
|
|
|
|
result.skills.core = coreSkills;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 提取复合能力
|
|
|
|
|
|
const additionalSkillsMatch = skillsContent.match(/### (二)复合能力\s+([\s\S]*?)$/);
|
|
|
|
|
|
if (additionalSkillsMatch) {
|
|
|
|
|
|
const additionalSkills = additionalSkillsMatch[1]
|
|
|
|
|
|
.split(/\d+\.\s+/)
|
|
|
|
|
|
.filter(skill => skill.trim())
|
|
|
|
|
|
.map(skill => skill.trim().replace(/。\s*$/, ''));
|
|
|
|
|
|
result.skills.additional = additionalSkills;
|
2025-09-03 13:26:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-09-08 12:59:17 +08:00
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 渲染markdown分块内容
|
|
|
|
|
|
const renderMarkdownSections = (markdownContent) => {
|
|
|
|
|
|
if (!markdownContent) return null;
|
|
|
|
|
|
|
|
|
|
|
|
const sections = [];
|
|
|
|
|
|
|
|
|
|
|
|
// 首先添加教育经历板块
|
|
|
|
|
|
sections.push(
|
|
|
|
|
|
<li key="education" className="resume-info-moda-item">
|
|
|
|
|
|
<p className="resume-info-moda-item-title">教育经历</p>
|
|
|
|
|
|
<ul className="educational-experience-list">
|
|
|
|
|
|
<li className="educational-experience-list-item">
|
|
|
|
|
|
<p className="school-name">
|
|
|
|
|
|
苏州信息职业技术学院 - 旅游管理
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p className="study-time">2020.9-2023.6</p>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// 按H1标题分割markdown内容(# 开头的行)
|
|
|
|
|
|
const markdownSections = markdownContent.split(/^# /gm).filter(section => section.trim());
|
|
|
|
|
|
|
|
|
|
|
|
// 添加markdown渲染的section
|
|
|
|
|
|
markdownSections.forEach((section, index) => {
|
|
|
|
|
|
// 为每个section添加回# 前缀(除了第一个如果不是以#开头)
|
|
|
|
|
|
const fullSection = section.startsWith('#') ? section : `# ${section}`;
|
|
|
|
|
|
|
|
|
|
|
|
// 过滤掉"对应岗位"板块
|
|
|
|
|
|
if (fullSection.includes('对应岗位:') || fullSection.includes('对应岗位:')) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sections.push(
|
|
|
|
|
|
<li key={`markdown-${index}`} className="resume-info-moda-item">
|
|
|
|
|
|
<ReactMarkdown
|
|
|
|
|
|
remarkPlugins={[remarkGfm]}
|
|
|
|
|
|
components={{
|
|
|
|
|
|
// 标题样式
|
|
|
|
|
|
h1: ({node, ...props}) => <p className="resume-info-moda-item-title" {...props} />,
|
|
|
|
|
|
h2: ({node, ...props}) => <p className="resume-info-moda-item-title" style={{
|
|
|
|
|
|
fontSize: '18px',
|
|
|
|
|
|
marginTop: '15px'
|
|
|
|
|
|
}} {...props} />,
|
|
|
|
|
|
h3: ({node, ...props}) => <p style={{
|
|
|
|
|
|
fontSize: '16px',
|
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
|
color: '#4e5969',
|
|
|
|
|
|
marginBottom: '10px',
|
|
|
|
|
|
marginTop: '15px',
|
|
|
|
|
|
textAlign: 'left'
|
|
|
|
|
|
}} {...props} />,
|
|
|
|
|
|
// 段落样式
|
|
|
|
|
|
p: ({node, ...props}) => <p style={{
|
|
|
|
|
|
fontSize: '14px',
|
|
|
|
|
|
lineHeight: '1.6',
|
|
|
|
|
|
color: '#1d2129',
|
|
|
|
|
|
marginBottom: '10px',
|
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
|
width: '100%',
|
|
|
|
|
|
wordWrap: 'break-word'
|
|
|
|
|
|
}} {...props} />,
|
|
|
|
|
|
// 列表样式
|
|
|
|
|
|
ol: ({node, ...props}) => <ol style={{
|
|
|
|
|
|
paddingLeft: '20px',
|
|
|
|
|
|
marginBottom: '15px'
|
|
|
|
|
|
}} {...props} />,
|
|
|
|
|
|
ul: ({node, ...props}) => <ul style={{
|
|
|
|
|
|
paddingLeft: '20px',
|
|
|
|
|
|
marginBottom: '15px'
|
|
|
|
|
|
}} {...props} />,
|
|
|
|
|
|
li: ({node, ...props}) => <li style={{
|
|
|
|
|
|
fontSize: '14px',
|
|
|
|
|
|
lineHeight: '1.6',
|
|
|
|
|
|
color: '#1d2129',
|
|
|
|
|
|
marginBottom: '8px',
|
|
|
|
|
|
textAlign: 'left'
|
|
|
|
|
|
}} {...props} />,
|
|
|
|
|
|
// 加粗和删除线样式
|
|
|
|
|
|
strong: ({node, ...props}) => <strong style={{color: '#ff4d4f', fontWeight: 'bold'}} {...props} />,
|
|
|
|
|
|
del: ({node, ...props}) => <del style={{textDecoration: 'line-through', color: '#999'}} {...props} />
|
|
|
|
|
|
}}
|
|
|
|
|
|
>
|
|
|
|
|
|
{fullSection}
|
|
|
|
|
|
</ReactMarkdown>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
);
|
|
|
|
|
|
});
|
2025-09-03 13:26:13 +08:00
|
|
|
|
|
2025-09-08 12:59:17 +08:00
|
|
|
|
return sections;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 获取简历数据 - 支持新的数据结构
|
|
|
|
|
|
let resumeContent = {};
|
|
|
|
|
|
|
|
|
|
|
|
if (data?.content) {
|
|
|
|
|
|
// 新的数据结构 - 来自resume-interview页面
|
|
|
|
|
|
if (data.content.original && data.content.modified) {
|
|
|
|
|
|
const selectedContent = version === "1" ? data.content.original : data.content.modified;
|
|
|
|
|
|
|
|
|
|
|
|
// 如果是markdown格式的字符串,使用解析器
|
|
|
|
|
|
if (typeof selectedContent === 'string') {
|
|
|
|
|
|
resumeContent = parseResumeMarkdown(selectedContent);
|
|
|
|
|
|
} else if (selectedContent.personalInfo) {
|
|
|
|
|
|
// 如果已经是结构化数据
|
|
|
|
|
|
resumeContent = selectedContent;
|
|
|
|
|
|
}
|
|
|
|
|
|
} else if (data.content.personalInfo) {
|
|
|
|
|
|
// 兼容旧的数据结构(单一版本)
|
|
|
|
|
|
resumeContent = data.content;
|
|
|
|
|
|
} else if (typeof data.content === 'string') {
|
|
|
|
|
|
// 如果content直接是markdown字符串
|
|
|
|
|
|
resumeContent = parseResumeMarkdown(data.content);
|
2025-09-07 23:09:48 +08:00
|
|
|
|
}
|
2025-09-08 12:59:17 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
// 旧的数据结构 - 兼容现有的company jobs页面
|
|
|
|
|
|
const currentTemplate = data?.selectedTemplate;
|
|
|
|
|
|
const studentInfo = currentTemplate?.studentInfo;
|
2025-09-07 23:09:48 +08:00
|
|
|
|
|
2025-09-08 12:59:17 +08:00
|
|
|
|
// 检查是否是来自resume-interview页面的数据 (有content和personal_summary字段)
|
|
|
|
|
|
if (currentTemplate && currentTemplate.content && currentTemplate.position) {
|
|
|
|
|
|
// 来自resume-interview页面的新数据结构
|
|
|
|
|
|
const parsedContent = parseResumeMarkdown(currentTemplate.content);
|
|
|
|
|
|
if (parsedContent) {
|
|
|
|
|
|
resumeContent = parsedContent;
|
|
|
|
|
|
// 添加个人总结 - 检查多个可能的位置
|
|
|
|
|
|
if (currentTemplate.personal_summary) {
|
|
|
|
|
|
resumeContent.personalSummary = [currentTemplate.personal_summary];
|
|
|
|
|
|
} else if (currentTemplate.studentInfo?.personalSummary) {
|
|
|
|
|
|
resumeContent.personalSummary = [currentTemplate.studentInfo.personalSummary];
|
|
|
|
|
|
} else if (currentTemplate.studentInfo?.personal_summary) {
|
|
|
|
|
|
resumeContent.personalSummary = [currentTemplate.studentInfo.personal_summary];
|
|
|
|
|
|
}
|
|
|
|
|
|
// 更新岗位名称
|
|
|
|
|
|
resumeContent.personalInfo.name = currentTemplate.position;
|
|
|
|
|
|
}
|
|
|
|
|
|
} else if (studentInfo) {
|
|
|
|
|
|
// 构造兼容格式
|
|
|
|
|
|
resumeContent = {
|
|
|
|
|
|
personalInfo: { name: currentTemplate?.position || "岗位名称" },
|
|
|
|
|
|
education: [{
|
|
|
|
|
|
school: studentInfo.education?.university || '苏州信息职业技术学院',
|
|
|
|
|
|
major: '旅游管理',
|
|
|
|
|
|
period: studentInfo.education?.period || '2020.9-2023.6'
|
|
|
|
|
|
}],
|
|
|
|
|
|
projects: [],
|
|
|
|
|
|
skills: { core: [], additional: [] },
|
|
|
|
|
|
personalSummary: [studentInfo.personalSummary || studentInfo.personal_summary || "具有扎实的专业基础和实践经验"]
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 处理项目经历
|
|
|
|
|
|
if (studentInfo.projectExperience) {
|
|
|
|
|
|
resumeContent.projects = [{
|
|
|
|
|
|
name: "项目经历",
|
|
|
|
|
|
role: "参与者",
|
|
|
|
|
|
period: "",
|
|
|
|
|
|
description: studentInfo.projectExperience
|
|
|
|
|
|
}];
|
|
|
|
|
|
} else if (studentInfo.project_experience) {
|
|
|
|
|
|
if (Array.isArray(studentInfo.project_experience)) {
|
|
|
|
|
|
resumeContent.projects = studentInfo.project_experience.map(proj => ({
|
|
|
|
|
|
name: proj.name || "实习项目",
|
|
|
|
|
|
role: proj.role || "参与者",
|
|
|
|
|
|
period: proj.period || "",
|
|
|
|
|
|
description: proj.description || "参与项目实施"
|
|
|
|
|
|
}));
|
|
|
|
|
|
} else if (typeof studentInfo.project_experience === 'object') {
|
|
|
|
|
|
const proj = studentInfo.project_experience;
|
|
|
|
|
|
resumeContent.projects = [{
|
|
|
|
|
|
name: proj.project_name || proj.position || "实习项目",
|
|
|
|
|
|
role: proj.role || "参与者",
|
|
|
|
|
|
period: proj.period || "",
|
|
|
|
|
|
description: proj.description || "参与项目实施"
|
|
|
|
|
|
}];
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 处理专业技能
|
|
|
|
|
|
if (studentInfo.skills) {
|
|
|
|
|
|
// 新格式:skills是字符串,转换为数组
|
|
|
|
|
|
const skillsArray = studentInfo.skills.split('\n').filter(s => s.trim());
|
|
|
|
|
|
const midPoint = Math.ceil(skillsArray.length / 2);
|
|
|
|
|
|
resumeContent.skills = {
|
|
|
|
|
|
core: skillsArray.slice(0, midPoint),
|
|
|
|
|
|
additional: skillsArray.slice(midPoint)
|
|
|
|
|
|
};
|
|
|
|
|
|
} else {
|
|
|
|
|
|
resumeContent.skills = {
|
|
|
|
|
|
core: studentInfo.core_skills || [],
|
|
|
|
|
|
additional: studentInfo.compound_skills || []
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 数据校验:确保必要字段存在
|
|
|
|
|
|
const isValidData = resumeContent && Object.keys(resumeContent).length > 0 && resumeContent.personalInfo;
|
|
|
|
|
|
|
|
|
|
|
|
// 调试日志 (可以移除)
|
|
|
|
|
|
// console.log('ResumeInfoModal Debug:', { data, resumeContent });
|
|
|
|
|
|
|
|
|
|
|
|
// 如果数据无效,提供默认值防止渲染异常
|
|
|
|
|
|
if (!isValidData) {
|
|
|
|
|
|
console.warn('ResumeInfoModal: Invalid resume data received', { data, resumeContent });
|
|
|
|
|
|
resumeContent = {
|
|
|
|
|
|
personalInfo: { name: '数据加载中...' },
|
|
|
|
|
|
education: [],
|
|
|
|
|
|
projects: [],
|
|
|
|
|
|
skills: { core: [], additional: [] }
|
|
|
|
|
|
};
|
2025-09-03 13:26:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
2025-09-08 12:59:17 +08:00
|
|
|
|
<>
|
|
|
|
|
|
<Modal visible={visible} onClose={handleCloseModal}>
|
|
|
|
|
|
<div className="resume-info-modal" onClick={(e) => e.stopPropagation()}>
|
|
|
|
|
|
<i className="close-icon" onClick={handleCloseModal} />
|
|
|
|
|
|
{data?.content?.original && data?.content?.modified && (
|
|
|
|
|
|
<div className="resume-info-modal-header">
|
|
|
|
|
|
<Radio.Group
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
name="position"
|
|
|
|
|
|
className="resume-info-modal-radio-group"
|
|
|
|
|
|
value={version}
|
|
|
|
|
|
onChange={onRadioChange}
|
|
|
|
|
|
onClick={(e) => e.stopPropagation()}
|
|
|
|
|
|
>
|
|
|
|
|
|
<Radio value="1">原始版</Radio>
|
|
|
|
|
|
<Radio value="2">个人修改版</Radio>
|
|
|
|
|
|
</Radio.Group>
|
|
|
|
|
|
</div>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
)}
|
2025-09-08 12:59:17 +08:00
|
|
|
|
<p className="resume-info-modal-title">
|
|
|
|
|
|
{data?.title || resumeContent.personalInfo?.name || "职位名称"}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
{/* 判断是否使用markdown渲染 */}
|
|
|
|
|
|
{data && shouldUseMarkdown(data?.title) && data?.content?.original && data?.content?.modified ? (
|
|
|
|
|
|
<ul className="resume-info-moda-list">
|
|
|
|
|
|
{renderMarkdownSections(version === "1" ? data.content.original : data.content.modified)}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
) : (
|
|
|
|
|
|
<ul className="resume-info-moda-list">
|
|
|
|
|
|
{/* 教育经历 */}
|
|
|
|
|
|
<li className="resume-info-moda-item">
|
|
|
|
|
|
<p className="resume-info-moda-item-title">教育经历</p>
|
|
|
|
|
|
<ul className="educational-experience-list">
|
|
|
|
|
|
{resumeContent.education?.map((edu, index) => (
|
|
|
|
|
|
<li key={index} className="educational-experience-list-item">
|
|
|
|
|
|
<p className="school-name">
|
|
|
|
|
|
{edu.school} - {edu.major}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p className="study-time">{edu.period}</p>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</li>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
{/* 项目经历 */}
|
2025-09-08 12:59:17 +08:00
|
|
|
|
<li className="resume-info-moda-item">
|
|
|
|
|
|
<p className="resume-info-moda-item-title">项目经历</p>
|
|
|
|
|
|
<ul className="project-experience-list">
|
|
|
|
|
|
{resumeContent.projects?.map((project, index) => (
|
|
|
|
|
|
<li key={index} className="project-experience-list-item">
|
|
|
|
|
|
<div className="project-info-wrapper">
|
|
|
|
|
|
<div className="project-info">
|
|
|
|
|
|
<p className="project-name">{project.name}</p>
|
|
|
|
|
|
<p className="project-company">
|
|
|
|
|
|
{project.company && `${project.company} - `}角色:{project.role}
|
|
|
|
|
|
</p>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
</div>
|
2025-09-08 12:59:17 +08:00
|
|
|
|
<p className="project-time">{project.period}</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p className="project-desc" style={{ whiteSpace: 'pre-wrap', lineHeight: '1.6' }}>
|
|
|
|
|
|
{project.description}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
{project.highlights && (
|
|
|
|
|
|
<ul className="job-responsibilities-list">
|
|
|
|
|
|
<p>主要成果</p>
|
|
|
|
|
|
{project.highlights.map((highlight, idx) => (
|
|
|
|
|
|
<li key={idx}>{highlight}</li>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</li>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
{/* 专业技能 */}
|
|
|
|
|
|
<li className="resume-info-moda-item">
|
|
|
|
|
|
<p className="resume-info-moda-item-title">专业技能</p>
|
2025-09-08 12:59:17 +08:00
|
|
|
|
<ul className="professional-skills-list">
|
|
|
|
|
|
{resumeContent.skills?.core && (
|
|
|
|
|
|
<li className="professional-skills-list-item">
|
|
|
|
|
|
<p className="skill-name">核心能力</p>
|
|
|
|
|
|
<div className="core-capabilities-list">
|
|
|
|
|
|
{resumeContent.skills.core.map((skill, index) => (
|
|
|
|
|
|
<p key={index} className="core-capabilities-list-item">
|
|
|
|
|
|
{index + 1}. {skill}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
)}
|
|
|
|
|
|
{resumeContent.skills?.additional && (
|
|
|
|
|
|
<li className="professional-skills-list-item">
|
|
|
|
|
|
<p className="skill-name">复合技能</p>
|
|
|
|
|
|
<div className="core-capabilities-list">
|
|
|
|
|
|
{resumeContent.skills.additional.map((skill, index) => (
|
|
|
|
|
|
<p key={index} className="core-capabilities-list-item">
|
|
|
|
|
|
{index + 1}. {skill}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</ul>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
{/* 个人总结 */}
|
2025-09-08 12:59:17 +08:00
|
|
|
|
{(resumeContent.personalSummary && resumeContent.personalSummary.length > 0) ||
|
|
|
|
|
|
(resumeContent.personalSummary && typeof resumeContent.personalSummary === 'string') ? (
|
2025-09-03 13:26:13 +08:00
|
|
|
|
<li className="resume-info-moda-item">
|
|
|
|
|
|
<p className="resume-info-moda-item-title">个人总结</p>
|
|
|
|
|
|
<div className="personal-summary-content">
|
2025-09-08 12:59:17 +08:00
|
|
|
|
{Array.isArray(resumeContent.personalSummary) ? (
|
|
|
|
|
|
<ul className="personal-summary-list">
|
|
|
|
|
|
{resumeContent.personalSummary.map((summary, index) => (
|
|
|
|
|
|
<li key={index} style={{ whiteSpace: 'pre-wrap', lineHeight: '1.6' }}>
|
|
|
|
|
|
{summary}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
) : (
|
|
|
|
|
|
<p style={{ whiteSpace: 'pre-wrap', lineHeight: '1.6' }}>
|
|
|
|
|
|
{resumeContent.personalSummary}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
)}
|
2025-09-03 13:26:13 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</li>
|
2025-09-08 12:59:17 +08:00
|
|
|
|
) : null}
|
|
|
|
|
|
{/* 对应课程单元 - 暂时保留静态展示,后续可根据需要动态化 */}
|
|
|
|
|
|
{resumeContent.courses && (
|
|
|
|
|
|
<li className="resume-info-moda-item">
|
|
|
|
|
|
<p className="resume-info-moda-item-title">对应课程单元</p>
|
|
|
|
|
|
<ul className="corresponding-course-units-list">
|
|
|
|
|
|
<li className="corresponding-course-units-list-item">
|
|
|
|
|
|
<div className="tag">相关课程</div>
|
|
|
|
|
|
<ul className="course-units-list">
|
|
|
|
|
|
{resumeContent.courses.map((course, index) => (
|
|
|
|
|
|
<li key={index} className="course-units-list-item">
|
|
|
|
|
|
{course}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</li>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
)}
|
|
|
|
|
|
</ul>
|
2025-09-08 12:59:17 +08:00
|
|
|
|
)}
|
2025-09-03 13:26:13 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</Modal>
|
2025-09-08 12:59:17 +08:00
|
|
|
|
</>
|
2025-09-03 13:26:13 +08:00
|
|
|
|
);
|
2025-09-08 12:59:17 +08:00
|
|
|
|
};
|