forked from github/dataease
Merge pull request #2116 from dataease/pr@dev@refactor_excel-export
refactor: 修改视图导出明细后置
This commit is contained in:
commit
e17b72dbe9
@ -517,7 +517,7 @@ public class PanelGroupService {
|
||||
}
|
||||
response.setContentType("application/vnd.ms-excel");
|
||||
//文件名称
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + request.getViewName() + ".xlsx");
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + request.getViewName() + ".xls");
|
||||
wb.write(outputStream);
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
|
@ -145,7 +145,7 @@ export default {
|
||||
const link = document.createElement('a')
|
||||
link.style.display = 'none'
|
||||
link.href = URL.createObjectURL(blob)
|
||||
link.download = excelName + '.xlsx' // 下载的文件名
|
||||
link.download = excelName + '.xls' // 下载的文件名
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
document.body.removeChild(link)
|
||||
|
Loading…
Reference in New Issue
Block a user