@@ -199,21 +199,25 @@ public static class ExcelExportHelper
|
||||
|
||||
public class DynamicColumnConfig
|
||||
{
|
||||
//标题动态修改的行 从0 开始算
|
||||
public int AutoColumnStartIndex { get; set; }
|
||||
|
||||
//动态列开始的index 从0开始
|
||||
public int AutoColumnRowIndex { get; set; }
|
||||
|
||||
//动态列后面还有几列数据
|
||||
public int BackMoveCount { get; set; }
|
||||
|
||||
//动态的列名
|
||||
public List<string> ColumnNameList { get; set; }
|
||||
|
||||
//动态翻译的字典名
|
||||
public List<string> TranslateDicNameList { get; set; }
|
||||
|
||||
//动态取数据的集合名
|
||||
public string DynamicListName { get; set; }
|
||||
|
||||
|
||||
|
||||
//动态数据翻译的取字典的属性名
|
||||
public string DynamicItemDicName { get; set; }
|
||||
//取值的属性名
|
||||
@@ -420,7 +424,7 @@ public static class ExcelExportHelper
|
||||
var index = list.IndexOf(itemResult);
|
||||
|
||||
//从第四行开始处理动态列
|
||||
var row = sheet.GetRow(index + 3);
|
||||
var row = sheet.GetRow(index + dynamicColumnConfig.AutoColumnRowIndex + 1);
|
||||
|
||||
var itemDic = itemResult.ConvertToDictionary();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user