1. button绑定下载事件
<Button onClick={() => {this.handleDownExcel()}}> 导出 </Button>
2. 导出函数
handleDownExcel= () => {
const oa = document.createElement('a');
oa.href = `需要请求的地址/${需要携带的参数}`;
oa.setAttribute('target', '_blank');
document.body.appendChild(oa);
oa.click();
};