|
@@ -434,21 +434,21 @@ func Report(c *gin.Context) {
|
|
|
_ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "1. 总体分数情况", alignOptionText)
|
|
|
currentLine++
|
|
|
}
|
|
|
+ //{
|
|
|
+ // pdf.SetXY(leftMargin, topMargin+currentLine*lineHeight)
|
|
|
+ // _ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "整体得分:"+util.ToString(param.ScoreFinal), alignOptionText)
|
|
|
+ // currentLine++
|
|
|
+ //}
|
|
|
{
|
|
|
pdf.SetXY(leftMargin, topMargin+currentLine*lineHeight)
|
|
|
- _ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "整体得分:"+util.ToString(param.ScoreFinal), alignOptionText)
|
|
|
- currentLine++
|
|
|
- }
|
|
|
- {
|
|
|
- pdf.SetXY(leftMargin, topMargin+currentLine*lineHeight)
|
|
|
- _ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "线上得分:"+util.ToString(param.ScoreFinal), alignOptionText)
|
|
|
- currentLine++
|
|
|
- }
|
|
|
- {
|
|
|
- pdf.SetXY(leftMargin, topMargin+currentLine*lineHeight)
|
|
|
- _ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "线下得分:", alignOptionText)
|
|
|
+ _ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "线上得分:"+util.ToString(param.ScoreOnline), alignOptionText)
|
|
|
currentLine++
|
|
|
}
|
|
|
+ //{
|
|
|
+ // pdf.SetXY(leftMargin, topMargin+currentLine*lineHeight)
|
|
|
+ // _ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "线下得分:", alignOptionText)
|
|
|
+ // currentLine++
|
|
|
+ //}
|
|
|
{
|
|
|
pdf.SetXY(leftMargin, topMargin+currentLine*lineHeight)
|
|
|
_ = pdf.CellWithOption(&gopdf.Rect{W: tableWidth, H: lineHeight}, "整体耗时:"+endTime.Sub(beginTime).String(), alignOptionText)
|