```javascript
function exportFun() {
axios.request({
url:`${baseIp}/ecDutyScheduling/exportByDutyCycle/${value.value}`,
method:'post',
headers:{
'Content-Type': 'application/json; charset=UTF-8',
'Authorization':'CNPE1'
},
responseType:'blob' //在请求中加上这一行,特别重要
}).then(res=>{
const elink = document.createElement('a');
elink.download = '当周应急值班表.xlsx'; //定义表格名称,后缀是文件格式
elink.style.display = 'none';
const blob = new Blob([res.data], { type: 'text/csv,charset=UTF-8'});
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
document.body.removeChild(elink);
})
}