checkTaskConfig.js 926 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import axios from '@/libs/axios.js'
  2. // 点检配置列表查询
  3. export const getCheckTaskConfigList = params => {
  4. return axios.request({
  5. url: `checkTaskConfig/query/${params.pageNo}/${params.pageSize}`,
  6. method: 'post',
  7. data: params
  8. })
  9. }
  10. // 点检配置删除
  11. export const delCheckTaskConfig = params => {
  12. return axios.request({
  13. url: `checkTaskConfig/delete/${params.id}`,
  14. method: 'get'
  15. })
  16. }
  17. // 点检配置启禁用
  18. export const enableCheckTaskConfig = params => {
  19. return axios.request({
  20. url: `checkTaskConfig/enable/${params.id}/${params.flag}`,
  21. method: 'get'
  22. })
  23. }
  24. // 点检配置详情
  25. export const getCheckTaskConfig = params => {
  26. return axios.request({
  27. url: `checkTaskConfig/find/${params.id}`,
  28. method: 'get'
  29. })
  30. }
  31. // 保存点检配置
  32. export const saveBackLog = params => {
  33. return axios.request({
  34. url: `checkTaskConfig/save`,
  35. method: 'post',
  36. data: params
  37. })
  38. }