You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
54 lines
1.4 KiB
import request from '@/utils/request'
|
|
|
|
// USER_CODE_BEGIN -- zhjw_students_survey
|
|
/**
|
|
* 获取学员体测列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getZhjwStudentsSurveyList(params: Record<string, any>) {
|
|
return request.get(`zhjw_students_survey/zhjw_students_survey`, {params})
|
|
}
|
|
|
|
/**
|
|
* 获取学员体测详情
|
|
* @param id 学员体测id
|
|
* @returns
|
|
*/
|
|
export function getZhjwStudentsSurveyInfo(id: number) {
|
|
return request.get(`zhjw_students_survey/zhjw_students_survey/${id}`);
|
|
}
|
|
|
|
/**
|
|
* 添加学员体测
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addZhjwStudentsSurvey(params: Record<string, any>) {
|
|
return request.post('zhjw_students_survey/zhjw_students_survey', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑学员体测
|
|
* @param id
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editZhjwStudentsSurvey(params: Record<string, any>) {
|
|
return request.put(`zhjw_students_survey/zhjw_students_survey/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 删除学员体测
|
|
* @param id
|
|
* @returns
|
|
*/
|
|
export function deleteZhjwStudentsSurvey(id: number) {
|
|
return request.delete(`zhjw_students_survey/zhjw_students_survey/${id}`, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
export function getWithStudentsList(params: Record<string,any>){
|
|
return request.get('zhjw_students_survey/students_all', {params})
|
|
}
|
|
|
|
// USER_CODE_END -- zhjw_students_survey
|
|
|