|
|
|
@ -81,14 +81,17 @@ export async function updateExamination(data: Record<string, any>, options?: Rec
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 删除考试 POST /dsideal_yy/ypt/careerTraining/course/delete */
|
|
|
|
|
/** 删除考试 */
|
|
|
|
|
export async function removeExamination(data: { key: number[] }, options?: Record<string, any>) {
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
|
|
|
|
|
data,
|
|
|
|
|
console.log('data:::', data);
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/zygh/training/examination/delExamination', {
|
|
|
|
|
data: { examination_id: data?.key[0] }, // 当前接口不支持批量操作
|
|
|
|
|
method: 'POST',
|
|
|
|
|
requestType: 'form',
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** saveRegistration */
|
|
|
|
|
export async function saveRegistration(data: { key: number[] }, options?: Record<string, any>) {
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
|
|
|
|
@ -97,6 +100,7 @@ export async function saveRegistration(data: { key: number[] }, options?: Record
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** removeRegistration */
|
|
|
|
|
export async function removeRegistration(data: { key: number[] }, options?: Record<string, any>) {
|
|
|
|
|
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
|
|
|
|
|