servicePerson.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import request from '@/router/axios';
  2. export const getOrgTree = () => {
  3. return request({
  4. url: '/api/galaxy-business/serviceperson/org/dict',
  5. method: 'get',
  6. })
  7. }
  8. export const getPage = (current, size, params) => {
  9. return request({
  10. url: '/api/galaxy-business/serviceperson/page',
  11. method: 'get',
  12. params: {
  13. ...params,
  14. current,
  15. size,
  16. }
  17. })
  18. }
  19. export const remove = (ids) => {
  20. return request({
  21. url: '/api/galaxy-business/serviceperson/remove',
  22. method: 'post',
  23. params: {
  24. ids,
  25. }
  26. })
  27. }
  28. export const add = (row) => {
  29. return request({
  30. url: '/api/galaxy-business/serviceperson/save',
  31. method: 'post',
  32. data: row
  33. })
  34. }
  35. export const update = (row) => {
  36. return request({
  37. url: '/api/galaxy-business/serviceperson/update',
  38. method: 'post',
  39. data: row
  40. })
  41. }
  42. export const getDetail = (id) => {
  43. return request({
  44. url: '/api/galaxy-business/serviceperson/detail',
  45. method: 'get',
  46. params: {
  47. id
  48. }
  49. })
  50. }
  51. export const getList = () => {
  52. return request({
  53. url: '/api/galaxy-business/serviceperson/list',
  54. method: 'get',
  55. })
  56. }