pipe.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import request from '@/utils/request'
  2. // 查询管道列表
  3. export function listPipe(query) {
  4. return request({
  5. url: '/pssr/pipe/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询管道列表
  11. export function syncPipe(query) {
  12. return request({
  13. url: '/pssr/pipe/syncPipe',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询管道详细
  19. export function getPipe(id) {
  20. return request({
  21. url: '/pssr/pipe/' + id,
  22. method: 'get'
  23. })
  24. }
  25. // 新增管道
  26. export function addPipe(data) {
  27. return request({
  28. url: '/pssr/pipe',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改管道
  34. export function updatePipe(data) {
  35. return request({
  36. url: '/pssr/pipe',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 修改管道
  42. export function updatePipeBatch(data) {
  43. return request({
  44. url: '/pssr/pipe/editBatch',
  45. method: 'put',
  46. data: data
  47. })
  48. }
  49. // 删除管道
  50. export function delPipe(id) {
  51. return request({
  52. url: '/pssr/pipe/' + id,
  53. method: 'delete'
  54. })
  55. }
  56. // 导出管道
  57. export function exportPipe(query) {
  58. return request({
  59. url: '/pssr/pipe/export',
  60. method: 'get',
  61. params: query
  62. })
  63. }