From 3eb6bca5ac8df01988d30e187a058885f804e00b Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 19 Nov 2024 12:43:38 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E7=B3=BB=E7=BB=9F=E5=8F=82?= =?UTF-8?q?=E6=95=B0-=E5=9F=BA=E7=A1=80=E8=AE=BE=E7=BD=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=99=BB=E5=BD=95=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 6 ++- .../src/views/system/common/InfoTemplate.vue | 9 +++- .../system/parameter/basic/BasicEdit.vue | 12 ++++- .../system/parameter/basic/BasicInfo.vue | 52 +++++++++++++++++-- .../src/views/system/parameter/index.vue | 15 +++--- .../constant/XpackSettingConstants.java | 3 ++ .../io/dataease/utils/SystemSettingUtils.java | 5 +- 7 files changed, 84 insertions(+), 18 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 8edf5cef03..c343186b07 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -492,6 +492,7 @@ export default { click_to_show: '点击显示', click_to_hide: '点击隐藏', basic_settings: '基础设置', + login_settings: '登录设置', and_0_seconds: '0分0秒', time_0_seconds: '分钟(执行时间:0秒)', and_0_seconds_de: '小时(执行时间:0分0秒)', @@ -3080,7 +3081,10 @@ export default { shareDisable: '禁用分享', sharePeRequire: '分享有效期密码必填', defaultSort: '资源默认排序方式', - defaultOpen: '页面打开方式' + defaultOpen: '页面打开方式', + loginLimit: '限制登录', + loginLimitRate: '限制登录失败次数(次)', + loginLimitTime: '限制登录失败时间(分)' }, resource_sort: { time_asc: '按创建时间升序', diff --git a/core/core-frontend/src/views/system/common/InfoTemplate.vue b/core/core-frontend/src/views/system/common/InfoTemplate.vue index 3543a9c8d1..f0e4c81d5a 100644 --- a/core/core-frontend/src/views/system/common/InfoTemplate.vue +++ b/core/core-frontend/src/views/system/common/InfoTemplate.vue @@ -12,7 +12,7 @@ {{ t('commons.edit') }} -
+
{{ t(item.pkey) }} @@ -222,7 +222,7 @@ formatLabel() } } .info-template-container { - padding: 24px; + padding: 24px 24px 0; .info-template-header { display: flex; margin-top: -4px; @@ -286,5 +286,10 @@ formatLabel() } } } + .clearfix::after { + content: ''; + display: table; + clear: both; + } } diff --git a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue index 3ff3cacba5..3b7bae9372 100644 --- a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue +++ b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue @@ -250,7 +250,8 @@ defineExpose({ item.pkey === 'pwdStrategy' || item.pkey === 'dip' || item.pkey === 'shareDisable' || - item.pkey === 'sharePeRequire' + item.pkey === 'sharePeRequire' || + item.pkey === 'loginLimit' " active-value="true" inactive-value="false" @@ -290,7 +291,14 @@ defineExpose({ type="number" />
-
+
+