trafficInfo.js 997 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/utils/request'
  2. // 查询交通对象列表
  3. export function listTrafficInfo(query) {
  4. return request({
  5. url: '/info/trafficInfo/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询交通对象详细
  11. export function getTrafficInfo(trafficId) {
  12. return request({
  13. url: '/info/trafficInfo/' + trafficId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增交通对象
  18. export function addTrafficInfo(data) {
  19. return request({
  20. url: '/info/trafficInfo',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改交通对象
  26. export function updateTrafficInfo(data) {
  27. return request({
  28. url: '/info/trafficInfo',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除交通对象
  34. export function delTrafficInfo(trafficId) {
  35. return request({
  36. url: '/info/trafficInfo/' + trafficId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出交通对象
  41. export function exportTrafficInfo(query) {
  42. return request({
  43. url: '/info/trafficInfo/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }