dept.js 752 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import http from '@/http/api.js'
  2. // 部门管理
  3. export const getList = (params) => {
  4. return http.request({
  5. url: '/api/blade-system/dept/lazy-list',
  6. method: 'GET',
  7. params
  8. })
  9. }
  10. export const deptTree = (params) => {
  11. return http.request({
  12. url: '/api/blade-system/dept/tree',
  13. method: 'GET',
  14. params
  15. })
  16. }
  17. export const remove = (ids) => {
  18. return http.request({
  19. url: '/api/blade-system/dept/remove',
  20. method: 'post',
  21. params: {
  22. ids,
  23. }
  24. })
  25. }
  26. export const add = (row) => {
  27. return http.request({
  28. url: '/api/blade-system/dept/submit',
  29. method: 'post',
  30. data: row
  31. })
  32. }
  33. export const update = (row) => {
  34. return http.request({
  35. url: '/api/blade-system/dept/submit',
  36. method: 'post',
  37. data: row
  38. })
  39. }