file-saver 下载文件包使用
npm install file-saver --save
this.$http.downFileApi(this.downForm).then((res) => {
this.spinning = false;
const blob = new Blob([res.data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
});
saveAs(blob, decodeURI(res.headers["download-filename"]));
this.downForm.timedata = null;
});