From 18aaf08866c360b208278f8d2a9fb192aead4565 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Wed, 30 Aug 2023 15:22:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BA=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ExportAndImport/ClosedXmlExportImportService.cs | 3 ++- be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/ExportAndImport/ClosedXmlExportImportService.cs b/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/ExportAndImport/ClosedXmlExportImportService.cs index 91d1cb82c..316297788 100644 --- a/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/ExportAndImport/ClosedXmlExportImportService.cs +++ b/be/Modules/Shared/src/Win_in.Sfs.Shared.Application/ExportAndImport/ClosedXmlExportImportService.cs @@ -61,7 +61,8 @@ public class ClosedXmlExportImportService : IExportImportService ignoreList.AddRange(defaultPropertyNames.Keys); } SetWorkSheet(ws, list, defaultPropertyNames, ignoreList, detailsProptyName); - SetWorkSheetStyle(ws); + //影响性能 + //SetWorkSheetStyle(ws); // var stream = new MemoryStream(); workbook.SaveAs(stream); diff --git a/be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs b/be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs index 6d8f3e1f9..a1e0b142d 100644 --- a/be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs +++ b/be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs @@ -445,8 +445,8 @@ public abstract class ModuleBase : AbpModule where T : AbpModule { ServiceConfigurationContext.Services.Configure(options => { - options.ValueCountLimit = 5000; // 5000 items max - options.ValueLengthLimit = 1024 * 1024 * 100; // 100MB max len form data + options.ValueCountLimit = int.MaxValue; // 5000 items max + options.ValueLengthLimit = 1024 * 1024 * 1000; // 100MB max len form data }); }