|
@@ -435,6 +435,12 @@ func (this *ClassifyController) Edit(c *gin.Context) {
|
|
item.RelateTel = req.RelateTel
|
|
item.RelateTel = req.RelateTel
|
|
item.RelateVideo = req.RelateVideo
|
|
item.RelateVideo = req.RelateVideo
|
|
item.ModifyTime = time.Now().Local()
|
|
item.ModifyTime = time.Now().Local()
|
|
|
|
+
|
|
|
|
+ // 报告详情的展示类型:1-拼接;2:目录
|
|
|
|
+ if req.ReportShowType > 0 {
|
|
|
|
+ item.ReportShowType = req.ReportShowType
|
|
|
|
+ }
|
|
|
|
+
|
|
cols := make([]string, 0)
|
|
cols := make([]string, 0)
|
|
/*cols = append(cols, "Abstract", "Descript", "ReportAuthor", "AuthorDescript", "ColumnImgUrl",
|
|
/*cols = append(cols, "Abstract", "Descript", "ReportAuthor", "AuthorDescript", "ColumnImgUrl",
|
|
"HeadImgUrl", "AvatarImgUrl", "ReportImgUrl", "HomeImgUrl", "ClassifyLabel", "ShowType", "HasTeleconference", "VipTitle",
|
|
"HeadImgUrl", "AvatarImgUrl", "ReportImgUrl", "HomeImgUrl", "ClassifyLabel", "ShowType", "HasTeleconference", "VipTitle",
|
|
@@ -442,7 +448,7 @@ func (this *ClassifyController) Edit(c *gin.Context) {
|
|
"RelateTel", "RelateVideo", "ModifyTime")*/
|
|
"RelateTel", "RelateVideo", "ModifyTime")*/
|
|
cols = append(cols, "ClassifyLabel", "ShowType",
|
|
cols = append(cols, "ClassifyLabel", "ShowType",
|
|
"IsShow", "YbFiccSort", "YbFiccIcon", "YbFiccPcIcon", "YbIconUrl", "YbBgUrl", "YbListImg", "YbShareBgImg", "YbRightBanner",
|
|
"IsShow", "YbFiccSort", "YbFiccIcon", "YbFiccPcIcon", "YbIconUrl", "YbBgUrl", "YbListImg", "YbShareBgImg", "YbRightBanner",
|
|
- "RelateTel", "RelateVideo", "ModifyTime")
|
|
|
|
|
|
+ "RelateTel", "RelateVideo", "ModifyTime", "ReportShowType")
|
|
if e = item.UpdateClassify(cols); e != nil {
|
|
if e = item.UpdateClassify(cols); e != nil {
|
|
resp.FailData("修改失败", "Err:"+e.Error(), c)
|
|
resp.FailData("修改失败", "Err:"+e.Error(), c)
|
|
return
|
|
return
|