导出时列表重写了就调用重写的1
This commit is contained in:
@@ -529,10 +529,22 @@ namespace JNPF.VisualDev
|
||||
return await ReportExcel(input);
|
||||
#endregion
|
||||
|
||||
|
||||
VisualDevEntity? templateEntity = await _visualDevService.GetInfoById(modelId, true);
|
||||
VisualDevEntity? templateEntity = templateEntity = await _visualDevService.GetInfoById(modelId, true);
|
||||
PageResult<Dictionary<string, object>>? pageList = null;
|
||||
if (input.dataType == "1") input.pageSize = 99999999;
|
||||
PageResult<Dictionary<string, object>>? pageList = await _runService.GetListResult(templateEntity, input);
|
||||
|
||||
//导出时列表重写了就调用重写的 modifyby zkd 20241008
|
||||
var overideSvc = OverideVisualDevManager.GetOrDefault(modelId);
|
||||
if (overideSvc != null && overideSvc.OverideFuncs.GetListAsync != null)
|
||||
{
|
||||
object result = await overideSvc.OverideFuncs.GetListAsync(input);
|
||||
pageList = JsonConvert.DeserializeObject<PageResult<Dictionary<string, object>>>(JsonConvert.SerializeObject(result));
|
||||
}
|
||||
else
|
||||
{
|
||||
pageList = await _runService.GetListResult(templateEntity, input);
|
||||
}
|
||||
|
||||
|
||||
// 如果是 分组表格 模板
|
||||
ColumnDesignModel? columnData = templateEntity.ColumnData.ToObject<ColumnDesignModel>(); // 列配置模型
|
||||
|
||||
Reference in New Issue
Block a user