...
|
...
|
@@ -413,5 +413,20 @@ func (srv StaffAssessServeice) ExportUserAssess(param *query.ListAssessContentCy |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
//TODO 调整样式
|
|
|
xlsxFile.MergeCell(sheetName, "A2", "A4")
|
|
|
xlsxFile.MergeCell(sheetName, "B2", "B4")
|
|
|
xlsxFile.MergeCell(sheetName, "B5", "B5")
|
|
|
//设置行高
|
|
|
for i := range tableRowSort {
|
|
|
xlsxFile.SetRowHeight(sheetName, i+6, 50)
|
|
|
}
|
|
|
//设置列宽
|
|
|
for i := range headerList {
|
|
|
colName, _ := excelize.ColumnNumberToName(i + 1)
|
|
|
if i == 0 {
|
|
|
xlsxFile.SetColWidth(sheetName, colName, colName, 70)
|
|
|
}
|
|
|
}
|
|
|
return xlsxFile, nil
|
|
|
} |
...
|
...
|
|