浏览代码

fix:继承报告的内容

Roc 9 月之前
父节点
当前提交
d5946dc786
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      controllers/report_v2.go

+ 13 - 0
controllers/report_v2.go

@@ -372,6 +372,19 @@ func (this *ReportController) Add() {
 		return
 	}
 
+	// 协作方式,1:个人,2:多人协作。默认:1
+	if req.CollaborateType == 0 {
+		req.CollaborateType = 1
+	}
+	// 报告布局,1:常规布局,2:智能布局。默认:1
+	if req.ReportLayout == 0 {
+		req.ReportLayout = 1
+	}
+	// 是否公开发布,1:是,2:否
+	if req.IsPublicPublish == 0 {
+		req.IsPublicPublish = 1
+	}
+
 	item := new(models.Report)
 	item.AddType = req.AddType
 	item.ReportVersion = 2