|
@ -29,7 +29,7 @@ |
|
|
<el-form-item label="试错次数" prop="tryCount"> |
|
|
<el-form-item label="试错次数" prop="tryCount"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
v-model="passwordConfig.tryCount" |
|
|
v-model="passwordConfig.tryCount" |
|
|
:min="0" |
|
|
:min="3" |
|
|
:precision="0" |
|
|
:precision="0" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
/>每分钟 |
|
|
/>每分钟 |
|
@ -39,7 +39,7 @@ |
|
|
<el-form-item label="锁定时长" prop="lockMinutes"> |
|
|
<el-form-item label="锁定时长" prop="lockMinutes"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
v-model="passwordConfig.lockMinutes" |
|
|
v-model="passwordConfig.lockMinutes" |
|
|
:min="0" |
|
|
:min="1" |
|
|
:precision="0" |
|
|
:precision="0" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
/>小时 |
|
|
/>小时 |
|
@ -49,7 +49,7 @@ |
|
|
<el-form-item label="试错次数" prop="tryCount"> |
|
|
<el-form-item label="试错次数" prop="tryCount"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
v-model="passwordConfig.dayTryCount" |
|
|
v-model="passwordConfig.dayTryCount" |
|
|
:min="0" |
|
|
:min="3" |
|
|
:precision="0" |
|
|
:precision="0" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
/>每天 |
|
|
/>每天 |
|
@ -59,7 +59,7 @@ |
|
|
<el-form-item label="更新周期" prop="updatePeriod"> |
|
|
<el-form-item label="更新周期" prop="updatePeriod"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
v-model="passwordConfig.updatePeriod" |
|
|
v-model="passwordConfig.updatePeriod" |
|
|
:min="0" |
|
|
:min="3" |
|
|
:precision="0" |
|
|
:precision="0" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
/>天 |
|
|
/>天 |
|
@ -69,7 +69,7 @@ |
|
|
<el-form-item label="更新预警期" prop="updateRemind"> |
|
|
<el-form-item label="更新预警期" prop="updateRemind"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
v-model="passwordConfig.updateRemind" |
|
|
v-model="passwordConfig.updateRemind" |
|
|
:min="0" |
|
|
:min="1" |
|
|
:precision="0" |
|
|
:precision="0" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
/>天 |
|
|
/>天 |
|
@ -109,8 +109,9 @@ const reset = () => { |
|
|
ruleDesc: "", |
|
|
ruleDesc: "", |
|
|
tryCount: 3, |
|
|
tryCount: 3, |
|
|
lockMinutes: 1, |
|
|
lockMinutes: 1, |
|
|
updatePeriod: 1, |
|
|
updatePeriod: 30, |
|
|
dayTryCount: 3, |
|
|
dayTryCount: 3, |
|
|
|
|
|
updateRemind: 7, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const passwordConfig = ref({ |
|
|
const passwordConfig = ref({ |
|
@ -119,8 +120,9 @@ const passwordConfig = ref({ |
|
|
ruleDesc: "", |
|
|
ruleDesc: "", |
|
|
tryCount: 3, |
|
|
tryCount: 3, |
|
|
lockMinutes: 1, |
|
|
lockMinutes: 1, |
|
|
updatePeriod: 1, |
|
|
updatePeriod: 30, |
|
|
dayTryCount: 3, |
|
|
dayTryCount: 3, |
|
|
|
|
|
updateRemind: 7, |
|
|
}) |
|
|
}) |
|
|
/** 查询配置 */ |
|
|
/** 查询配置 */ |
|
|
const getConfig = async () => { |
|
|
const getConfig = async () => { |
|
|