...
|
...
|
@@ -108,7 +108,8 @@ func (this *BaseController) Valid(obj interface{}) (result bool, msg *protocol.R |
|
|
}
|
|
|
|
|
|
func (this *BaseController) ResponseExcelByFile(ctx *context.Context, excelMaker *exceltool.ExcelMaker) error {
|
|
|
ctx.Output.Header("Content-Disposition", "attachment; filename="+excelMaker.GetFileName())
|
|
|
fname := excelMaker.GetFileName()
|
|
|
ctx.Output.Header("Content-Disposition", "attachment; filename="+fname)
|
|
|
ctx.Output.Header("Content-Description", "File Transfer")
|
|
|
ctx.Output.Header("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
|
|
ctx.Output.Header("Content-Transfer-Encoding", "binary")
|
...
|
...
|
|