index.js 705 B

1234567891011121314151617181920212223242526272829303132333435
  1. import axios from '@/libs/axios.js'
  2. // 新增采集信息
  3. export const gatherList = params => {
  4. return axios.request({
  5. url: `gather/query/${params.pageNo}/${params.pageSize}`,
  6. method: 'post',
  7. data: params
  8. })
  9. }
  10. // 查询采集信息详情
  11. export const gatherDetail = (params) => {
  12. return axios.request({
  13. url: `gather/findById/${params.id}`,
  14. method: 'get',
  15. })
  16. }
  17. // 采集信息总计
  18. export const gatherTotal = (params) => {
  19. return axios.request({
  20. url: `gather/queryListSum`,
  21. method: 'post',
  22. data: params
  23. })
  24. }
  25. // 保存采集信息详情
  26. export const gatherSave = (params) => {
  27. return axios.request({
  28. url: `gather/save`,
  29. method: 'post',
  30. data:params
  31. })
  32. }