processService.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import request from "../../common/request"
  2. export default {
  3. list: function (params) {
  4. return request({
  5. url: '/flowable/process/list',
  6. method: 'get',
  7. params: params
  8. })
  9. },
  10. runningDataList: function (params) {
  11. return request({
  12. url: '/flowable/process/runningData',
  13. method: 'get',
  14. params: params
  15. })
  16. },
  17. historyListData: function (params) {
  18. return request({
  19. url: '/flowable/process/historyListData',
  20. method: 'get',
  21. params: params
  22. })
  23. },
  24. revokeProcIns: function (id) {
  25. return request({
  26. url: '/flowable/process/revokeProcIns',
  27. method: 'put',
  28. params: { id: id }
  29. })
  30. },
  31. deleteProcIns: function (ids, reason) {
  32. return request({
  33. url: '/flowable/process/deleteProcIns',
  34. method: 'delete',
  35. params: {
  36. ids: ids,
  37. reason: reason
  38. }
  39. })
  40. },
  41. deleteAllProcIns: function (ids) {
  42. return request({
  43. url: '/flowable/process/deleteAllProcIns',
  44. method: 'delete',
  45. params: { procInsIds: ids }
  46. })
  47. },
  48. suspend: function (procDefId) {
  49. return request({
  50. url: '/flowable/process/update/suspend',
  51. method: 'put',
  52. params: { procDefId: procDefId }
  53. })
  54. },
  55. active: function (procDefId) {
  56. return request({
  57. url: '/flowable/process/update/active',
  58. method: 'put',
  59. params: { procDefId: procDefId }
  60. })
  61. },
  62. stop: function (id, message) {
  63. return request({
  64. url: '/flowable/process/stop',
  65. method: 'put',
  66. params: { id: id, message: message }
  67. })
  68. },
  69. getFlowChart: function (processDefId) {
  70. return request({
  71. url: '/flowable/process/getFlowChart',
  72. method: 'get',
  73. params: { processDefId: processDefId }
  74. })
  75. },
  76. queryProcessStatus: function (procDefId, procInsId) {
  77. return request({
  78. url: '/flowable/process/queryProcessStatus',
  79. method: 'get',
  80. params: { procDefId: procDefId, procInsId: procInsId }
  81. })
  82. },
  83. exist: function (key) {
  84. return request({
  85. url: '/flowable/process/exist',
  86. method: 'get',
  87. params: { key: key }
  88. })
  89. }
  90. }