process.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import request from '@/benyun/utils/request'
  2. import da from "element-ui/src/locale/lang/da";
  3. // 我的发起的流程
  4. export function myProcessList(query) {
  5. return request({
  6. url: '/system/flowable/task/myProcess',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. export function flowFormData(query) {
  12. return request({
  13. url: '/system/flowable/task/flowFormData',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 完成任务
  19. export function complete(data) {
  20. return request({
  21. url: '/system/flowable/task/complete',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 取消申请
  27. export function stopProcess(data) {
  28. return request({
  29. url: '/system/flowable/task/stopProcess',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 驳回任务
  35. export function rejectTask(data) {
  36. return request({
  37. url: '/system/flowable/task/reject',
  38. method: 'post',
  39. data: data
  40. })
  41. }
  42. // 可退回任务列表
  43. export function returnList(data) {
  44. return request({
  45. url: '/system/flowable/task/returnList',
  46. method: 'post',
  47. data: data
  48. })
  49. }
  50. // 部署流程实例
  51. export function deployStart(deployId) {
  52. return request({
  53. url: '/system/flowable/process/startFlow/' + deployId,
  54. method: 'get',
  55. })
  56. }
  57. // 查询流程定义详细
  58. export function getDeployment(id) {
  59. return request({
  60. url: '/system/system/deployment/' + id,
  61. method: 'get'
  62. })
  63. }
  64. // 新增流程定义
  65. export function addDeployment(data) {
  66. return request({
  67. url: '/system/system/deployment',
  68. method: 'post',
  69. data: data
  70. })
  71. }
  72. // 修改流程定义
  73. export function updateDeployment(data) {
  74. return request({
  75. url: '/system/system/deployment',
  76. method: 'put',
  77. data: data
  78. })
  79. }
  80. // 删除流程定义
  81. export function delDeployment(id) {
  82. return request({
  83. url: '/system/system/deployment/' + id,
  84. method: 'delete'
  85. })
  86. }
  87. // 导出流程定义
  88. export function exportDeployment(query) {
  89. return request({
  90. url: '/system/system/deployment/export',
  91. method: 'get',
  92. params: query
  93. })
  94. }