learnActivity.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. import { fetch, post } from '@/api/http'
  2. export default {
  3. /*
  4. *保存试卷
  5. */
  6. SaveExamPaper: function (data) {
  7. return post('/school/Paper/upsert', data)
  8. },
  9. /*
  10. *查询试卷
  11. */
  12. FindExamPaper: function (data) {
  13. return post('/school/Paper/find', data)
  14. },
  15. /*
  16. *删除试卷
  17. */
  18. DeleteExamPaper: function (data) {
  19. return post('/school/Paper/delete', data)
  20. },
  21. /*
  22. *删除评测信息
  23. */
  24. DeleteExamInfo: function (data) {
  25. return post('/api/Exam/Delete', data)
  26. },
  27. /*
  28. *保存评测
  29. */
  30. SaveExamInfo: function (data) {
  31. return post('/api/Exam/Save', data)
  32. },
  33. /*
  34. *查询评测
  35. */
  36. FindExamInfo: function (data) {
  37. return post('/api/Exam/Find', data)
  38. },
  39. /*
  40. *自动组题
  41. */
  42. Automatic: function (data) {
  43. return post('/common/item/Automatic', data)
  44. },
  45. /*
  46. *保存最小单元
  47. */
  48. SaveUnit: function (data) {
  49. return post('/teacher/learn/upsert-unit', data)
  50. },
  51. /*
  52. *查询最小单元
  53. */
  54. FindUnit: function (data) {
  55. return post('/teacher/learn/find-unit', data)
  56. },
  57. /*
  58. *删除最小单元
  59. */
  60. DeleteUnit: function (data) {
  61. return post('/teacher/learn/delete-unit', data)
  62. },
  63. /*
  64. *根据id数组查询资源文件
  65. */
  66. FindSyllabusResourceById: function (data) {
  67. return post('/api/Resource/findById', data)
  68. },
  69. /*
  70. *根据id数组查询资源文件
  71. */
  72. FindQuestionById: function (data) {
  73. return post('/api/ItemInfo/findByIds', data)
  74. },
  75. /*
  76. *保存编序式学习活动
  77. */
  78. SaveOrderLearn: function (data) {
  79. return post('/api/Learn/upsertProcess', data)
  80. },
  81. /*
  82. *查询编序式学习活动
  83. */
  84. FindOrderLearn: function (data) {
  85. return post('/api/Learn/FindProcess', data)
  86. },
  87. /*
  88. *保存或新增作答记录
  89. */
  90. upsertRecord: function (data) {
  91. return post('/api/Learn/upsertRecord', data)
  92. },
  93. /*
  94. *查询编序作答记录
  95. */
  96. findRecord: function (data) {
  97. return post('/api/Learn/findRecord', data)
  98. },
  99. /*
  100. *查询作业活动
  101. */
  102. SaveorUpdataHomeWork: function (data) {
  103. return post('/teacher/homework/upsert', data)
  104. },
  105. /*
  106. *新增或者编辑作业活动
  107. */
  108. FindHomeWork: function (data) {
  109. return post('/teacher/homework/find', data)
  110. },
  111. /*
  112. * 撤销发布作业
  113. */
  114. RevokeHomeWork: function (data) {
  115. return post('/teacher/homework/cancel', data)
  116. },
  117. /*
  118. * 删除作业
  119. */
  120. DeleteHomeWork: function (data) {
  121. return post('/teacher/homework/delete', data)
  122. },
  123. /*
  124. * 查询老师课程下的所有班级
  125. */
  126. FindClassroomByTeacherId: function (data) {
  127. return post('/school/course/find-teach-class', data)
  128. },
  129. /*
  130. * 查询作业下的所有学生数据
  131. */
  132. FindRecordByHwId: function (data) {
  133. return post('/teacher/homework/find-record', data)
  134. },
  135. /*
  136. * 保存作业学生作答数据
  137. */
  138. SaveHwRecords: function (data) {
  139. return post('/teacher/homework/upsert-record', data)
  140. },
  141. /*
  142. * 查询老师的评语罐头
  143. */
  144. FindTeacherComments: function (data) {
  145. return post('/teacher/comment/find-comment', data)
  146. },
  147. /*
  148. * 新增老师的评语罐头
  149. */
  150. SaveOrUpdateTeacherComments: function (data) {
  151. return post('/teacher/comment/add-comment', data)
  152. },
  153. /*
  154. * 删除或者更新老师的评语罐头
  155. */
  156. UpsertTeacherComments: function (data) {
  157. return post('/teacher/comment/upsert-comment', data)
  158. },
  159. /*
  160. * 老师评分
  161. */
  162. TeacherScoring: function (data) {
  163. return post('/teacher/homework/tch-score', data)
  164. },
  165. /*
  166. * 打评语
  167. */
  168. SetComment: function (data) {
  169. return post('/teacher/homework/tch-score', data)
  170. },
  171. /*
  172. *新增或者编辑自主学子活动
  173. */
  174. SaveSelfLearn: function (data) {
  175. return post('/api/Learn/SaveorUpdataLearningAutonomous', data)
  176. },
  177. /*
  178. *查询自主学子活动
  179. */
  180. FindSelfLearn: function (data) {
  181. return post('/api/Learn/FindLearningAutonomous', data)
  182. },
  183. /*
  184. *删除编序式活动
  185. */
  186. DeleteLeanProcess: function (data) {
  187. return post('/api/Learn/DeleteProcess', data)
  188. },
  189. /*
  190. * 新增或者修改投票活动
  191. */
  192. SaveorUpdataVote: function (data) {
  193. return post('/school/vote/upsert', data)
  194. },
  195. /*
  196. * 查询投票活动
  197. */
  198. FindVote: function (data) {
  199. return post('/school/vote/find', data)
  200. },
  201. /*
  202. * 保存作业学生作答数据
  203. */
  204. SaveVoteRecords: function (data) {
  205. return post('/school/vote/upsert-record', data)
  206. },
  207. /*
  208. * 删除投票活动
  209. */
  210. DeleteVote: function (data) {
  211. return post('/school/vote/delete', data)
  212. },
  213. /*
  214. * 查询学生投票活动数据
  215. */
  216. FindRecordByVoteId: function (data) {
  217. return post('/school/vote/find-record', data)
  218. },
  219. /*
  220. * 保存评测学生作答数据
  221. */
  222. UpsertAllRecord: function (data) {
  223. return post('/api/Exam/upsertAllRecord', data)
  224. },
  225. /*
  226. * 发布自主学习活动
  227. */
  228. UpsertTask: function (data) {
  229. return post('/teacher/learn/upsert-task', data)
  230. },
  231. /*
  232. * 查询学习活动
  233. */
  234. findTask: function (data) {
  235. return post('/teacher/learn/find-task', data)
  236. },
  237. /*
  238. * 删除/撤销学习任务
  239. */
  240. deleteTask: function (data) {
  241. return post('/api/Learn/deleteTask', data)
  242. },
  243. /*
  244. * 查询学生评测记录
  245. */
  246. FindSummaryRecord: function (data) {
  247. return post('/api/Exam/findSummaryRecord', data)
  248. },
  249. /*
  250. * 查询学生信息
  251. */
  252. FindStudent: function (data) {
  253. return post('/api/Student/find', data)
  254. },
  255. /*
  256. * 查询单个学生作答信息
  257. */
  258. FindOneStudent: function (data) {
  259. return post('/api/Exam/findByIdPk', data)
  260. }
  261. }