新会员页面
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* 求职意向名称解析工具
|
||||
* 从 store 中的分类树数据里,根据意向 ID/Code 查找对应名称
|
||||
*/
|
||||
import store from '@/stores'
|
||||
|
||||
/**
|
||||
* 获取意向岗位类型名称列表
|
||||
* 根据 jobIntention.categoryIds 在 jobCategories 树中查找名称
|
||||
*/
|
||||
export function getIntentionCategoryNames(): string[] {
|
||||
const ids = store.state.jobIntention.categoryIds || []
|
||||
if (ids.length === 0) return []
|
||||
const names: string[] = []
|
||||
for (const group of store.state.jobCategories) {
|
||||
for (const child of group.children || []) {
|
||||
for (const leaf of child.children || []) {
|
||||
if (ids.includes(Number(leaf.id))) names.push(leaf.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
return names
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取意向城市名称列表
|
||||
* 根据 jobIntention.regionCodes 在 regions 树中查找名称
|
||||
*/
|
||||
export function getIntentionRegionNames(): string[] {
|
||||
const codes = store.state.jobIntention.regionCodes || []
|
||||
if (codes.length === 0) return []
|
||||
const names: string[] = []
|
||||
for (const province of store.state.regions) {
|
||||
if (codes.includes(province.code)) { names.push(province.name); continue }
|
||||
for (const city of province.children || []) {
|
||||
if (codes.includes(city.code)) names.push(city.name)
|
||||
}
|
||||
}
|
||||
return names
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取意向行业名称列表
|
||||
* 根据 jobIntention.industryIds 在 industries 树中查找名称
|
||||
*/
|
||||
export function getIntentionIndustryNames(): string[] {
|
||||
const ids = store.state.jobIntention.industryIds || []
|
||||
if (ids.length === 0) return []
|
||||
const names: string[] = []
|
||||
for (const group of store.state.industries) {
|
||||
if (ids.includes(Number(group.id))) { names.push(group.name); continue }
|
||||
for (const child of group.children || []) {
|
||||
if (ids.includes(Number(child.id))) names.push(child.name)
|
||||
}
|
||||
}
|
||||
return names
|
||||
}
|
||||
@@ -54,13 +54,12 @@ export function exportResumeWord(element: HTMLElement, fileName: string) {
|
||||
.resume-html__divider { height: 1.5px; background: #000; margin-bottom: 9.6pt; }
|
||||
.resume-html__summary { font-size: 12pt; line-height: 1.7; margin-bottom: 4.8pt; }
|
||||
.resume-html__item { margin-bottom: 9.6pt; }
|
||||
.resume-html__item-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 3.6pt; }
|
||||
.resume-html__item-left { display: flex; flex-direction: column; gap: 1.2pt; }
|
||||
.resume-html__item-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2pt; }
|
||||
.resume-html__item-main { font-size: 13.2pt; font-weight: 600; color: #000; line-height: 1.4; }
|
||||
.resume-html__item-right { display: flex; align-items: center; gap: 4.8pt; flex-shrink: 0; text-align: right; }
|
||||
.resume-html__item-location { font-size: 12pt; color: #000; }
|
||||
.resume-html__item-date { font-size: 12pt; color: #000; white-space: nowrap; }
|
||||
.resume-html__item-desc { font-size: 12pt; color: #000; line-height: 1.5; }
|
||||
.resume-html__item-desc { font-size: 12pt; color: #000; line-height: 1.7; margin-top: 2pt; }
|
||||
.resume-html__desc-list { margin: 0; padding-left: 0; list-style: none; mso-list: none; }
|
||||
.resume-html__desc-list li { font-size: 12pt; line-height: 1.7; color: #000; list-style: none; mso-list: none; margin-left: 0; padding-left: 24pt; text-indent: 0; }
|
||||
.resume-html__skills { font-size: 12pt; line-height: 1.7; }
|
||||
|
||||
Reference in New Issue
Block a user