warnLog.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. getLineWarn: {
  69. method: 'POST',
  70. url: `/authority/warnLog/getLineWarn`
  71. }
  72. }
  73. export default {
  74. getList (data) {
  75. return axiosApi({
  76. ...apiList.getList,
  77. data
  78. })
  79. },
  80. page (data) {
  81. return axiosApi({
  82. ...apiList.page,
  83. data
  84. })
  85. },
  86. save (data) {
  87. return axiosApi({
  88. ...apiList.save,
  89. data
  90. })
  91. },
  92. update (data) {
  93. return axiosApi({
  94. ...apiList.update,
  95. data
  96. })
  97. },
  98. updateStatus (data) {
  99. return axiosApi({
  100. ...apiList.updateStatus,
  101. data
  102. })
  103. },
  104. remove (data) {
  105. return axiosApi({
  106. ...apiList.remove,
  107. data
  108. })
  109. },
  110. delete (data) {
  111. return axiosApi({
  112. ...apiList.remove,
  113. data
  114. })
  115. },
  116. list (data) {
  117. return axiosApi({
  118. ...apiList.list,
  119. data
  120. })
  121. },
  122. check (code) {
  123. return axiosApi({
  124. method: 'GET',
  125. url: `/authority/warnLog/check/${code}`
  126. })
  127. },
  128. checkField (data) {
  129. return axiosApi({
  130. method: 'POST',
  131. url: `/authority/warnLog/check`,
  132. data
  133. })
  134. },
  135. preview (data) {
  136. return axiosApi({
  137. ...apiList.preview,
  138. data
  139. })
  140. },
  141. export (data) {
  142. return axiosApi({
  143. ...apiList.export,
  144. responseType: "blob",
  145. data
  146. })
  147. },
  148. import (data) {
  149. return axiosApi({
  150. ...apiList.import,
  151. data
  152. })
  153. },
  154. resend (data) {
  155. return axiosApi({
  156. ...apiList.resend,
  157. data
  158. })
  159. },
  160. complete (data) {
  161. return axiosApi({
  162. ...apiList.complete,
  163. data
  164. })
  165. },
  166. connected (data) {
  167. return axiosApi({
  168. ...apiList.connected,
  169. data
  170. })
  171. },
  172. getStorageNode (data) {
  173. return axiosApi({
  174. ...apiList.getStorageNode,
  175. data
  176. })
  177. },
  178. nodeCallback (data) {
  179. return axiosApi({
  180. ...apiList.nodeCallback,
  181. data
  182. })
  183. },
  184. getLineWarn (data) {
  185. return axiosApi({
  186. ...apiList.getLineWarn,
  187. data
  188. })
  189. }
  190. }