综合办公系统
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.7KB

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