plan.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from '@/utils/request'
  2. // 查询【请填写功能名称】列表
  3. export function list(query) {
  4. return request({
  5. url: '/core/api/plan/find',
  6. method: 'post',
  7. data: query
  8. })
  9. }
  10. // 查询【请填写功能名称】详细
  11. export function itemfind(id) {
  12. return request({
  13. url: '/core/api/plan/item/find/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 查询【请填写功能名称】详细
  18. export function cheHui(id) {
  19. return request({
  20. url: '/core/api/plan/cheHui/' + id,
  21. method: 'get'
  22. })
  23. }
  24. // 下发所属机构为行社的计划
  25. export function distributeHS(id,immediateEffect) {
  26. return request({
  27. url: `/core/api/plan/distributehs/${id}/${immediateEffect}`,
  28. method: 'get'
  29. })
  30. }
  31. // 查询【请填写功能名称】详细
  32. export function distribute(query,immediateEffect) {
  33. return request({
  34. url: '/core/api/plan/distribute/'+immediateEffect ,
  35. method: 'post',
  36. data: query
  37. })
  38. }
  39. export function getPointIds(id) {
  40. return request({
  41. url: '/core/api/plan/getPointIds/' + id,
  42. method: 'get'
  43. })
  44. }
  45. // 查询【请填写功能名称】详细
  46. export function get(id) {
  47. return request({
  48. url: '/core/api/plan/find/' + id,
  49. method: 'get'
  50. })
  51. }
  52. // immediateEffect:使用中、停用状态下编辑时有效
  53. export function update(data,immediateEffect) {
  54. return request({
  55. url: '/core/api/plan/edit/'+immediateEffect,
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. // 删除【请填写功能名称】
  61. export function del(id) {
  62. return request({
  63. url: '/core/api/plan/delete/' + id,
  64. method: 'delete'
  65. })
  66. }