阅行客电子档案
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.

83 lines
1.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import request from '@/utils/request'
  2. // 获取全部流程列表
  3. export function FetchInitFlowAll(params) {
  4. return request({
  5. url: 'api/flowable/initFlowAll',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 获取运行中/历史流程列表
  11. export function FetchFlowList(params) {
  12. return request({
  13. url: 'api/flowable/getFlowList',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 部署
  19. export function FetchDeloy(data) {
  20. return request({
  21. url: 'api/flowable/deploy',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 激活挂起
  27. export function FetchSuspendActivate(params) {
  28. return request({
  29. url: 'api/flowable/suspendActivate',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. // 根据key获取历史版本
  35. export function FetchAllByKey(params) {
  36. return request({
  37. url: 'api/flowable/getAllByKey',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. // 下载
  43. export function FetchLeadingOutModelXml(params) {
  44. return request({
  45. url: 'api/flowable/leadingOutModelXml',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. export function FetchGenProcessDiagram(params) {
  51. return request({
  52. url: 'api/flowable/genProcessDiagram',
  53. method: 'get',
  54. params
  55. })
  56. }
  57. // 根据部署id获取流程图
  58. export function FetchFindFolwImgByModelId(params) {
  59. return request({
  60. url: 'api/flowable/findFolwImgByModelId',
  61. method: 'get',
  62. params
  63. })
  64. }
  65. // 根据部署id获取流程图
  66. export function FetchTaskByProcinstId(params) {
  67. return request({
  68. url: 'api/flowable/getTaskByProcinstId',
  69. method: 'get',
  70. params
  71. })
  72. }
  73. export default { FetchInitFlowAll, FetchFlowList, FetchDeloy, FetchSuspendActivate, FetchAllByKey, FetchLeadingOutModelXml, FetchFindFolwImgByModelId, FetchTaskByProcinstId }