农经大屏
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

54 Zeilen
1.0 KiB

  1. import request from '@/utils/request'
  2. // 查询用户和账套关系列表
  3. export function listBook(query) {
  4. return request({
  5. url: '/system/book/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询用户和账套关系详细
  11. export function getBook(userId) {
  12. return request({
  13. url: '/system/book/get/' + userId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增用户和账套关系
  18. export function addBook(data) {
  19. return request({
  20. url: '/system/book/add',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改用户和账套关系
  26. export function updateBook(data) {
  27. return request({
  28. url: '/system/book/edit',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 删除用户和账套关系
  34. export function delBook(userId) {
  35. return request({
  36. url: '/system/book/remove/' + userId,
  37. method: 'get'
  38. })
  39. }
  40. // 导出用户和账套关系
  41. export function exportBook(query) {
  42. return request({
  43. url: '/system/book/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }