plan.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 distribute(query) {
  19. return request({
  20. url: '/core/api/plan/distribute' ,
  21. method: 'post',
  22. data: query
  23. })
  24. }
  25. export function getPointIds(id) {
  26. return request({
  27. url: '/core/api/plan/getPointIds/' + id,
  28. method: 'get'
  29. })
  30. }
  31. // 查询【请填写功能名称】详细
  32. export function get(id) {
  33. return request({
  34. url: '/core/api/plan/find/' + id,
  35. method: 'get'
  36. })
  37. }
  38. // 修改【请填写功能名称】
  39. export function update(data) {
  40. return request({
  41. url: '/core/api/plan/edit',
  42. method: 'post',
  43. data: data
  44. })
  45. }
  46. // 删除【请填写功能名称】
  47. export function delelte(id) {
  48. return request({
  49. url: '/core/api/plan/delete/' + id,
  50. method: 'get'
  51. })
  52. }