|
|
@ -1,84 +1,84 @@ |
|
|
|
import request from '@/utils/request' |
|
|
|
import request from '@/utils/request' |
|
|
|
|
|
|
|
|
|
|
|
export function getSchoolList(query) { |
|
|
|
export function getSchoolList(query) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: '/train/schoolList', |
|
|
|
url: '/train/schoolList', |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params: query, |
|
|
|
params: query, |
|
|
|
// headers: {
|
|
|
|
// headers: {
|
|
|
|
// isToken: false
|
|
|
|
// isToken: false
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function addSchool(data) { |
|
|
|
export function addSchool(data) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: '/train/school/add', |
|
|
|
url: '/train/school/add', |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data, |
|
|
|
data, |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
export function updateSchool(data) { |
|
|
|
export function updateSchool(data) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: '/train/school/update', |
|
|
|
url: '/train/school/update', |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data, |
|
|
|
data, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function delSchool(id) { |
|
|
|
export function delSchool(id) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: `/train/school/del/?schoolId=${id}`, |
|
|
|
url: `/train/school/del/?schoolId=${id}`, |
|
|
|
method: 'delete', |
|
|
|
method: 'delete', |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function getSignUpList(query) { |
|
|
|
export function getSignUpList(query) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: `/train/trainClassList`, |
|
|
|
url: `/train/trainClassList`, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params: query, |
|
|
|
params: query, |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
export function addSignUp(data) { |
|
|
|
export function addSignUp(data) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: '/train/trainClass/add', |
|
|
|
url: '/train/trainClass/add', |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data, |
|
|
|
data, |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
export function updateSignUp(data) { |
|
|
|
export function updateSignUp(data) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: '/train/trainClass/update', |
|
|
|
url: '/train/trainClass/update', |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
data, |
|
|
|
data, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function delSignUp(id) { |
|
|
|
export function delSignUp(id) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: `/train/trainClass/del?trainClassId=${id}`, |
|
|
|
url: `/train/trainClass/del?trainClassId=${id}`, |
|
|
|
method: 'delete', |
|
|
|
method: 'delete', |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询已报名列表
|
|
|
|
// 查询已报名列表
|
|
|
|
export function searchNum(params) { |
|
|
|
export function searchNum(params) { |
|
|
|
return request({ |
|
|
|
return request({ |
|
|
|
url: `/train/trainStudentList`, |
|
|
|
url: `/train/trainStudentList`, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params, |
|
|
|
params, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -180,3 +180,10 @@ export function addRemarkI(data) { |
|
|
|
data, |
|
|
|
data, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 删除报名人
|
|
|
|
|
|
|
|
export function delSign(id) { |
|
|
|
|
|
|
|
return request({ |
|
|
|
|
|
|
|
url: '/train/trainStuden/del?studentId=' + id, |
|
|
|
|
|
|
|
method: 'delete', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |