阅行客电子档案
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.

51 lines
1006 B

  1. import request from '@/utils/request'
  2. export function getDictsList(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. export default { add, edit, del, getDictsList, FetchDictionaryTree, FetchSonDictionaryList }