front.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. import request from '@/utils/request'
  2. // 08 学生单次测评排名-按班级排名学生
  3. export function getClassExaminees(params) {
  4. return request({
  5. url: '/front/evaluation/getClassExaminees',
  6. method: 'get',
  7. params: params
  8. })
  9. }
  10. // 04 学生测试列表
  11. export function getEvaluationForStudent(params) {
  12. return request({
  13. url: '/front/evaluation/getEvaluationForStudent',
  14. method: 'get',
  15. params: params
  16. })
  17. }
  18. // 09 班级测评历史
  19. export function getClassHistory(params) {
  20. return request({
  21. url: '/front/evaluation/getClassHistory',
  22. method: 'get',
  23. params: params
  24. })
  25. }
  26. // 05 测评班级统计
  27. export function getClassStat(params) {
  28. return request({
  29. url: '/front/evaluation/getClassStat',
  30. method: 'get',
  31. params: params
  32. })
  33. }
  34. // 05.0 测评题目分类
  35. export function getEvaluationQuestionTypes(evaluationClassId) {
  36. return request({
  37. url: '/front/evaluation/getEvaluationQuestionTypes',
  38. method: 'get',
  39. params: {evaluationClassId: evaluationClassId}
  40. })
  41. }
  42. //02 测评班级列表
  43. export function getEvaluationClassForStat(params) {
  44. return request({
  45. url: '/front/evaluation/getEvaluationClassForStat',
  46. method: 'get',
  47. params: params
  48. })
  49. }
  50. // 03 统计测评列表
  51. export function getEvaluationForStat(params) {
  52. return request({
  53. url: '/front/evaluation/getEvaluationForStat',
  54. method: 'get',
  55. params: params
  56. })
  57. }
  58. export function getEvaluationListForStat(params) {
  59. return request({
  60. url: '/front/evaluation/getEvaluationListForStat',
  61. method: 'get',
  62. params: params
  63. })
  64. }
  65. // 03 测试测评列表
  66. export function getEvaluationForTest(params) {
  67. return request({
  68. url: '/front/evaluation/getEvaluationForTest',
  69. method: 'get',
  70. params: params
  71. })
  72. }
  73. // 06 学生考卷详情
  74. export function getExamineeQuestions(params) {
  75. return request({
  76. url: '/front/evaluation/getExamineeQuestions',
  77. method: 'get',
  78. params: params
  79. })
  80. }
  81. // 06 考卷学生详情
  82. export function getExaminee(params) {
  83. return request({
  84. url: '/front/evaluation/getExaminee',
  85. method: 'get',
  86. params: params
  87. })
  88. }
  89. // 01 统计热门测评列表
  90. export function getHotEvaluationForStat(params) {
  91. return request({
  92. url: '/front/evaluation/getHotEvaluationForStat',
  93. method: 'get',
  94. params: params
  95. })
  96. }
  97. //01 测试热门测评列表
  98. export function getHotEvaluationForTest(params) {
  99. return request({
  100. url: '/front/evaluation/getHotEvaluationForTest',
  101. method: 'get',
  102. params: params
  103. })
  104. }
  105. // 07 学生测评历史
  106. export function getStudentHistory(params) {
  107. return request({
  108. url: '/front/evaluation/getStudentHistory',
  109. method: 'get',
  110. params: params
  111. })
  112. }
  113. // 20 错题管理-班级知识点统计
  114. export function getClassKnownledgeStats(params) {
  115. return request({
  116. url: '/front/wrong/getClassKnownledgeStats',
  117. method: 'get',
  118. params: params
  119. })
  120. }
  121. // 21 错题管理-班级学生统计
  122. export function getClassStudentStats(params) {
  123. return request({
  124. url: '/front/wrong/getClassStudentStats',
  125. method: 'get',
  126. params: params
  127. })
  128. }
  129. // 22 错题管理-班级错题列表
  130. export function getClassStudentQuestions(params) {
  131. return request({
  132. url: '/front/wrong/getClassStudentQuestions',
  133. method: 'get',
  134. params: params
  135. })
  136. }
  137. // 10 错题管理-学生知识点统计 front/wrong/getStudentKnownledgeStats
  138. export function getStudentKnownledgeStats(params) {
  139. return request({
  140. url: '/front/wrong/getStudentKnownledgeStats',
  141. method: 'get',
  142. params: params
  143. })
  144. }
  145. // 11 错题管理-学生错题列表 front/wrong/getStudentDetails
  146. export function getStudentDetails(params) {
  147. return request({
  148. url: '/front/wrong/getStudentDetails',
  149. method: 'get',
  150. params: params
  151. })
  152. }
  153. // 预览试卷
  154. export function previewEvaluationForTeacher(params) {
  155. return request({
  156. url: '/front/teacher/previewEvaluationForTeacher',
  157. method: 'get',
  158. params: params
  159. })
  160. }
  161. // 01 查找测评
  162. export function getEvaluationsForOpen(params) {
  163. return request({
  164. url: '/front/teacher/getEvaluationsForOpen',
  165. method: 'get',
  166. params: params
  167. })
  168. }
  169. // 02 开启测评
  170. export function open(data) {
  171. return request({
  172. url: '/front/teacher/open',
  173. method: 'post',
  174. data: data
  175. })
  176. }
  177. //30 打开错题
  178. export function openWrongQuestion(params) {
  179. return request({
  180. url: '/front/wrong/openWrongQuestion',
  181. method: 'get',
  182. params: params
  183. })
  184. }
  185. export function openQuestion(params) {
  186. return request({
  187. url: '/front/examination/openQuestion',
  188. method: 'get',
  189. params: params
  190. })
  191. }
  192. // 30 举一反三取新题
  193. export function openWrongSimilarQuestion(params) {
  194. return request({
  195. url: '/front/wrong/openWrongSimilarQuestion',
  196. method: 'get',
  197. params: params
  198. })
  199. }
  200. //31 提交错题答案
  201. export function commitWrongQuestion(params) {
  202. return request({
  203. url: '/front/wrong/commitWrongQuestion',
  204. method: 'post',
  205. data: params
  206. })
  207. }
  208. //32 scoreWrongQuestion 阅卷打分
  209. export function scoreWrongQuestion(params) {
  210. return request({
  211. url: '/front/wrong/scoreWrongQuestion',
  212. method: 'post',
  213. data: params
  214. })
  215. }
  216. // 收藏
  217. export function uploadGeneratePicAndBindQuestion(params) {
  218. return request({
  219. url: '/front/questionCollection/uploadGeneratePicAndBindQuestion',
  220. method: 'post',
  221. data: params
  222. })
  223. }
  224. // 取消收藏
  225. export function cancelQuestionCollection(params) {
  226. return request({
  227. url: '/front/questionCollection/cancelQuestionCollection',
  228. method: 'DELETE',
  229. params: params
  230. })
  231. }
  232. // 纠错
  233. export function correctQuestion(params) {
  234. return request({
  235. url: '/front/adjustWrong/correctQuestion',
  236. method: 'post',
  237. data: params
  238. })
  239. }
  240. // 开启测评
  241. export function openExamination(params) {
  242. return request({
  243. url: '/front/teacher/openExamination',
  244. method: 'post',
  245. data: params
  246. })
  247. }
  248. // 测评班级人员
  249. export function getEvaluationStudents(params) {
  250. return request({
  251. url: '/front/teacher/getEvaluationStudents',
  252. method: 'get',
  253. params: params
  254. })
  255. }
  256. // 发布成绩
  257. export function publishScores(params) {
  258. return request({
  259. url: '/front/teacher/publishScores',
  260. method: 'post',
  261. params: params
  262. })
  263. }
  264. //01 测评单次排名(统计)
  265. export function getEvaluationKnownledge(params) {
  266. return request({
  267. url: '/front/wrong/getEvaluationKnownledge',
  268. method: 'get',
  269. params: params
  270. })
  271. }
  272. //02 测评单次排名(明细)
  273. export function getEvaluationStudent(params) {
  274. return request({
  275. url: '/front/wrong/getEvaluationStudent',
  276. method: 'get',
  277. params: params
  278. })
  279. }