Browse Source

Merge branch 'feature/eta_2.5.4_report_free_layout' into debug

kobe6258 1 tuần trước cách đây
mục cha
commit
204a5ae86d
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      controllers/report_v2.go

+ 6 - 1
controllers/report_v2.go

@@ -826,7 +826,12 @@ func (this *ReportController) Detail() {
 			v.Content = services.HandleReportContent(v.Content, "add", tokenMap)
 			v.ContentStruct = services.HandleReportContentStruct(v.ContentStruct, "add", tokenMap)
 		}
-
+		if item.ReportLayout == 3 {
+			for _, page := range pageList {
+				page.Content = services.HandleReportContent(page.Content, "add", tokenMap)
+				page.ContentStruct = services.HandleReportContentStruct(page.ContentStruct, "add", tokenMap)
+			}
+		}
 	}
 
 	classifyMap := make(map[int]*models.Classify) // 分类map