Merge branch 'main' of 123.60.55.248:Duguay/teach_sys

This commit is contained in:
2025-09-14 15:09:32 +08:00
3 changed files with 40 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
.job-info-modal-content {
max-height: 80vh;
width: 720px;
max-width: 860px;
width: 100%;
position: relative;
display: flex;
flex-direction: column;

View File

@@ -138,10 +138,38 @@ export default ({ visible, onClose, data, directToResume = false, hideDeliverBut
template.position === item.position
);
// 添加调试日志
console.log('查找简历模板:', {
industryName: item.industry,
positionTitle: item.position,
templatesCount: industryTemplates.length,
templatePositions: industryTemplates.map(t => t.position),
templatesStructure: industryTemplates.slice(0, 2).map(t => ({
position: t.position,
hasContent: !!t.content,
hasStudentInfo: !!t.studentInfo,
keys: Object.keys(t)
}))
});
if (positionTemplate) {
console.log('找到的模板:', {
position: positionTemplate.position,
hasContent: !!positionTemplate.content,
hasContentOriginal: !!positionTemplate.content?.original,
hasStudentInfo: !!positionTemplate.studentInfo,
templateKeys: Object.keys(positionTemplate),
contentKeys: positionTemplate.content ? Object.keys(positionTemplate.content) : null
});
} else {
console.warn('未找到简历模板:', item.position);
}
// 构造简历数据使用与ResumeInterviewPage相同的格式
const resumeData = {
title: item.position, // 使用岗位名称作为标题
content: positionTemplate?.content || null, // 这里包含原始版和修改版数据
selectedTemplate: positionTemplate, // 添加selectedTemplate字段
studentResume: pageData.myResume
};