structure.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import request from '@/utils/request'
  2. // 查询班结管理列表
  3. export function listStructure(query) {
  4. return request({
  5. url: '/station/structure/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function listPersonnelStructure(query) {
  11. return request({
  12. url: '/station/structure/listPersonnelStructure',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. export function listPersonnelPayStructure(query) {
  18. return request({
  19. url: '/station/structure/listPersonnelPayStructure',
  20. method: 'get',
  21. params: query
  22. })
  23. }
  24. export function listClass(query) {
  25. return request({
  26. url: '/station/structure/listClass',
  27. method: 'get',
  28. params: query
  29. })
  30. }
  31. export function listOilStructure(query) {
  32. return request({
  33. url: '/station/structure/listOilStructure',
  34. method: 'get',
  35. params: query
  36. })
  37. }
  38. // 查询油站信息列表
  39. export function stationinfo() {
  40. return request({
  41. url: '/station/info/selectStationInfo',
  42. method: 'get'
  43. })
  44. }
  45. // 查询班结管理详细
  46. export function getStructure(id) {
  47. return request({
  48. url: '/station/structure/' + id,
  49. method: 'get'
  50. })
  51. }
  52. // 新增班结管理
  53. export function addStructure(data) {
  54. return request({
  55. url: '/station/structure',
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. // 修改班结管理
  61. export function updateStructure(data) {
  62. return request({
  63. url: '/station/structure',
  64. method: 'put',
  65. data: data
  66. })
  67. }
  68. // 删除班结管理
  69. export function delStructure(id) {
  70. return request({
  71. url: '/station/structure/' + id,
  72. method: 'delete'
  73. })
  74. }
  75. // 导出班结管理
  76. export function exportStructure(query) {
  77. return request({
  78. url: '/station/structure/export',
  79. method: 'get',
  80. params: query
  81. })
  82. }