thoughtPlan.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import request from '@/utils/request'
  2. // 查询月教育计划列表
  3. export function listThoughtPlan(query) {
  4. return request({
  5. url: '/thought/thoughtPlan/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询月教育计划详细
  11. export function getThoughtPlan(id) {
  12. return request({
  13. url: '/thought/thoughtPlan/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增月教育计划
  18. export function addThoughtPlan(data) {
  19. return request({
  20. url: '/thought/thoughtPlan',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改月教育计划
  26. export function updateThoughtPlan(data) {
  27. return request({
  28. url: '/thought/thoughtPlan',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除月教育计划
  34. export function delThoughtPlan(id) {
  35. return request({
  36. url: '/thought/thoughtPlan/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出月教育计划
  41. export function exportThoughtPlan(query) {
  42. return request({
  43. url: '/thought/thoughtPlan/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 响应月教育计划
  49. export function xiangYing(data) {
  50. return request({
  51. url: '/thought/thoughtPlan/addJinDu',
  52. method: 'post',
  53. data: data
  54. })
  55. }
  56. // 继续响应月教育计划列表
  57. export function JXxiangYing(unitId, planId) {
  58. return request({
  59. url: '/thought/thoughtPlan/get',
  60. method: 'get',
  61. params: { unitId, planId }
  62. })
  63. }
  64. // 继续响应响应提交月教育计划列表
  65. export function JXxiangYingXiangYing(data) {
  66. return request({
  67. url: '/thought/thoughtPlan/updateJinDu',
  68. method: 'post',
  69. data: data
  70. })
  71. }
  72. // 查询月教育计划详细
  73. export function getXiuGaiButton(id) {
  74. return request({
  75. url: '/thought/thoughtPlan/isResponse',
  76. method: 'post',
  77. data: id
  78. })
  79. }
  80. // 响应按钮月教育计划
  81. export function getResponse(id) {
  82. return request({
  83. url: 'thought/thoughtPlan/getDetails' + id,
  84. method: 'get'
  85. })
  86. }
  87. // 修改按钮月教育计划
  88. export function getModify(id) {
  89. return request({
  90. url: 'thought/thoughtPlan/updatePlan' + id,
  91. method: 'get'
  92. })
  93. }