dict.js 382 B

123456789101112131415161718
  1. import request from '@/common/request.js'
  2. // 根据字典类型查询字典数据信息
  3. export const getDicts = (dictType) => {
  4. return request({
  5. url: '/system/dict/data/type/' + dictType,
  6. method: 'get',
  7. })
  8. }
  9. // 业务字典查询
  10. export const ObjdictList = (query) => {
  11. return request({
  12. url: '/system/dict/type/objdict',
  13. method: 'get',
  14. data: query
  15. })
  16. }