mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
Merge pull request #13750 from dataease/pr@dev-v2@perf_login_limit_validate
perf(X-Pack): 登录限制-表单验证
This commit is contained in:
@@ -28,7 +28,14 @@ const pvpOptions = [
|
||||
{ value: '3', label: t('commons.date.three_months') },
|
||||
{ value: '4', label: t('commons.date.one_month') }
|
||||
]
|
||||
|
||||
const requireKeys = [
|
||||
'logLiveTime',
|
||||
'thresholdLogLiveTime',
|
||||
'exportFileLiveTime',
|
||||
'frontTimeOut',
|
||||
'loginLimitTime',
|
||||
'loginLimitRate'
|
||||
]
|
||||
const state = reactive({
|
||||
form: reactive({
|
||||
dsIntervalTime: '30',
|
||||
@@ -166,16 +173,7 @@ const edit = (
|
||||
state.openOptions = openOptions || []
|
||||
state.settingList = list.map(item => {
|
||||
const pkey = item.pkey
|
||||
if (pkey === 'basic.logLiveTime' || pkey === 'basic.thresholdLogLiveTime') {
|
||||
rule[pkey.split('.')[1]] = [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.require'),
|
||||
trigger: ['blur', 'change']
|
||||
}
|
||||
]
|
||||
}
|
||||
if (pkey === 'basic.exportFileLiveTime' || pkey === 'basic.frontTimeOut') {
|
||||
if (requireKeys.some(requireKey => `basic.${requireKey}` === pkey)) {
|
||||
rule[pkey.split('.')[1]] = [
|
||||
{
|
||||
required: true,
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 6b08496835...3bc8d0b376
Reference in New Issue
Block a user