【导出】功能分析,需要将用户勾选的数据已post的形式传给后端,后端返回给我们文件流
1.action 规定当提交表单时向何处发送表单数据; —— URL 2. enctype 规定在向服务器发送表单数据之前如何对其进行编码。(适用于 method=“post” 的情况); 3. method 规定用于发送表单数据的 HTTP 方法;—— get、post 4. target 规定在何处打开 action URL;—— _blank、_self、_parent、 _top
<form action={ '/hgzx-web/api/ydyjxxcx/excelExport?token=123'} encType="application/x-www-form-urlencoded" method="post" target="_blank"> { /* { display: 'none' }} /> */} <Input name="skssqq" value={ skssqq} style={ { display: 'none'}}/> <Input name="skssqz" value={ skssqz} style={ { display: 'none'}}/> <Input name="jydszsf" value={ formData.jydszsfDm} style={ { display: 'none'}}/> <Input name="jydszxzqh" value={ formData.jydszxzqhDm} style={ { display: 'none'}}/> <Input name="zsxmDm" value={ formData.zsxmDm} style={ { display: 'none'}}/> <Row className="mb30 buttomList"> <Button type="primary" className="ml20" onClick={ () => { this.queryByDate() }} >查询</Button> <Button type="primary" className="ml20" onClick={ (e) => this.exportExcel(e)} htmlType="submit" disabled={ dat
京公网安备 11010502049817号