todo.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import request from '@/utils/request'
  2. import da from "element-ui/src/locale/lang/da";
  3. // 查询待办任务列表
  4. export function todoList(query) {
  5. return request({
  6. url: '/flowable/task/todoList',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. // 完成任务
  12. export function complete(data) {
  13. return request({
  14. url: '/flowable/task/complete',
  15. method: 'post',
  16. data: data
  17. })
  18. }
  19. // 委派任务
  20. export function delegate(data) {
  21. return request({
  22. url: '/flowable/task/delegate',
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. // 退回任务
  28. export function returnTask(data) {
  29. return request({
  30. url: '/flowable/task/return',
  31. method: 'post',
  32. data: data
  33. })
  34. }
  35. // 驳回任务
  36. export function rejectTask(data) {
  37. return request({
  38. url: '/flowable/task/reject',
  39. method: 'post',
  40. data: data
  41. })
  42. }
  43. // 可退回任务列表
  44. export function returnList(data) {
  45. return request({
  46. url: '/flowable/task/returnList',
  47. method: 'post',
  48. data: data
  49. })
  50. }
  51. // 下一节点
  52. export function getNextFlowNode(data) {
  53. return request({
  54. url: '/flowable/task/nextFlowNode',
  55. method: 'post',
  56. data: data
  57. })
  58. }
  59. // 下一节点
  60. export function getNextFlowNodeByStart(data) {
  61. return request({
  62. url: '/flowable/task/nextFlowNodeByStart',
  63. method: 'post',
  64. data: data
  65. })
  66. }
  67. // 部署流程实例
  68. export function deployStart(deployId) {
  69. return request({
  70. url: '/flowable/process/startFlow/' + deployId,
  71. method: 'get',
  72. })
  73. }
  74. // 查询流程定义详细
  75. export function getDeployment(id) {
  76. return request({
  77. url: '/system/deployment/' + id,
  78. method: 'get'
  79. })
  80. }
  81. // 新增流程定义
  82. export function addDeployment(data) {
  83. return request({
  84. url: '/system/deployment',
  85. method: 'post',
  86. data: data
  87. })
  88. }
  89. // 修改流程定义
  90. export function updateDeployment(data) {
  91. return request({
  92. url: '/system/deployment',
  93. method: 'put',
  94. data: data
  95. })
  96. }
  97. // 删除流程定义
  98. export function delDeployment(id) {
  99. return request({
  100. url: '/system/deployment/' + id,
  101. method: 'delete'
  102. })
  103. }
  104. // 导出流程定义
  105. export function exportDeployment(query) {
  106. return request({
  107. url: '/system/deployment/export',
  108. method: 'get',
  109. params: query
  110. })
  111. }
  112. // 流程节点表单
  113. export function flowTaskForm(query) {
  114. return request({
  115. url: '/flowable/task/flowTaskForm',
  116. method: 'get',
  117. params: query
  118. })
  119. }