zqbao 8 hónapja
szülő
commit
1d742dec1b
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      controllers/report.go

+ 4 - 1
controllers/report.go

@@ -456,6 +456,7 @@ func (this *ReportController) RecentList() {
 		this.ServeJSON()
 	}()
 
+	// 暂不使用分页
 	pageSize, _ := this.GetInt("PageSize")
 	currentIndex, _ := this.GetInt("CurrentIndex")
 	if pageSize <= 0 {
@@ -523,7 +524,9 @@ func (this *ReportController) RecentList() {
 	if endIdx > 3 {
 		endIdx = 3
 	}
-	br.Data = reportList.List[:endIdx]
+	reportList.List = reportList.List[:endIdx]
+
+	br.Data = reportList
 	br.Msg = "查询成功"
 	br.Ret = 200
 	br.Success = true