warnLog.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*********************** 【锁定记录、出入库记录】API ********************/
  2. import axiosApi from '../AxiosApi.js'
  3. const apiList = {
  4. getList: {
  5. method: 'POST',
  6. url: `/authority/warnLog/all`
  7. },
  8. page: {
  9. method: 'POST',
  10. url: `/authority/warnLog/page`
  11. },
  12. update: {
  13. method: 'POST',
  14. url: `/authority/warnLog/update`
  15. },
  16. save: {
  17. method: 'POST',
  18. url: `/authority/warnLog`
  19. },
  20. updateStatus: {
  21. method: 'GET',
  22. url: `/authority/warnLog/updateStatus`
  23. },
  24. remove: {
  25. method: 'DELETE',
  26. url: `/authority/warnLog`
  27. },
  28. delete: {
  29. method: 'POST',
  30. url: `/authority/warnLog/delete`
  31. },
  32. list: {
  33. method: 'POST',
  34. url: `/authority/warnLog/query`
  35. },
  36. preview: {
  37. method: 'POST',
  38. url: `/authority/warnLog/preview`
  39. },
  40. export: {
  41. method: 'POST',
  42. url: `/authority/warnLog/export`
  43. },
  44. import: {
  45. method: 'POST',
  46. url: `/authority/warnLog/import`
  47. },
  48. resend: {
  49. method: 'POST',
  50. url: `/authority/dispatchException/resend`
  51. },
  52. complete: {
  53. method: 'POST',
  54. url: `/authority/dispatchException/complete`
  55. },
  56. connected: {
  57. method: 'POST',
  58. url: `/authority/taskNode/getConnectedNodes`
  59. },
  60. getStorageNode: {
  61. method: 'POST',
  62. url: `/authority/taskNode/getResourceStorge`
  63. },
  64. nodeCallback: {
  65. method: 'POST',
  66. url: `/authority/dispatchException/nodeCallback`
  67. }
  68. }
  69. export default {
  70. getList (data) {
  71. return axiosApi({
  72. ...apiList.getList,
  73. data
  74. })
  75. },
  76. page (data) {
  77. return axiosApi({
  78. ...apiList.page,
  79. data
  80. })
  81. },
  82. save (data) {
  83. return axiosApi({
  84. ...apiList.save,
  85. data
  86. })
  87. },
  88. update (data) {
  89. return axiosApi({
  90. ...apiList.update,
  91. data
  92. })
  93. },
  94. updateStatus (data) {
  95. return axiosApi({
  96. ...apiList.updateStatus,
  97. data
  98. })
  99. },
  100. remove (data) {
  101. return axiosApi({
  102. ...apiList.remove,
  103. data
  104. })
  105. },
  106. delete (data) {
  107. return axiosApi({
  108. ...apiList.remove,
  109. data
  110. })
  111. },
  112. list (data) {
  113. return axiosApi({
  114. ...apiList.list,
  115. data
  116. })
  117. },
  118. check (code) {
  119. return axiosApi({
  120. method: 'GET',
  121. url: `/authority/warnLog/check/${code}`
  122. })
  123. },
  124. checkField (data) {
  125. return axiosApi({
  126. method: 'POST',
  127. url: `/authority/warnLog/check`,
  128. data
  129. })
  130. },
  131. preview (data) {
  132. return axiosApi({
  133. ...apiList.preview,
  134. data
  135. })
  136. },
  137. export (data) {
  138. return axiosApi({
  139. ...apiList.export,
  140. responseType: "blob",
  141. data
  142. })
  143. },
  144. import (data) {
  145. return axiosApi({
  146. ...apiList.import,
  147. data
  148. })
  149. },
  150. resend (data) {
  151. return axiosApi({
  152. ...apiList.resend,
  153. data
  154. })
  155. },
  156. complete (data) {
  157. return axiosApi({
  158. ...apiList.complete,
  159. data
  160. })
  161. },
  162. connected (data) {
  163. return axiosApi({
  164. ...apiList.connected,
  165. data
  166. })
  167. },
  168. getStorageNode (data) {
  169. return axiosApi({
  170. ...apiList.getStorageNode,
  171. data
  172. })
  173. },
  174. nodeCallback (data) {
  175. return axiosApi({
  176. ...apiList.nodeCallback,
  177. data
  178. })
  179. }
  180. }