index.ts 952 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * @FilePath: index.ts
  3. * @Author: 旭颖
  4. * @Date: 2023-01-10 14:17:56
  5. * @LastEditors: king
  6. * @LastEditTime: 2023-01-16 11:25:45
  7. */
  8. import request from '@/utils/request'
  9. //获取审核流程
  10. export function getFlows(params: any) {
  11. return request({
  12. url: '/check/flow/nodes',
  13. method: 'get',
  14. params,
  15. })
  16. }
  17. //获取审核设置id
  18. export function getFlowsId(params: any) {
  19. return request({
  20. url: '/check/flows',
  21. method: 'get',
  22. params,
  23. })
  24. }
  25. //获取管理员列表选项
  26. export function getCheckAdmin(params: any) {
  27. return request({
  28. url: '/base/admin/select-options',
  29. method: 'get',
  30. params,
  31. })
  32. }
  33. //获取岗位列表选项
  34. export function getCheckPoster(params: any) {
  35. return request({
  36. url: '/base/job/select-options',
  37. method: 'get',
  38. params,
  39. })
  40. }
  41. //保存节点
  42. export function doAdd(data: any) {
  43. return request({
  44. url: '/check/flow/save-nodes',
  45. method: 'post',
  46. data,
  47. })
  48. }