testSample.js 953 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { HcApi } from '../../../request/index'
  2. export default {
  3. //分页查询
  4. async queryPage(form, msg = true) {
  5. return HcApi({
  6. url: '/api/blade-business/entrustinfo/sample_page',
  7. method: 'get',
  8. params: form,
  9. }, msg)
  10. },
  11. //删除在测样品
  12. async sampleRemove(ids, msg = true) {
  13. return HcApi({
  14. url: '/api/blade-business/entrustinfo/sample_remove',
  15. method: 'post',
  16. params: { ids },
  17. }, msg)
  18. },
  19. //修改
  20. async update(form, msg = true) {
  21. return HcApi({
  22. url: '/api/blade-business/entrustinfo/update',
  23. method: 'post',
  24. data: form,
  25. }, msg)
  26. },
  27. //详情
  28. async detail(id, msg = true) {
  29. return HcApi({
  30. url: '/api/blade-business/detection/self/trialSelfInById',
  31. method: 'post',
  32. params: { id },
  33. }, msg)
  34. },
  35. }