瀏覽代碼

Merge branch 'fixbug_8383_englis_report_pdf' into debug

kobe6258 2 天之前
父節點
當前提交
340fef04cb
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      services/smart_report.go

+ 4 - 2
services/smart_report.go

@@ -337,8 +337,10 @@ func Report2pdfAndJpeg(reportUrl string, reportId, reportType int) {
 
 
 		width := 1200
 		width := 1200
 		top, bottom, left, right := 20, 20, 20, 20
 		top, bottom, left, right := 20, 20, 20, 20
-		if report.ReportLayout == 3 {
-			top, bottom, left, right = 0, 0, 0, 0
+		if reportType == 1 {
+			if report != nil && report.ReportLayout == 3 {
+				top, bottom, left, right = 0, 0, 0, 0
+			}
 		}
 		}
 		//if reportType == 3 {
 		//if reportType == 3 {
 		//	width = 800
 		//	width = 800