excel.js 397 B

1234567891011121314151617181920
  1. import { axios } from '@/utils/request'
  2. import { stringify } from 'qs'
  3. /**
  4. * add batch func
  5. * parameter: { }
  6. * @param parameter
  7. * @returns {*}
  8. */
  9. export function importExcel (parameter) {
  10. return axios({
  11. url: '/excel/import',
  12. method: 'POST',
  13. headers: {
  14. 'Accept': 'application/json',
  15. 'Content-Type': 'application/json;charset=UTF-8'
  16. },
  17. data: parameter
  18. })
  19. }