index.ts 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import request from '@/config/axios'
  2. // 导师学硕专硕名额设置 VO
  3. export interface supervisorSelectionSettingVO {
  4. id: number // 自增id
  5. projectId: number // 项目id
  6. supervisorId: number // 导师id
  7. academicSlots: number // 学硕名额
  8. professionalSlots: number // 专硕名额
  9. supervisorName :string//导师姓名
  10. userType:string;//导师类型
  11. occupiedAcademicSlots:number//已招的学硕名额
  12. occupiedProfessionalSlots:number,//已招的专硕名额
  13. agentProfessionalSlots : number,
  14. agentAcademicSlots: number,
  15. }
  16. // 导师学硕专硕名额设置 API
  17. export const supervisorSelectionSettingApi = {
  18. // 查询导师学硕专硕名额设置分页
  19. getSupervisorSelectionSettingPage: async (params: any) => {
  20. return await request.get({ url: `/system/supervisor-selection-setting/page`, params })
  21. },
  22. // 查询导师学硕专硕名额设置详情
  23. getSupervisorSelectionSetting: async (id: number) => {
  24. return await request.get({ url: `/system/supervisor-selection-setting/get?id=` + id })
  25. },
  26. // 新增导师学硕专硕名额设置
  27. createSupervisorSelectionSetting: async (data: supervisorSelectionSettingVO) => {
  28. return await request.post({ url: `/system/supervisor-selection-setting/create`, data })
  29. },
  30. // 修改导师学硕专硕名额设置
  31. updateSupervisorSelectionSetting: async (data: supervisorSelectionSettingVO) => {
  32. return await request.put({ url: `/system/supervisor-selection-setting/update`, data })
  33. },
  34. // 删除导师学硕专硕名额设置
  35. deleteSupervisorSelectionSetting: async (id: number) => {
  36. return await request.delete({ url: `/system/supervisor-selection-setting/delete?id=` + id })
  37. },
  38. // 导出导师学硕专硕名额设置 Excel
  39. exportSupervisorSelectionSetting: async (params) => {
  40. return await request.download({ url: `/system/supervisor-selection-setting/export-excel`, params })
  41. },
  42. // 导师这个项目的设置信息
  43. getSupervisorInfo: async (supervisorId: number, projectId: number) => {
  44. return await request.get({url: `/system/supervisor-selection-setting/getSupervisorInfo?supervisorId=${supervisorId}&projectId=${projectId}`});
  45. },
  46. // 获取登录导师的设置信息
  47. getLoginSupervisorInfo: async () => {
  48. return await request.get({url: `/system/supervisor-selection-setting/getLoginSupervisorInfo`});
  49. }
  50. }