Эх сурвалжийг харах

版本恢复详情返回版本时间

xyxie 3 сар өмнө
parent
commit
ce491d743f

+ 1 - 0
controllers/ppt_v2_history.go

@@ -194,6 +194,7 @@ func (this *PptV2HistoryController) Detail() {
 	pptInfo.TitleSetting = history.TitleSetting
 	pptInfo.AdminId = history.AdminId
 	pptInfo.AdminRealName = history.AdminRealName
+	pptInfo.ModifyTime = history.CreateTime
 
 	resp := new(models.PPTDetailResp)
 	resp.PptV2 = pptInfo

+ 7 - 0
controllers/report_history.go

@@ -207,12 +207,19 @@ func (this *ReportHistoryController) Detail() {
 		chapter.Content = html.UnescapeString(history.Content)
 		chapter.ContentSub = html.UnescapeString(history.ContentSub)
 		chapter.ContentStruct = html.UnescapeString(history.ContentStruct)
+		chapter.LastModifyAdminName = history.AdminName
+		chapter.ContentModifyTime = history.CreateTime
+		chapter.LastModifyAdminId = history.AdminId
 		chapterList = append(chapterList, chapter)
 	} else {
 		reportInfo.Title = history.Title
 		reportInfo.Content = html.UnescapeString(history.Content)
 		reportInfo.ContentSub = html.UnescapeString(history.ContentSub)
 		reportInfo.ContentStruct = html.UnescapeString(history.ContentStruct)
+		reportInfo.CanvasColor = history.CanvasColor
+		reportInfo.LastModifyAdminName = history.AdminName
+		reportInfo.LastModifyAdminId = history.AdminId
+		reportInfo.ContentModifyTime = history.CreateTime.Format(utils.FormatDate)
 	}
 
 	if history.HeadResourceId > 0 {