添加招聘分类筛选功能
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user