const serviceManageMent1 = interceptor({
baseURL: `${process.env.VUE_APP_API_MANAGEMENT}`,
responseType: 'blob'
})
/**
* @description:监考导出
*/
invigilatorExport: (params) => {
return serviceManageMent1.post(`/excel/export/exam/user`,
params
)
},
Study.invigilatorExport(params).then((res) => {
const filename = '监考考生查询_' + moment().format('YYYYMMDD')
const blob = new Blob([res], { type: 'application/vnd.ms-excel' })
const url = window.URL.createObjectURL(blob)
const a = document.createElement('a')
a.download = filename + '.xlsx'
a.href = url
a.click()
})
网友评论