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'
})
}