checkTaskConfig.js 896 B

123456789101112131415161718192021222324252627282930313233343536
  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. })
  8. }
  9. // 点检配置删除
  10. export const delCheckTaskConfig = params => {
  11. return axios.request({
  12. url: `checkTaskConfig/delete/${params.id}`,
  13. method: 'get'
  14. })
  15. }
  16. // 点检配置启禁用
  17. export const enableCheckTaskConfig = params => {
  18. return axios.request({
  19. url: `checkTaskConfig/enable/${params.id}/${params.flag}`,
  20. method: 'get'
  21. })
  22. }
  23. // 点检配置详情
  24. export const getCheckTaskConfig = params => {
  25. return axios.request({
  26. url: `checkTaskConfig/find/${params.id}`,
  27. method: 'get'
  28. })
  29. }
  30. // 保存点检配置
  31. export const saveBackLog = params => {
  32. return axios.request({
  33. url: `checkTaskConfig/save`,
  34. method: 'post'
  35. })
  36. }