|
@@ -158,6 +158,7 @@ func formatExcelInfo2Detail(excelInfo *excel.ExcelInfo, sysUserId int, lang stri
|
|
|
result.Data[i].HaveOperaAuth = data_manage_permission.CheckEdbPermissionByPermissionIdList(v.IsJoinPermission, currClassify.IsJoinPermission, v.EdbInfoId, v.ClassifyId, permissionEdbIdList, permissionClassifyIdList)
|
|
|
}
|
|
|
}
|
|
|
+ setTextCellDefaultSize(result.TextRowData)
|
|
|
}
|
|
|
|
|
|
excelDetail.TableData = result
|
|
@@ -186,6 +187,20 @@ func formatExcelInfo2Detail(excelInfo *excel.ExcelInfo, sysUserId int, lang stri
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// 设置默认的文本单元格大小
|
|
|
+func setTextCellDefaultSize(textRowData [][]request.ManualDataReq) {
|
|
|
+ for i := range textRowData {
|
|
|
+ for j := range textRowData[i] {
|
|
|
+ if textRowData[i][j].Width == 0 {
|
|
|
+ textRowData[i][j].Width = 140
|
|
|
+ }
|
|
|
+ if textRowData[i][j].Height == 0 {
|
|
|
+ textRowData[i][j].Height = 35
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// SetExcelByDecimalConfig 设置表格的小数位
|
|
|
func SetExcelByDecimalConfig(tableData request.TableDataReq, config []request.DecimalConfig) request.TableDataReq {
|
|
|
excelData := tableData.Data
|