dict.js 765 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/common/request.js'
  2. // 根据字典类型查询字典数据信息
  3. export const getDicts = (dictType) => {
  4. return request({
  5. url: '/api/system/dict/data/common/type/' + dictType,
  6. method: 'get',
  7. })
  8. }
  9. // 业务字典查询
  10. export const ObjdictList = (query) => {
  11. return request({
  12. url: '/api/system/dict/type/objdict',
  13. method: 'get',
  14. data: query
  15. })
  16. }
  17. // 地区查询
  18. export const GetChildListByCode = (query) => {
  19. return request({
  20. url: '/api/system/jlDept/getChildListByCode',
  21. method: 'get',
  22. data: query
  23. })
  24. }
  25. // 通过园区mchnt查询地区
  26. export const getChildListByMchnt = (data) => {
  27. return request({
  28. url: '/api/system/jlDept/getChildListByMchnt',
  29. method: 'get',
  30. data: data
  31. })
  32. }