student.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import request from "@/utils/request"
  2. // 获取企业推荐信列表
  3. export const getRecommendationPage = async (data) => {
  4. return request({
  5. url: '/app-api/flames/student/recommendation/list',
  6. method: 'POST',
  7. data,
  8. custom: {
  9. openEncryption: true,
  10. showLoading: false,
  11. auth: true
  12. }
  13. })
  14. }
  15. // 获取实习证书列表
  16. export const getEnterpriseCertificateList = async (data) => {
  17. return request({
  18. url: '/app-api/flames/student/internship/certificate/list',
  19. method: 'POST',
  20. data,
  21. custom: {
  22. openEncryption: true,
  23. showLoading: false,
  24. auth: true
  25. }
  26. })
  27. }
  28. // 获取学校详情
  29. export const getSchoolDetails = async (data) => {
  30. return request({
  31. url: '/app-api/flames/school/detail',
  32. method: 'POST',
  33. data,
  34. custom: {
  35. openEncryption: true,
  36. showLoading: false,
  37. auth: true
  38. }
  39. })
  40. }
  41. // 获得学生实习记录分页
  42. export const getStudentPage = async (params) => {
  43. return request({
  44. url: '/app-api/menduner/system/student/page',
  45. method: 'GET',
  46. params,
  47. custom: {
  48. auth: true
  49. }
  50. })
  51. }
  52. // 获得学生实习报告列表
  53. export const getStudentReportList = async (params) => {
  54. return request({
  55. url: '/app-api/menduner/system/student/get/report/list',
  56. method: 'GET',
  57. params,
  58. custom: {
  59. auth: true
  60. }
  61. })
  62. }
  63. // 保存学生实习报告
  64. export const saveStudentReport = async (data) => {
  65. return request({
  66. url: '/app-api/menduner/system/student/report/save',
  67. method: 'POST',
  68. data,
  69. custom: {
  70. openEncryption: true,
  71. showLoading: false,
  72. auth: true
  73. }
  74. })
  75. }
  76. // 获取学生实习的企业列表
  77. export const getStudentPracticeCompanyList = async () => {
  78. return request({
  79. url: '/app-api/menduner/system/student/record-enterprise/list',
  80. method: 'GET',
  81. custom: {
  82. auth: true
  83. }
  84. })
  85. }
  86. // 获取学校信息列表
  87. export const getSchoolList = async (params) => {
  88. return request({
  89. url: '/app-api/menduner/system/school/info/list',
  90. params,
  91. method: 'GET',
  92. custom: {
  93. auth: false
  94. }
  95. })
  96. }
  97. // 根据学校id获取院系列表
  98. export const getDepartmentListBySchoolId = async (params) => {
  99. return request({
  100. url: '/app-api/menduner/system/school/organization/list',
  101. params,
  102. method: 'GET',
  103. custom: {
  104. auth: false
  105. }
  106. })
  107. }
  108. // 获取专业列表
  109. export const getMajorList = async (params) => {
  110. return request({
  111. url: '/app-api/menduner/system/major/list',
  112. params,
  113. method: 'GET',
  114. custom: {
  115. auth: false
  116. }
  117. })
  118. }
  119. // 上报实习企业
  120. export const reportStudentPracticeEnterprise = async (enterpriseId, internshipJobId) => {
  121. return request({
  122. url: `/app-api/menduner/system/student/internship/enterprise?enterpriseId=${enterpriseId}&internshipJobId=${internshipJobId}`,
  123. method: 'POST',
  124. custom: {
  125. auth: true
  126. }
  127. })
  128. }