diff --git a/components/new-filter-page/new-filter-page.vue b/components/new-filter-page/new-filter-page.vue index c716cc4..037f503 100644 --- a/components/new-filter-page/new-filter-page.vue +++ b/components/new-filter-page/new-filter-page.vue @@ -95,6 +95,24 @@ + + + + + + + @@ -131,7 +149,8 @@ const tabs = [ { key: 'education', label: '学历要求' }, { key: 'experience', label: '工作经验' }, { key: 'scale', label: '公司规模' }, - { key: 'jobType', label: '岗位类型' } + { key: 'jobType', label: '岗位类型' }, + { key: 'area', label: '地区' } ]; // 当前激活的标签 @@ -142,7 +161,8 @@ const selectedValues = reactive({ education: '', experience: '', scale: '', - jobType: '' + jobType: '', + area: '' }); // 从字典获取的选项数据 @@ -150,6 +170,7 @@ const educationOptions = ref([]); const experienceOptions = ref([]); const scaleOptions = ref([]); const jobTypeOptions = ref([]); +const areaOptions = ref([]); // 初始化获取数据 onBeforeMount(() => { @@ -157,6 +178,7 @@ onBeforeMount(() => { experienceOptions.value = getTransformChildren('experience', '工作经验').options || []; scaleOptions.value = getTransformChildren('scale', '公司规模').options || []; jobTypeOptions.value = getJobTypeData(); + areaOptions.value = getTransformChildren('area', '地区').options || []; }); // 处理选项选择