添加招聘分类筛选功能

This commit is contained in:
2026-06-04 14:43:33 +08:00
parent ad9c448fc7
commit 0783ecb570
8 changed files with 41 additions and 17 deletions
+2 -5
View File
@@ -288,6 +288,7 @@
import { ref, reactive, computed, nextTick, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useStore } from 'vuex'
import { formatEmploymentType } from '@/stores/index'
import SideNav from '@/components/SideNav.vue'
import AiChat from '@/components/AiChat.vue'
import JobPageHeader from '@/components/JobPageHeader.vue'
@@ -311,11 +312,7 @@ const jobId = route.params.id as string
// ==================== 工具函数 ====================
/** 工作类型映射:数字 → 中文 */
function formatEmploymentType(type: number | undefined): string {
const map: Record<number, string> = { 0: '全职', 1: '兼职' }
return map[type ?? -1] ?? '未知'
}
/** 工作类型映射:使用全局统一的 formatEmploymentType */
/** 学历要求映射:数字 → 中文 */
function formatEducation(edu: number | undefined): string {