responses.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import request from '@/utils/request'
  2. // 查询月教育计划列表
  3. export function listResponses(query) {
  4. return request({
  5. url: '/thought/responses/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询月教育计划
  11. export function getResponses(id) {
  12. return request({
  13. url: '/thought/responses/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增月教育计划
  18. export function addResponses(data) {
  19. return request({
  20. url: '/thought/responses',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改月教育计划
  26. export function updateResponses(data) {
  27. return request({
  28. url: '/thought/responses',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除月教育计划
  34. export function delResponses(id) {
  35. return request({
  36. url: '/thought/responses/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出月教育计划
  41. export function exportResponses(query) {
  42. return request({
  43. url: '/thought/responses/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 数据的展示
  49. export function Exhibition() {
  50. return request({
  51. url: '/thought/thoughtPlan/getnumber',
  52. method: 'get',
  53. })
  54. }