common.js 446 B

123456789101112131415161718192021222324252627
  1. import {
  2. request
  3. } from '@/request/request.js';
  4. /*
  5. * 新增下载文件
  6. *
  7. *
  8. */
  9. export function insertDownloadFile(data) {
  10. return request({
  11. url: `/file/downloadData`,
  12. method: 'post',
  13. data: data
  14. })
  15. }
  16. /*
  17. * 分页获取下载的文件
  18. *
  19. *
  20. */
  21. export function getFileListByPage(data) {
  22. return request({
  23. url: `/file/downloadData/${data.currPage}/${data.pageSize}`,
  24. method: 'post',
  25. data: data
  26. })
  27. }