|
@@ -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
|