“人事修复更新weiz”
This commit is contained in:
1 parent
6bffe5fa08
commit
138b3e4d1f
18 files changed
+542
-330
No files matched your search
@@ -56,6 +56,7 @@ export interface ApplicationQuery {
|
||||
userName?: string;
|
||||
department?: string;
|
||||
status?: string;
|
||||
excludeStatus?: string; // 排除指定状态的数据
|
||||
params?: Record<string, any>;
|
||||
}
|
||||
|
||||
@@ -110,6 +111,7 @@ export interface RecordQuery {
|
||||
location?: string;
|
||||
department?: string;
|
||||
completionStatus?: string;
|
||||
includeApprovedApplications?: boolean; // 是否包含已通过审批的申请数据
|
||||
params?: Record<string, any>;
|
||||
}
|
||||
|
||||
@@ -158,66 +160,11 @@ export interface RecordForm {
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
// 查询培训课程列表
|
||||
export function listTrainingCourse(query: CourseQuery) {
|
||||
return request({
|
||||
url: '/rs/training/course/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 获取培训课程详情
|
||||
export function getTrainingCourse(courseId: string | number) {
|
||||
return request({
|
||||
url: `/rs/training/course/${courseId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 新增培训课程
|
||||
export function addTrainingCourse(data: CourseForm) {
|
||||
return request({
|
||||
url: '/rs/training/course',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 修改培训课程
|
||||
export function updateTrainingCourse(data: CourseForm) {
|
||||
return request({
|
||||
url: '/rs/training/course',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除培训课程
|
||||
export function delTrainingCourse(courseId: string | number | Array<string | number>) {
|
||||
return request({
|
||||
url: `/rs/training/course/${typeof courseId === 'object' ? courseId.join(',') : courseId}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// 切换培训课程状态
|
||||
export function toggleCourseStatus(courseId: string | number) {
|
||||
return request({
|
||||
url: `/rs/training/course/toggle/${courseId}`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
// 导出培训课程
|
||||
export function exportTrainingCourse(query: CourseQuery) {
|
||||
return request({
|
||||
url: '/rs/training/course/export',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
// ============================================
|
||||
// 注意:培训课程模块已废弃 (2025-01-03)
|
||||
// 课程信息现在直接存储在 rs_training_application 表中
|
||||
// 以下培训课程相关接口已移除,请使用培训申请相关接口
|
||||
// ============================================
|
||||
|
||||
// 查询培训申请列表
|
||||
export function listTrainingApplication(query: ApplicationQuery) {
|
||||
@@ -356,13 +303,10 @@ export function exportTrainingRecord(query: RecordQuery) {
|
||||
});
|
||||
}
|
||||
|
||||
// 提交培训申请(无需权限验证,供普通用户使用)
|
||||
// 提交培训申请(需要权限验证)
|
||||
export function submitTrainingApplication(data: ApplicationForm) {
|
||||
return request({
|
||||
url: '/rs/training/application/submit',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user