teacher.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. const axios = require('@/common/axios').default
  2. import qs from 'qs'
  3. // import axios from '@/common/axios'
  4. // console.log(axios)
  5. const api = '/api-teacher'
  6. // const api2 = '/web-server'
  7. // 查询我发起的任务列表
  8. const queryMyCreatedList = (data) => {
  9. return axios({
  10. url: api + '/snaker/task/queryMyCreatedList',
  11. method: 'get',
  12. params: data
  13. })
  14. }
  15. // 查询我待办任务列表
  16. const queryWaitList = (data) => {
  17. return axios({
  18. url: api + '/snaker/task/queryWaitList',
  19. method: 'get',
  20. params: data
  21. })
  22. }
  23. // 查询我已办任务列表
  24. const queryProcessedList = (data) => {
  25. return axios({
  26. url: api + '/snaker/task/queryProcessedList',
  27. method: 'get',
  28. params: data
  29. })
  30. }
  31. // 活动分类
  32. const findSubSubjects = (data) => {
  33. return axios({
  34. url: api + '/subject/findTeacherSubjets',
  35. method: 'get',
  36. params: data
  37. })
  38. }
  39. // vip课类别
  40. const vipGroupCategory = (data) => {
  41. return axios({
  42. url: api + '/vipGroupCategory/queryAll',
  43. method: 'get',
  44. params: data
  45. })
  46. }
  47. // 根据课程类型获取对应课程活动方案
  48. const findByVipGroupCategory = (data) => {
  49. return axios({
  50. url: api + '/vipGroupActivity/findByVipGroupCategory',
  51. method: 'get',
  52. params: data
  53. })
  54. }
  55. // 获取教师vip课教学点
  56. const findVipSchoolByTeacher = (data) => {
  57. return axios({
  58. url: api + '/school/findVipSchoolByTeacher',
  59. method: 'get',
  60. params: data
  61. })
  62. }
  63. // 获取教师vip课教学点(vip申请里面)
  64. const findVipSchoolByTeacher2 = (data) => {
  65. return axios({
  66. url: api + '/school/findVipSchoolByTeacher2',
  67. method: 'get',
  68. params: data
  69. })
  70. }
  71. // 新增学校
  72. const schoolAdd = (data) => {
  73. return axios({
  74. url: api + '/school/add',
  75. method: 'post',
  76. data: qs.stringify(data)
  77. })
  78. }
  79. // 删除学校
  80. const schoolDel = (data) => {
  81. return axios({
  82. url: api + '/school/del',
  83. method: 'post',
  84. data: qs.stringify(data)
  85. })
  86. }
  87. // 修改学校
  88. const schoolUpdate = (data) => {
  89. return axios({
  90. url: api + '/school/update',
  91. method: 'post',
  92. data: qs.stringify(data)
  93. })
  94. }
  95. // 根据老师编号及课程类型编号获取默认课酬
  96. const findByTeacherAndCategory = (data) => {
  97. return axios({
  98. url: api + '/teacherDefaultVipGroupSalary/findByTeacherAndCategory',
  99. method: 'get',
  100. params: data
  101. })
  102. }
  103. // vip课申请
  104. const vipGroupApply = (data) => {
  105. return axios({
  106. url: api + '/teacherVipGroup/vipGroupApply',
  107. method: 'post',
  108. data: data
  109. })
  110. }
  111. // 查询vip课列表
  112. const queryVipCourseScheduleList = (data) => {
  113. return axios({
  114. url: api + '/teacherLeaveRecord/queryVipCourseScheduleList',
  115. method: 'get',
  116. params: data
  117. })
  118. }
  119. // 分页查询请假类型列表
  120. const leaveCategoryPage = (data) => {
  121. return axios({
  122. url: api + '/leaveCategory/queryPage',
  123. method: 'post',
  124. data: data
  125. })
  126. }
  127. // 请假
  128. const askForLeave = (data) => {
  129. return axios({
  130. url: api + '/teacherLeaveRecord/askForLeave',
  131. method: 'post',
  132. data: qs.stringify(data)
  133. })
  134. }
  135. // 根据日期获取当日排课
  136. const getCourseSchedulesWithDate = (data) => {
  137. return axios({
  138. url: api + '/teacherCourseSchedule/getCourseSchedulesWithDate',
  139. method: 'get',
  140. params: data
  141. })
  142. }
  143. // 根据月份获取该月有课的日期
  144. const getCourseScheduleDateByMonth = (data) => {
  145. return axios({
  146. url: api + '/teacherCourseSchedule/getCourseScheduleDateByMonth',
  147. method: 'get',
  148. params: data
  149. })
  150. }
  151. // 课时调整
  152. const classStartDateAdjust = (data) => {
  153. return axios({
  154. url: api + '/teacherCourseSchedule/classStartDateAdjust',
  155. method: 'post',
  156. data: qs.stringify(data)
  157. })
  158. }
  159. // 课时交换
  160. const courseSwap = (data) => {
  161. return axios({
  162. url: api + '/teacherCourseSchedule/courseSwap',
  163. method: 'post',
  164. data: qs.stringify(data)
  165. })
  166. }
  167. // 历史考勤统计-头信息
  168. const statisticsInfo = (data) => {
  169. return axios({
  170. url: api + '/teacherCourseSchedule/statisticsInfo',
  171. method: 'get',
  172. params: data
  173. })
  174. }
  175. // 历史考勤统计-考勤列表
  176. const statisticsList = (data) => {
  177. return axios({
  178. url: api + '/teacherCourseSchedule/statisticsList',
  179. method: 'get',
  180. params: data
  181. })
  182. }
  183. // 获取乐团学院学员报名列表
  184. const queryStudentApply = (data) => {
  185. return axios({
  186. url: api + '/teacher/queryStudentApply',
  187. method: 'get',
  188. params: data
  189. })
  190. }
  191. // 获取乐团学院学员报名列表
  192. const querySubByMusicGroupId = (data) => {
  193. return axios({
  194. url: api + '/teacher/querySubByMusicGroupId',
  195. method: 'get',
  196. params: data
  197. })
  198. }
  199. // 调剂
  200. const updateSubject = (data) => {
  201. return axios({
  202. url: api + '/studentRegistration/updateSubject',
  203. method: 'post',
  204. data: qs.stringify(data)
  205. })
  206. }
  207. // 查询福袋数据
  208. const getFortuneBag = () => {
  209. return axios({
  210. url: '/api-student/studentOrder/getLuckStatis',
  211. method: 'get',
  212. })
  213. }
  214. // 查询预约激活人数
  215. const getactiveList = () => {
  216. return axios({
  217. url: '/api-web/api/practiceSum',
  218. method: 'get',
  219. })
  220. }
  221. export {
  222. queryMyCreatedList,
  223. queryWaitList,
  224. queryProcessedList,
  225. findSubSubjects,
  226. vipGroupCategory,
  227. findByVipGroupCategory,
  228. findVipSchoolByTeacher,
  229. schoolAdd,
  230. schoolDel,
  231. schoolUpdate,
  232. findByTeacherAndCategory,
  233. vipGroupApply,
  234. queryVipCourseScheduleList,
  235. leaveCategoryPage,
  236. askForLeave,
  237. getCourseSchedulesWithDate,
  238. getCourseScheduleDateByMonth,
  239. classStartDateAdjust,
  240. courseSwap,
  241. statisticsInfo,
  242. statisticsList,
  243. queryStudentApply,
  244. querySubByMusicGroupId,
  245. updateSubject,
  246. findVipSchoolByTeacher2,
  247. getFortuneBag,
  248. getactiveList
  249. }