audit-advanced-import-service.js 824 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import axios from '@/common/services/axios-instance'
  2. class AuditAdvancedImportService {
  3. // 导入
  4. Import(params) {
  5. return axios({
  6. method: 'post',
  7. url: 'api/xcoa-mobile/v1/iam-excel-config/importData',
  8. data: params,
  9. })
  10. }
  11. // 下载会议计划批量导入模板
  12. downloadMeetingPlanTemplateExcel() {
  13. return axios({
  14. method: 'get',
  15. url: 'api/xcoa-mobile/v1/iam-excel-config/importData',
  16. responseType: 'blob',
  17. })
  18. }
  19. getTemplate(configId) {
  20. return axios({
  21. method: 'get',
  22. url: `api/xcoa-mobile/v1/iam-excel-config/excelTemplate?configId=${configId}`,
  23. })
  24. }
  25. downloadTemplateExcel(path, params) {
  26. return axios({
  27. method: 'post',
  28. url: `${path}`,
  29. data: params,
  30. })
  31. }
  32. }
  33. export default new AuditAdvancedImportService()