|
@@ -358,7 +358,8 @@ func (this *BaseFromLyIndexController) LyIndexAdd() {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
func (this *BaseFromLyIndexController) LyIndexDataExport() {
|
|
@@ -376,11 +377,6 @@ func (this *BaseFromLyIndexController) LyIndexDataExport() {
|
|
|
classifyId, _ := this.GetInt("ClassifyId")
|
|
|
indexCode := this.GetString("IndexCode")
|
|
|
|
|
|
- if classifyId <= 0 {
|
|
|
- br.Msg = "请选择分类"
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -430,11 +426,6 @@ func (this *BaseFromLyIndexController) LyIndexDataExport() {
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- if indexCode != "" {
|
|
|
- fileName = lyIndices[0].IndexName
|
|
|
- }
|
|
|
-
|
|
|
var sheet *xlsx.Sheet
|
|
|
if len(lyIndices) > 0 {
|
|
|
sheet, err = xlsxFile.AddSheet(*frequency)
|
|
@@ -446,6 +437,11 @@ func (this *BaseFromLyIndexController) LyIndexDataExport() {
|
|
|
} else {
|
|
|
continue
|
|
|
}
|
|
|
+
|
|
|
+ if indexCode != "" {
|
|
|
+ fileName = lyIndices[0].IndexName
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
rowSecName := sheet.AddRow()
|
|
|
celSecName := rowSecName.AddCell()
|