department.ts 738 B

12345678910111213141516171819202122232425262728293031
  1. import request from '@/utils/request'
  2. // 列表
  3. export function deptLists(params?: any) {
  4. return request.get({ url: '/system/dept/list', params })
  5. }
  6. // 添加
  7. export function deptAdd(params: any) {
  8. return request.post({ url: '/system/dept/add', params })
  9. }
  10. // 编辑
  11. export function deptEdit(params: any) {
  12. return request.post({ url: '/system/dept/edit', params })
  13. }
  14. // 删除
  15. export function deptDelete(params: any) {
  16. return request.post({ url: '/system/dept/del', params })
  17. }
  18. // 详情
  19. export function deptDetail(params?: any) {
  20. return request.get({ url: '/system/dept/detail', params })
  21. }
  22. //二维码
  23. export function createQr(params?: any) {
  24. return request.get({ url: '/system/dept/createQR', params })
  25. }