From 4b01dab49e16bdbb4c985ef2f7d09132820ceea6 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Fri, 18 Aug 2023 13:19:33 +0800 Subject: [PATCH] update fe --- .../SettleAccount.HttpApi.Host/Program.cs | 7 +- .../SettleAccount.HttpApi.Host/Startup.cs | 1 + .../wwwroot/components/table/index.js | 42 +++- .../wwwroot/models/_extraProperties.js | 62 +++++ .../wwwroot/models/input/jie-suan-detail.js | 54 +--- .../wwwroot/views/settle/_check.js | 231 ++++++++++-------- 6 files changed, 227 insertions(+), 170 deletions(-) create mode 100644 code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_extraProperties.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs index 5f982816..2f33d4fd 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs @@ -55,9 +55,10 @@ public class Program webBuilder.ConfigureKestrel((context, options) => { //设置应用服务器Kestrel请求体最大为50MB - options.Limits.MaxRequestBodySize = 5242880000; - options.Limits.MaxRequestBufferSize = 302768; - options.Limits.MaxRequestLineSize = 302768; + options.Limits.MaxRequestBodySize = long.MaxValue; + options.Limits.MaxRequestBufferSize = long.MaxValue; + options.Limits.MaxRequestLineSize = int.MaxValue; + options.Limits.KeepAliveTimeout= TimeSpan.MaxValue; }); webBuilder.UseStartup(); }) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs index d717a9c7..342581b7 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs @@ -21,6 +21,7 @@ public class Startup { public void ConfigureServices(IServiceCollection services) { + services.AddRequestTimeouts(); services.Configure(options => options.Level = CompressionLevel.Fastest); services.AddResponseCompression(options => { diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js index 4846b2a1..b9f5c709 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js @@ -4,20 +4,42 @@ import { reactive, ref } from "vue"; export default { template: html`
-
-
- +
-
-
- +
`, styles: html`