productionResourcesMgr.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import axiosApi from '../AxiosApi.js'
  2. const apiList = {
  3. getAllList: {
  4. method: 'POST',
  5. url: `/authority/productionresource/all`
  6. },
  7. getList: {
  8. method: 'POST',
  9. url: `/authority/productionresource/getList`
  10. },
  11. page: {
  12. method: 'POST',
  13. url: `/authority/productionresource/page`
  14. },
  15. getBusinessList: {
  16. method: 'POST',
  17. url: `/authority/productionresource/getList`
  18. },
  19. save: {
  20. method: 'POST',
  21. url: `/authority/productionresource`
  22. },
  23. update: {
  24. method: 'POST',
  25. url: `/authority/productionresource/update`
  26. },
  27. remove: {
  28. method: 'DELETE',
  29. url: `/authority/productionresource`
  30. },
  31. removeMore: {
  32. method: 'POST',
  33. url: `/authority/productionresource/delete`
  34. },
  35. updateStatus: {
  36. method: 'POST',
  37. url: `/authority/productionresource/updateStatus`
  38. }
  39. }
  40. export default {
  41. getList (data) {
  42. return axiosApi({
  43. ...apiList.getList,
  44. data
  45. })
  46. },
  47. getAllList(data) {
  48. return axiosApi({
  49. ...apiList.getAllList,
  50. data
  51. })
  52. },
  53. page (data) {
  54. return axiosApi({
  55. ...apiList.page,
  56. data
  57. })
  58. },
  59. save (data) {
  60. return axiosApi({
  61. ...apiList.save,
  62. data
  63. })
  64. },
  65. update (data) {
  66. return axiosApi({
  67. ...apiList.update,
  68. data
  69. })
  70. },
  71. remove (data) {
  72. return axiosApi({
  73. ...apiList.remove,
  74. data
  75. })
  76. },
  77. removeMore (data) {
  78. return axiosApi({
  79. ...apiList.removeMore,
  80. data
  81. })
  82. },
  83. updateStatus (data) {
  84. return axiosApi({
  85. ...apiList.updateStatus,
  86. data
  87. })
  88. },
  89. detail (id) {
  90. return axiosApi({
  91. method: 'GET',
  92. url: `/authority/productionresource/${id}`
  93. })
  94. }
  95. }