Compare commits
No commits in common. "7c953d6a7bd63130256b6d18510ea43c79a7682b" and "1ea452bede0cddfe24dba534f652b74c90ee4606" have entirely different histories.
7c953d6a7b
...
1ea452bede
@ -147,7 +147,7 @@ func ExportRegister(c *gin.Context) {
|
||||
resp.Data = []*exhibition.ExportInfo{}
|
||||
}
|
||||
columns := []string{"画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "报名时间", "更新时间"}
|
||||
exportFileName := fmt.Sprintf("国展报名%s.xlsx", time.Now().Format("20060102"))
|
||||
exportFileName := fmt.Sprintf("国展报名%s.xlsx", time.Now().Format("20060101"))
|
||||
filePath := fmt.Sprintf("./runtime/%s", exportFileName)
|
||||
data := make([]interface{}, 0)
|
||||
for _, v := range resp.Data {
|
||||
@ -184,6 +184,7 @@ func ExportRegister(c *gin.Context) {
|
||||
}
|
||||
var exportUrl string
|
||||
exportUrl = fmt.Sprintf("%s%s/static/%s", httpType, c.Request.Host, exportFileName)
|
||||
|
||||
response.ResponseQuickMsg(c, msg.Ok, resp.Msg, map[string]string{
|
||||
"exportUrl": exportUrl,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user