From 896a89b8134d1edf8672580cf0fd0033a1c2206a Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 26 Sep 2022 10:41:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=8F=82=E6=95=B0):=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=99=90=E5=88=B6=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81=E5=85=81?= =?UTF-8?q?=E8=AE=B81-100=E6=AD=A3=E6=95=B4=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/en.js | 2 ++ frontend/src/lang/tw.js | 2 ++ frontend/src/lang/zh.js | 2 ++ .../views/system/SysParam/BasicSetting.vue | 20 ++++++++++++++++--- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 0ab2dadd39..f4b82c0f04 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -815,6 +815,8 @@ export default { empty_msg: 'If empty then default value is 30 days', front_error: 'Valid ranger [0 - 300]', // 修改了提示信息 msg_error: 'Valid ranger [1 - 365]', + limit_times_error: 'Valid ranger [1 - 100]', + relieve_times_error: 'Valid ranger [1 - 100]', SMTP_port: 'SMTP Port', SMTP_account: 'SMTP Account', SMTP_password: 'SMTP Password', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index 9eaefd1367..31e848ab5f 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -815,6 +815,8 @@ export default { empty_msg: '為空則默認取值30天', front_error: '請填寫0-300正整數', // 修改了提示信息 msg_error: '請填寫1-365正整數', + limit_times_error: '請填寫1-100正整數', + relieve_times_error: '請填寫1-100正整數', SMTP_port: 'SMTP端口', SMTP_account: 'SMTP賬戶', SMTP_password: 'SMTP密碼', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 0cf66591bf..09ed5853c8 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -814,6 +814,8 @@ export default { empty_msg: '为空则默认取30天', front_error: '请填写0-300正整数', // 修改了提示信息 msg_error: '请填写1-365正整数', + limit_times_error: '请填写1-100正整数', + relieve_times_error: '请填写1-100正整数', SMTP_port: 'SMTP端口', SMTP_account: 'SMTP账户', SMTP_password: 'SMTP密码', diff --git a/frontend/src/views/system/SysParam/BasicSetting.vue b/frontend/src/views/system/SysParam/BasicSetting.vue index c350f0f83f..82897bb59d 100644 --- a/frontend/src/views/system/SysParam/BasicSetting.vue +++ b/frontend/src/views/system/SysParam/BasicSetting.vue @@ -49,8 +49,8 @@ - - + + @@ -139,7 +139,7 @@ export default { rules: { frontTimeOut: [ { - pattern: '^([0-9]|\\b[1-9]\\d\\b|\\b[1-2]\\d\\d\\b|\\b300\\b)$', // 修改了正则表达式,让其正确匹配0-300的数值 + pattern: '^([0-9]|\\b[1-9]\\d\\b|\\b[1-2]\\d\\d\\b|\\b300\\b)$', message: this.$t('system_parameter_setting.front_error'), trigger: 'blur' } @@ -150,6 +150,20 @@ export default { message: this.$t('system_parameter_setting.msg_error'), trigger: 'blur' } + ], + limitTimes: [ + { + pattern: '^([1-9]|[1-9]\\d|100)$', + message: this.$t('system_parameter_setting.limit_times_error'), + trigger: 'blur' + } + ], + relieveTimes: [ + { + pattern: '^([1-9]|[1-9]\\d|100)$', + message: this.$t('system_parameter_setting.relieve_times_error'), + trigger: 'blur' + } ] }, originLoginType: null