diff --git a/src/api/jobs.ts b/src/api/jobs.ts index 50f5726..a3c38aa 100644 --- a/src/api/jobs.ts +++ b/src/api/jobs.ts @@ -101,7 +101,8 @@ export interface JobListParams { recruitCategory?: number /** 排除岗位ID列表(用于推荐时排除已推荐过的) */ excludeJobIds?: number[] - + /** 公司类型列表(上市企业、独角兽、国企等,可多选) */ + companyTypes?: string[] } // ==================== 求职意向 ==================== diff --git a/src/components/ResumeExpInlineEdit.vue b/src/components/ResumeExpInlineEdit.vue index 35148d6..118da46 100644 --- a/src/components/ResumeExpInlineEdit.vue +++ b/src/components/ResumeExpInlineEdit.vue @@ -7,8 +7,8 @@
-
-
+
+
@@ -180,6 +180,17 @@ function initForm() { aiPolishResult.value = '' if (props.initialData) { form.value = { ...props.initialData } + // 教育经历:确保 degree 和 studyType 为整数(兼容旧数据可能是中文字符串) + if (props.moduleType === 'education') { + const degreeMap: Record = { '大专': 1, '本科': 2, '硕士': 3, '博士': 4 } + const studyTypeMap: Record = { '全日制': 0, '非全日制': 1 } + if (typeof form.value.degree === 'string') { + form.value.degree = degreeMap[form.value.degree] ?? (Number(form.value.degree) || null) + } + if (typeof form.value.studyType === 'string') { + form.value.studyType = studyTypeMap[form.value.studyType] ?? (Number(form.value.studyType) || null) + } + } // 将 description 数组拼接为文本 if (props.initialData.description?.length) { descriptionText.value = props.initialData.description.map((d: DescriptionParagraph) => d.text).join('\n') diff --git a/src/views/Jobs.vue b/src/views/Jobs.vue index 110ed89..494ee50 100644 --- a/src/views/Jobs.vue +++ b/src/views/Jobs.vue @@ -63,9 +63,9 @@ :displayStyle="selectorDisplayStyle" @update:industryIds="onIndustryChange" /> - +
@@ -73,7 +73,7 @@ - +
+ +
+ {{ filter.selected || filter.label }} + + + + +
+
+ {{ option.label }} +
+
+
+