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

form.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. // 查询流程表单列表
  3. export function listForm(query) {
  4. return request({
  5. url: '/flowable/form/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function listAllForm(query) {
  11. return request({
  12. url: '/flowable/form/formList',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. // 查询流程表单详细
  18. export function getForm(formId) {
  19. return request({
  20. url: '/flowable/form/' + formId,
  21. method: 'get'
  22. })
  23. }
  24. // 新增流程表单
  25. export function addForm(data) {
  26. return request({
  27. url: '/flowable/form',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. // 修改流程表单
  33. export function updateForm(data) {
  34. return request({
  35. url: '/flowable/form',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 挂载表单
  41. export function addDeployForm(data) {
  42. return request({
  43. url: '/flowable/form/addDeployForm',
  44. method: 'post',
  45. data: data
  46. })
  47. }
  48. // 删除流程表单
  49. export function delForm(formId) {
  50. return request({
  51. url: '/flowable/form/' + formId,
  52. method: 'delete'
  53. })
  54. }
  55. // 导出流程表单
  56. export function exportForm(query) {
  57. return request({
  58. url: '/flowable/form/export',
  59. method: 'get',
  60. params: query
  61. })
  62. }