xyxie hace 5 meses
padre
commit
883dde9b36
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      controllers/data_manage/usda_fas_data.go

+ 3 - 1
controllers/data_manage/usda_fas_data.go

@@ -1237,9 +1237,11 @@ func (this *BaseFromUsdaFasController) ExportUsdaFasList() {
 	if indexCode != "" && len(indexList) == 1 {
 		fileName = indexList[0].IndexName
 		fileName = strings.Replace(fileName, ": ", "_", -1)
+		fileName = strings.Replace(fileName, ", ", "_", -1)
+		fileName = strings.Replace(fileName, " ", "_", -1)
 	}
 	fileName += time.Now().Format("06.01.02") + `.xlsx` //文件名称
-	//fmt.Println(fileName)
+	fmt.Println(fileName)
 	this.Ctx.Output.Download(downLoadnFilePath, fileName)
 	defer func() {
 		os.Remove(downLoadnFilePath)