fix: 修复

This commit is contained in:
2025-11-12 19:31:46 +08:00
parent 1468002fe2
commit 967317367c
17 changed files with 1002 additions and 560 deletions

View File

@@ -16,10 +16,21 @@ export function getJobPathPage(params) {
// 根据职业路径ID获取详情
export function getJobPathDetail(params) {
const requestParams = {};
if (params?.jobPathId !== undefined && params?.jobPathId !== null && params?.jobPathId !== '') {
requestParams.id = params.jobPathId;
} else if (params?.id !== undefined && params?.id !== null && params?.id !== '') {
requestParams.id = params.id;
}
if (!requestParams.id) {
return Promise.reject('缺少必需的 id 参数');
}
return request({
url: '/jobPath/getJobPathDetail',
url: '/jobPath/getJobPathById',
method: 'get',
params,
params: requestParams,
baseUrlType: 'zytp'
})
}
@@ -33,24 +44,3 @@ export function getJobPathNum() {
})
}
// 导入职业路径
export function importJobPath(data) {
return request({
url: '/jobPath/importJobPath',
method: 'post',
data,
baseUrlType: 'zytp'
})
}
// 导出职业路径
export function exportJobPath(params) {
return request({
url: '/jobPath/exportJobPath',
method: 'get',
params,
baseUrlType: 'zytp',
responseType: 'arraybuffer'
})
}

View File

@@ -19,46 +19,15 @@ function createFormData(payload = {}) {
}
export function recommendJob(data) {
const formData = createFormData({
jobId: data?.jobId
})
const params = {};
if (data?.jobName !== undefined && data?.jobName !== null && data?.jobName !== '') {
params.jobName = String(data.jobName);
}
return request({
url: '/job/recommendJob',
method: 'post',
data: formData,
baseUrlType: 'zytp',
header: {
'content-type': 'multipart/form-data'
}
})
}
export function countJobRecommendRecords(data) {
const formData = createFormData({
jobId: data?.jobId,
jobName: data?.jobName,
recommendType: data?.recommendType,
startDate: data?.startDate,
endDate: data?.endDate
})
return request({
url: '/jobRecommendRecord/countJobRecommendRecords',
method: 'post',
data: formData,
baseUrlType: 'zytp',
header: {
'content-type': 'multipart/form-data'
}
})
}
export function getJobRecommendRecords(params) {
return request({
url: '/jobRecommendRecord/getJobRecommendRecords',
url: '/job/recommendJobByJobName',
method: 'get',
params,
params: params,
baseUrlType: 'zytp'
})
}

View File

@@ -13,65 +13,33 @@ export function getJobSkillDetail(params) {
})
}
export function getJobPathSkill(data) {
let formData
if (typeof FormData !== 'undefined') {
formData = new FormData()
if (data?.pathId !== undefined && data?.pathId !== null) {
formData.append('pathId', data.pathId)
}
if (data?.currentJobName !== undefined && data?.currentJobName !== null) {
formData.append('currentJobName', data.currentJobName)
}
} else {
formData = {
pathId: data?.pathId ?? '',
currentJobName: data?.currentJobName ?? ''
}
}
// 暂未使用 - 如果需要在 CareerPath.vue 中点击路径职位查看详细技能信息时使用
// 使用场景:获取职业路径中某个职位的详细技能信息(包含技能分数、类型等)
// export function getJobPathSkill(data) {
// let formData
// if (typeof FormData !== 'undefined') {
// formData = new FormData()
// if (data?.pathId !== undefined && data?.pathId !== null) {
// formData.append('pathId', data.pathId)
// }
// if (data?.currentJobName !== undefined && data?.currentJobName !== null) {
// formData.append('currentJobName', data.currentJobName)
// }
// } else {
// formData = {
// pathId: data?.pathId ?? '',
// currentJobName: data?.currentJobName ?? ''
// }
// }
return request({
url: '/jobSkillDet/getJobPathSkill',
method: 'post',
data: formData,
baseUrlType: 'zytp',
header: {
'content-type': 'multipart/form-data'
}
})
}
// return request({
// url: '/jobSkillDet/getJobPathSkill',
// method: 'post',
// data: formData,
// baseUrlType: 'zytp',
// header: {
// 'content-type': 'multipart/form-data'
// }
// })
// }
// 获取技能热度分析列表
export function getSkillsHeatAnalysisList(params) {
return request({
url: '/skillsHeatAnalysis/list',
method: 'get',
params,
baseUrlType: 'zytp'
})
}
// 获取技能数量
export function getSkillNum(data) {
let formData
if (typeof FormData !== 'undefined') {
formData = new FormData()
if (data?.skillType !== undefined && data?.skillType !== null) {
formData.append('skillType', data.skillType)
}
} else {
formData = {
skillType: data?.skillType ?? ''
}
}
return request({
url: '/skill/getSkillNum',
method: 'post',
data: formData,
baseUrlType: 'zytp',
header: {
'content-type': 'multipart/form-data'
}
})
}

View File

@@ -8,7 +8,7 @@ import request from '@/utilsRc/request'
// 获取用户信息(职业规划推荐用)
export function appUserInfo() {
return request({
fullUrl: 'http://222.80.110.161:11111/api/ks/app/user/appUserInfo',
url: '/app/user/appUserInfo',
method: 'get'
})
}