From 7b2a63d291c51fbb1175f4b2f1682d912a4b497b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 14 Apr 2022 15:56:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E5=AF=BC=E5=87=BA=E6=98=8E=E7=BB=86=E5=90=8E=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/dataease/service/panel/PanelGroupService.java | 2 +- .../src/components/canvas/custom-component/UserViewDialog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java index 5f2bc8d82a..70d7b7e567 100644 --- a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java +++ b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java @@ -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(); diff --git a/frontend/src/components/canvas/custom-component/UserViewDialog.vue b/frontend/src/components/canvas/custom-component/UserViewDialog.vue index cfa6d6c40a..3b246ac51a 100644 --- a/frontend/src/components/canvas/custom-component/UserViewDialog.vue +++ b/frontend/src/components/canvas/custom-component/UserViewDialog.vue @@ -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)