修复快捷工具无法显示
This commit is contained in:
1 parent
9898962836
commit
2e2b837a20
23 files changed
+1941
-38
No files matched your search
@@ -0,0 +1,67 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 职级管理接口
|
||||
*
|
||||
* 职级(Job Rank)定义「职位等级」:每个部门可以各设一套职级阶梯,
|
||||
* department_id = 0 表示全公司通用职级,任何部门都能选用。
|
||||
*
|
||||
* 数据按租户隔离:后端一律从 JWT 里取 tid,前端传的 tenant_id 一律忽略。
|
||||
*/
|
||||
|
||||
/** 职级列表。scope=assign 时返回「该部门可用」的职级(部门自身 + 全公司通用) */
|
||||
export function getJobRankList(params = {}) {
|
||||
return request({
|
||||
url: '/backend/jobrank/list',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
export function getJobRankDetail(id) {
|
||||
return request({
|
||||
url: `/backend/jobrank/detail/${id}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
export function createJobRank(data) {
|
||||
return request({
|
||||
url: '/backend/jobrank/create',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function updateJobRank(id, data) {
|
||||
return request({
|
||||
url: `/backend/jobrank/update/${id}`,
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteJobRank(id) {
|
||||
return request({
|
||||
url: `/backend/jobrank/delete/${id}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
/** 职级编码唯一性校验(excludeId 为编辑时要排除的自身) */
|
||||
export function checkJobRankCodeUnique(rankCode, excludeId) {
|
||||
return request({
|
||||
url: '/backend/jobrank/checkCodeUnique',
|
||||
method: 'get',
|
||||
params: { rank_code: rankCode, exclude_id: excludeId || '' },
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
getJobRankList,
|
||||
getJobRankDetail,
|
||||
createJobRank,
|
||||
updateJobRank,
|
||||
deleteJobRank,
|
||||
checkJobRankCodeUnique,
|
||||
};
|
||||
Reference in new issue
Block a user