????<script> ??//导出excel ?function?toExcel(){ ??????//window.location.href='<%=basePath%>pmb/excelShowInfo.do'; ??????//获取表格 ??????var?exportFileContent?=?document.getElementById("table_report").outerHTML;??????????????? ??????//设置格式为Excel,表格内容通过btoa转化为base64,此方法只在文件较小时使用(小于1M) ??????//exportFileContent=window.btoa(unescape(encodeURIComponent(exportFileContent))...
1.接口数据后端写, 2.代码如下: var params={"filters":[{"propertyCode":"sequenceNo","propertyType":0,"propertyValue":"2021-123533","propertyValueName":""}],"mobile":false,"page":0,"queryCode":"KPSQ","schemaCode":"KPSQ","size":20,"columns":[]}debugger;this.$axios.post(/api/api/runtime/query/exportKp,params,{ responseType: "arraybuffer" }).then(res=>{debugger;const blob = new Blob([res.data], { type...