checklistPointRecordApi.js 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import {
  2. request
  3. } from '@/utils/request'
  4. /**
  5. * 获取Checklist列表
  6. * @param data
  7. * @returns
  8. */
  9. export function getChecklistRecordByList(data) {
  10. return request({
  11. url: '/checklist/point/record',
  12. method: 'GET',
  13. params: data
  14. })
  15. }
  16. /**
  17. * 根据Id获取Checklist Point Record
  18. * @param recordId
  19. * @param itemId
  20. * @param pointId
  21. * @returns
  22. */
  23. export function getChecklistPointRecordById(recordId, itemId, pointId) {
  24. return request({
  25. url: `/checklist/point/record/${recordId}/${itemId}/${pointId}`,
  26. method: 'GET'
  27. })
  28. }
  29. /**
  30. * 基于Id删除Checklist Point Record
  31. * @param recordId
  32. * @param itemId
  33. * @param pointId
  34. * @returns
  35. */
  36. export function deleteChecklistPointRecordById(recordId, itemId, pointId) {
  37. return request({
  38. url: `/checklist/point/record/${recordId}/${itemId}/${pointId}`,
  39. method: 'DELETE'
  40. })
  41. }