图书馆综合管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

7 months ago
  1. import request from '@/utils/request'
  2. export function FetchDictsList(params) {
  3. return request({
  4. url: 'api/dictionary/initDictionaryList',
  5. method: 'get',
  6. params
  7. })
  8. }
  9. export function add(data) {
  10. return request({
  11. url: 'api/dictionary/editDictionary',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. export function del(data) {
  17. return request({
  18. url: 'api/dictionary/delDictionary',
  19. method: 'post',
  20. data
  21. })
  22. }
  23. export function edit(data) {
  24. return request({
  25. url: 'api/dictionary/editDictionary',
  26. method: 'post',
  27. data
  28. })
  29. }
  30. export function FetchDictionaryTree(params) {
  31. return request({
  32. url: 'api/dictionary/initDictionaryTree',
  33. method: 'get',
  34. params
  35. })
  36. }
  37. export function FetchSonDictionaryList(params) {
  38. return request({
  39. url: 'api/dictionary/getSonDictionaryList',
  40. method: 'get',
  41. params
  42. })
  43. }
  44. // 快速筛选
  45. export function FetchDictionaryTreeByCategoryId(params) {
  46. return request({
  47. url: 'api/dictionary/getDictionaryTreeByCategoryId',
  48. method: 'get',
  49. params
  50. })
  51. }
  52. export default { add, edit, del, FetchDictsList, FetchDictionaryTree, FetchSonDictionaryList, FetchDictionaryTreeByCategoryId }