fix(report):修正导出的文件名。
This commit is contained in:
parent
67cfb60515
commit
ba7af386c4
|
@ -67,7 +67,7 @@ func downloadEndUserRegisterTemplate(c *gin.Context) {
|
||||||
c.Status(http.StatusOK)
|
c.Status(http.StatusOK)
|
||||||
c.Header("Content-Type", "application/octet-stream")
|
c.Header("Content-Type", "application/octet-stream")
|
||||||
c.Header("Content-Transfer-Encoding", "binary")
|
c.Header("Content-Transfer-Encoding", "binary")
|
||||||
c.Header("Content-Disposition", "attachment; filename=抄表记录.xslx")
|
c.Header("Content-Disposition", "attachment; filename=抄表记录.xlsx")
|
||||||
|
|
||||||
gen := lo.Ternary[excel.ExcelTemplateGenerator](
|
gen := lo.Ternary[excel.ExcelTemplateGenerator](
|
||||||
meterType == 0,
|
meterType == 0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user