plan.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 查询【请填写功能名称】列表
  3. export function list(query) {
  4. return request({
  5. url: '/core/checkplan/list',
  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/checkplan/distribute' ,
  21. method: 'post',
  22. data: query
  23. })
  24. }
  25. export function getPointIds(id) {
  26. return request({
  27. url: '/core/checkplan/getPointIds/' + id,
  28. method: 'get'
  29. })
  30. }
  31. // 查询【请填写功能名称】详细
  32. export function get(id) {
  33. return request({
  34. url: '/core/checkplan/' + id,
  35. method: 'get'
  36. })
  37. }
  38. // 修改【请填写功能名称】
  39. export function update(data) {
  40. return request({
  41. url: '/core/checkplan',
  42. method: 'put',
  43. data: data
  44. })
  45. }
  46. // 新增【请填写功能名称】
  47. export function add(data) {
  48. return request({
  49. url: '/core/checkplan',
  50. method: 'post',
  51. data: data
  52. })
  53. }
  54. // 删除【请填写功能名称】
  55. export function delelte(id) {
  56. return request({
  57. url: '/core/checkplan/' + id,
  58. method: 'delete'
  59. })
  60. }