Merge branch 'main' of 123.60.55.248:Duguay/teach_sys
This commit is contained in:
@@ -22,7 +22,7 @@ export const projectUnitsMapping = {
|
|||||||
compoundUnits: ["商业设计基础"],
|
compoundUnits: ["商业设计基础"],
|
||||||
verticalUnits: ["商业空间与文创产品设计", "文旅衍生文创产品设计"]
|
verticalUnits: ["商业空间与文创产品设计", "文旅衍生文创产品设计"]
|
||||||
},
|
},
|
||||||
"'长安幻夜'文创IP运营与品牌建设项目": {
|
[`"长安幻夜"文创IP运营与品牌建设项目`]: {
|
||||||
compoundUnits: ["商业设计基础"],
|
compoundUnits: ["商业设计基础"],
|
||||||
verticalUnits: ["品牌招商展全案策划与招商运营", "商业空间与文创产品设计", "文旅衍生文创产品设计"]
|
verticalUnits: ["品牌招商展全案策划与招商运营", "商业空间与文创产品设计", "文旅衍生文创产品设计"]
|
||||||
},
|
},
|
||||||
@@ -62,7 +62,7 @@ export const projectUnitsMapping = {
|
|||||||
compoundUnits: ["活动策划基础"],
|
compoundUnits: ["活动策划基础"],
|
||||||
verticalUnits: ["露营地规划与经营管理", "营销传播与品牌推广"]
|
verticalUnits: ["露营地规划与经营管理", "营销传播与品牌推广"]
|
||||||
},
|
},
|
||||||
"'水墨苏乡'文化创意产品设计与量产落地项目": {
|
[`"水墨苏乡"文化创意产品设计与量产落地项目`]: {
|
||||||
compoundUnits: ["商业设计基础"],
|
compoundUnits: ["商业设计基础"],
|
||||||
verticalUnits: ["品牌招商展全案策划与招商运营", "商业空间与文创产品设计", "文旅衍生文创产品设计"]
|
verticalUnits: ["品牌招商展全案策划与招商运营", "商业空间与文创产品设计", "文旅衍生文创产品设计"]
|
||||||
},
|
},
|
||||||
@@ -87,36 +87,38 @@ export const projectUnitsMapping = {
|
|||||||
// 获取项目的复合能力课程
|
// 获取项目的复合能力课程
|
||||||
export const getCompoundUnits = (projectTitle) => {
|
export const getCompoundUnits = (projectTitle) => {
|
||||||
if (!projectTitle) return [];
|
if (!projectTitle) return [];
|
||||||
|
|
||||||
// 直接匹配
|
// 直接匹配
|
||||||
if (projectUnitsMapping[projectTitle]) {
|
if (projectUnitsMapping[projectTitle]) {
|
||||||
return projectUnitsMapping[projectTitle].compoundUnits || [];
|
return projectUnitsMapping[projectTitle].compoundUnits || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 尝试去除后缀后匹配(如"详情")
|
// 尝试去除后缀后匹配(如"详情")
|
||||||
const cleanTitle = projectTitle.replace(/详情$/, '');
|
const cleanTitle = projectTitle.replace(/详情$/, '');
|
||||||
|
|
||||||
if (projectUnitsMapping[cleanTitle]) {
|
if (projectUnitsMapping[cleanTitle]) {
|
||||||
return projectUnitsMapping[cleanTitle].compoundUnits || [];
|
return projectUnitsMapping[cleanTitle].compoundUnits || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [];
|
return [];
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取项目的垂直能力课程
|
// 获取项目的垂直能力课程
|
||||||
export const getVerticalUnits = (projectTitle) => {
|
export const getVerticalUnits = (projectTitle) => {
|
||||||
if (!projectTitle) return [];
|
if (!projectTitle) return [];
|
||||||
|
|
||||||
// 直接匹配
|
// 直接匹配
|
||||||
if (projectUnitsMapping[projectTitle]) {
|
if (projectUnitsMapping[projectTitle]) {
|
||||||
return projectUnitsMapping[projectTitle].verticalUnits || [];
|
return projectUnitsMapping[projectTitle].verticalUnits || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 尝试去除后缀后匹配(如"详情")
|
// 尝试去除后缀后匹配(如"详情")
|
||||||
const cleanTitle = projectTitle.replace(/详情$/, '');
|
const cleanTitle = projectTitle.replace(/详情$/, '');
|
||||||
|
|
||||||
if (projectUnitsMapping[cleanTitle]) {
|
if (projectUnitsMapping[cleanTitle]) {
|
||||||
return projectUnitsMapping[cleanTitle].verticalUnits || [];
|
return projectUnitsMapping[cleanTitle].verticalUnits || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [];
|
return [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
.job-info-modal-content {
|
.job-info-modal-content {
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
width: 720px;
|
max-width: 860px;
|
||||||
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -138,10 +138,38 @@ export default ({ visible, onClose, data, directToResume = false, hideDeliverBut
|
|||||||
template.position === item.position
|
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相同的格式
|
// 构造简历数据,使用与ResumeInterviewPage相同的格式
|
||||||
const resumeData = {
|
const resumeData = {
|
||||||
title: item.position, // 使用岗位名称作为标题
|
title: item.position, // 使用岗位名称作为标题
|
||||||
content: positionTemplate?.content || null, // 这里包含原始版和修改版数据
|
content: positionTemplate?.content || null, // 这里包含原始版和修改版数据
|
||||||
|
selectedTemplate: positionTemplate, // 添加selectedTemplate字段
|
||||||
studentResume: pageData.myResume
|
studentResume: pageData.myResume
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user