this.$axios.get(this.$store.state.api+"/api/excelData/"+this.id+"?startTime="+this.selectTime[0]+"&endTime="+this.selectTime[1],{headers:{'Authorization':'Bearer '+this.userInfo.access_token},responseType:'blob'})
.then((res)=>{
if(res.status == "200") {
const aLink = document.createElement("a");
let blob = new Blob([res.data], {type: "application/vnd.ms-excel;charset=utf-8"})
aLink.href = URL.createObjectURL(blob)
aLink.download = 'test.xls'
aLink.click()
document.body.appendChild(aLink)
}
}).catch(function (error){
console.log('error')
});