综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

finished.js 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * @Author: wrh
  3. * @Date: 2024-01-03 08:55:37
  4. * @LastEditors: wrh
  5. * @LastEditTime: 2024-06-12 15:41:26
  6. */
  7. import request from '@/utils/request'
  8. // 查询已办任务列表
  9. export function finishedList(query) {
  10. return request({
  11. url: '/flowable/task/finishedList',
  12. method: 'get',
  13. params: query
  14. })
  15. }
  16. // 任务流转记录
  17. export function flowRecord(query) {
  18. return request({
  19. url: '/flowable/task/flowRecord',
  20. method: 'get',
  21. params: query
  22. })
  23. }
  24. // 任务流转记录
  25. export function flowRecordFull(query) {
  26. return request({
  27. url: '/flowable/task/flowRecordFull',
  28. method: 'get',
  29. params: query
  30. })
  31. }
  32. // 撤回任务
  33. export function revokeProcess(data) {
  34. return request({
  35. url: '/flowable/task/revokeProcess',
  36. method: 'post',
  37. data: data
  38. })
  39. }
  40. // 部署流程实例
  41. export function deployStart(deployId) {
  42. return request({
  43. url: '/flowable/process/startFlow/' + deployId,
  44. method: 'get',
  45. })
  46. }
  47. // 查询流程定义详细
  48. export function getDeployment(id) {
  49. return request({
  50. url: '/system/deployment/' + id,
  51. method: 'get'
  52. })
  53. }
  54. // 新增流程定义
  55. export function addDeployment(data) {
  56. return request({
  57. url: '/system/deployment',
  58. method: 'post',
  59. data: data
  60. })
  61. }
  62. // 修改流程定义
  63. export function updateDeployment(data) {
  64. return request({
  65. url: '/system/deployment',
  66. method: 'put',
  67. data: data
  68. })
  69. }
  70. // 删除流程定义
  71. export function delDeployment(id) {
  72. return request({
  73. url: '/flowable/instance/delete/' + id,
  74. method: 'delete'
  75. })
  76. }
  77. // 导出流程定义
  78. export function exportDeployment(query) {
  79. return request({
  80. url: '/system/deployment/export',
  81. method: 'get',
  82. params: query
  83. })
  84. }