gun.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. // 查询油枪管理列表
  3. export function listGun(query) {
  4. return request({
  5. url: '/station/gun/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function selectGun() {
  11. return request({
  12. url: '/station/gun/selectGun',
  13. method: 'get'
  14. })
  15. }
  16. // 查询油站信息列表
  17. export function stationinfo(query) {
  18. return request({
  19. url: '/station/info/selectStationInfo',
  20. method: 'get',
  21. params: query
  22. })
  23. }
  24. // 查询油枪管理详细
  25. export function getGun(oilGunId) {
  26. return request({
  27. url: '/station/gun/' + oilGunId,
  28. method: 'get'
  29. })
  30. }
  31. // 新增油枪管理
  32. export function addGun(data) {
  33. return request({
  34. url: '/station/gun',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. // 修改油枪管理
  40. export function updateGun(data) {
  41. return request({
  42. url: '/station/gun',
  43. method: 'put',
  44. data: data
  45. })
  46. }
  47. // 删除油枪管理
  48. export function delGun(oilGunId) {
  49. return request({
  50. url: '/station/gun/' + oilGunId,
  51. method: 'delete'
  52. })
  53. }
  54. // 导出油枪管理
  55. export function exportGun(query) {
  56. return request({
  57. url: '/station/gun/export',
  58. method: 'get',
  59. params: query
  60. })
  61. }