common.js 761 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. // 模板下载
  3. export function commonTemplateDownload(params, name) {
  4. return getBlob({
  5. url: 'common/template/download',
  6. params,
  7. name
  8. })
  9. }
  10. export function getSystemList(params) {
  11. return request({
  12. url: '/sys/dict/list/page',
  13. method: 'get',
  14. params
  15. })
  16. }
  17. export function getExpress(params) {
  18. return request({
  19. url: '/common/express',
  20. method: 'get',
  21. params
  22. })
  23. }
  24. export function getCompanyList(params) {
  25. return request({
  26. url: '/common/express/company',
  27. method: 'get',
  28. params
  29. })
  30. }
  31. // 获取oss配置
  32. export function getOssConfig(params) {
  33. return request({
  34. url: '/common/oss/config',
  35. method: 'get',
  36. params
  37. })
  38. }