From db46766d4842f279404ebba6cdc705d7daf829b2 Mon Sep 17 00:00:00 2001 From: xuxin <15279969124@163.com> Date: Fri, 17 Jul 2026 16:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B5=84=E6=96=99=E6=95=99?= =?UTF-8?q?=E8=82=B2=E7=BB=8F=E5=8E=86=E5=AD=A6=E5=8E=86=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BF=9D=E5=AD=98bug=EF=BC=8C=E5=92=8C=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E4=B8=BA=E5=88=97=E8=A1=A8=E9=A1=B5=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=B7=BB=E5=8A=A0=E5=85=AC=E5=8F=B8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jobs.ts | 3 +- src/components/ResumeExpInlineEdit.vue | 15 ++- src/views/Jobs.vue | 127 ++++++++++++++++++++++++- src/views/ResumeDetail.vue | 3 +- 4 files changed, 141 insertions(+), 7 deletions(-) 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 }} +
+
+
+