index.js 814 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import request from '@/utils/request'
  2. /* 维保点位 */
  3. export function addInspectionPoint(data) {
  4. return request({
  5. url: "/inspectionPoint",
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. export function delInspectionPoint(data) {
  11. return request({
  12. url: "/inspectionPoint/" + data,
  13. method: 'delete',
  14. })
  15. }
  16. export function updateInspectionPoint(data) {
  17. return request({
  18. url: "/inspectionPoint",
  19. method: 'put',
  20. data: data
  21. })
  22. }
  23. export function getInspectionPoint(data) {
  24. return request({
  25. url: "/inspectionPoint/list",
  26. method: 'get',
  27. params: data
  28. })
  29. }
  30. export function exportInspectionPoint(data) {
  31. return request({
  32. url: "/inspectionPoint/export",
  33. method: 'get',
  34. params: data
  35. })
  36. }