departmentManagement.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. export function adminDeptList(data) {
  3. return request({
  4. url: `/admin/dept/list?moduleId=${data.moduleId}`,
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function adminDeptListExport(data, name) {
  10. return postBlob({
  11. url: '/admin/dept/list/export',
  12. data,
  13. name
  14. })
  15. }
  16. export function adminDeptTree(params) {
  17. return request({
  18. url: '/admin/dept/tree',
  19. method: 'get',
  20. params
  21. })
  22. }
  23. export function adminDeptAdd(data) {
  24. return request({
  25. url: '/admin/dept/add',
  26. method: 'post',
  27. data
  28. })
  29. }
  30. export function adminDeptUpdate(data) {
  31. return request({
  32. url: '/admin/dept/update',
  33. method: 'post',
  34. data
  35. })
  36. }
  37. export function adminDeptDel(params) {
  38. return request({
  39. url: '/admin/dept/del',
  40. method: 'post',
  41. params
  42. })
  43. }
  44. export function adminDeptAddWebsit(params) {
  45. return request({
  46. url: '/admin/dept/addWebsit',
  47. method: 'post',
  48. params
  49. })
  50. }
  51. export function adminDeptUpdateWebsit(data) {
  52. return request({
  53. url: '/admin/dept/updateWebsit',
  54. method: 'post',
  55. data
  56. })
  57. }
  58. export function adminDeptDelWebsit(params) {
  59. return request({
  60. url: '/admin/dept/delWebsit',
  61. method: 'post',
  62. params
  63. })
  64. }
  65. export function adminDeptTreeWebsit(params) {
  66. return request({
  67. url: '/admin/dept/treeWebsit',
  68. method: 'get',
  69. params
  70. })
  71. }