function fileDown (res, name = '模版文件.xlsx', type) {
var typ =
type || 'application/vnd.ms-excel';
var blob = new Blob([res], { type: typ });
var downloadElement = document.createElement('a');
var href = window.URL.createObjectURL(blob);
downloadElement.href = href;
downloadElement.download = name;
document.body.appendChild(downloadElement);
downloadElement.click();
document.body.removeChild(downloadElement);
window.URL.revokeObjectURL(href);
}
this.getExportFiles({ query: { ids: ids.join(',') } }).then(res => {
fileDown(res, 'file.zip', res.type);
});