dept.js 855 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import request from '@/utils/request'
  2. // 查询部门列表
  3. export function listdept(query) {
  4. return request({
  5. url: '/system/matter/listdept',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // // 查询部门详细
  11. // export function getDept(id) {
  12. // return request({
  13. // url: '/system/department/lists/' + id,
  14. // method: 'get'
  15. // })
  16. // }
  17. // // 新增部门
  18. // export function addDept(data) {
  19. // return request({
  20. // url: '/system/department/add',
  21. // method: 'post',
  22. // data: data
  23. // })
  24. // }
  25. // // 修改部门
  26. // export function updateDept(data) {
  27. // return request({
  28. // url: '/system/department/update/',
  29. // method: 'put',
  30. // data: data
  31. // })
  32. // }
  33. // // 删除部门
  34. // export function delDept(id) {
  35. // return request({
  36. // url: '/system/department/delete/' + id,
  37. // method: 'delete'
  38. // })}