xyxie 9 months ago
parent
commit
3c97726922
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/data_manage/excel/excel_info.go

+ 2 - 0
controllers/data_manage/excel/excel_info.go

@@ -2242,6 +2242,8 @@ func (c *ExcelInfoController) Download() {
 			return
 		}
 	case utils.BALANCE_TABLE: // 混合表格
+		c.Ctx.Output.Header("Content-Disposition", "attachment; filename=excel_files.zip")
+		c.Ctx.Output.Header("Content-Type", "application/zip")
 		savePath, fileName, err, errMsg := DownloadBalanceTable(excelInfo)
 		if err != nil {
 			br.Msg = "下载失败"