flow.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { httpApi } from '../../request/httpApi'
  2. export default {
  3. //分页数据
  4. async getPageData(form) {
  5. return httpApi({
  6. url: '/api/blade-business/fixedFlow/page',
  7. method: 'get',
  8. params: form,
  9. })
  10. },
  11. //获取系统所有角色划分
  12. async queryAllRoleList(form) {
  13. return httpApi({
  14. url: '/api/blade-business/fixedFlow/queryAllRoleList',
  15. method: 'get',
  16. params: form,
  17. })
  18. },
  19. //详情
  20. async queryFixedFlowDetail(form) {
  21. return httpApi({
  22. url: '/api/blade-business/fixedFlow/detail',
  23. method: 'get',
  24. params: form,
  25. })
  26. },
  27. //新增
  28. async addFixedFlowData(form) {
  29. return httpApi({
  30. url: '/api/blade-business/fixedFlow/save',
  31. method: 'post',
  32. data: form,
  33. })
  34. },
  35. //修改
  36. async updateFixedFlowData(form) {
  37. return httpApi({
  38. url: '/api/blade-business/fixedFlow/update',
  39. method: 'post',
  40. data: form,
  41. })
  42. },
  43. //删除
  44. async removeFixedFlowData(form) {
  45. return httpApi({
  46. url: '/api/blade-business/fixedFlow/remove',
  47. method: 'post',
  48. params: form,
  49. })
  50. },
  51. }