processService.js 2.1 KB

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