dict-data.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * @Author: zyk
  3. * @Date: 2020-07-13 15:13:17
  4. * @Last Modified by: zyk
  5. * @Last Modified time: 2020-12-15 15:34:34
  6. */
  7. import request from '@/utils/request'
  8. // 数据字典和基础数据查询的相关接口
  9. /**
  10. * 数据字典多类型编码查询接口
  11. * type参数 类型 String
  12. * type参数 格式 'type'
  13. */
  14. export function getDictList(type) {
  15. return request({
  16. url: `/business/gaeaDict/select/${type}`,
  17. method: 'get',
  18. })
  19. }
  20. export function getDictCodes(project) {
  21. return request({
  22. url: `/business/gaeaDict/selectAll/${project}`,
  23. method: 'get',
  24. })
  25. }
  26. /**
  27. * 数据字典多类型编码查询接口
  28. * typeList参数 类型 Array
  29. * typeList参数 格式 ['type1','type2',...]
  30. */
  31. export function getMultipleDictList(typeList) {
  32. const types = typeList + ''
  33. return request({
  34. url: `/v1/dict/types`,
  35. method: 'get',
  36. params: { types },
  37. })
  38. }
  39. /**
  40. * 主数据编码查询接口
  41. * typeList参数 类型 Array
  42. * typeList参数 格式 ['type1','type2',...]
  43. */
  44. export function getBaseDataList(typeList) {
  45. const types = typeList + ''
  46. return request({
  47. url: `/v1/master/types`,
  48. method: 'get',
  49. params: { types },
  50. })
  51. }