info.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询油站信息列表
  3. export function listInfo(query) {
  4. return request({
  5. url: '/station/info/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询油站信息详细
  11. export function getInfo(stationId) {
  12. return request({
  13. url: '/station/info/' + stationId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增油站信息
  18. export function addInfo(data) {
  19. return request({
  20. url: '/station/info',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改油站信息
  26. export function updateInfo(data) {
  27. return request({
  28. url: '/station/info',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除油站信息
  34. export function delInfo(stationId) {
  35. return request({
  36. url: '/station/info/' + stationId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出油站信息
  41. export function exportInfo(query) {
  42. return request({
  43. url: '/station/info/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. //查询油站信息
  49. export function selectStationInfo() {
  50. return request({
  51. url: '/station/info/selectStationInfo',
  52. method: 'get'
  53. })
  54. }