|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<!-- 搜索 --> |
|
|
<!-- 搜索 --> |
|
|
<div v-loading="loading" class="box"> |
|
|
<div v-loading="loading" class="box"> |
|
|
<el-form ref="formSmsLogin" :model="data" :rules="rules" label-width="90px" size="large"> |
|
|
<el-form ref="formSmsLogin" :model="data" :rules="rules" label-width="180px" size="large"> |
|
|
<div |
|
|
<div |
|
|
class="title" |
|
|
class="title" |
|
|
style="font-size: 20px; text-align: center; margin-bottom: 20px; font-weight: bold" |
|
|
style="font-size: 20px; text-align: center; margin-bottom: 20px; font-weight: bold" |
|
@ -26,40 +26,51 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<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" |
|
|
/>次 |
|
|
/>次 |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-form-item label="锁定时长" prop="lockMinutes"> |
|
|
<el-form-item label="锁定" prop="lockHours"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
v-model="passwordConfig.lockMinutes" |
|
|
v-model="passwordConfig.lockHours" |
|
|
:min="0" |
|
|
:min="1" |
|
|
:precision="0" |
|
|
:precision="0" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
/>小时 |
|
|
/>小时 |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-form-item label="更新周期" prop="updatePeriod"> |
|
|
<el-form-item label="24小时内密码输入错误" prop="tryCount"> |
|
|
|
|
|
<el-input-number |
|
|
|
|
|
v-model="passwordConfig.dayTryCount" |
|
|
|
|
|
:min="3" |
|
|
|
|
|
:precision="0" |
|
|
|
|
|
style="margin-right: 10px" |
|
|
|
|
|
/>次冻结24小时 |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col> |
|
|
|
|
|
<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" |
|
|
/>天 |
|
|
/>天 |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<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" |
|
|
/>天 |
|
|
/>天 |
|
@ -98,8 +109,10 @@ const reset = () => { |
|
|
ruleLevel: "简单", |
|
|
ruleLevel: "简单", |
|
|
ruleDesc: "", |
|
|
ruleDesc: "", |
|
|
tryCount: 3, |
|
|
tryCount: 3, |
|
|
lockMinutes: 1, |
|
|
lockHours: 1, |
|
|
updatePeriod: 1, |
|
|
updatePeriod: 30, |
|
|
|
|
|
dayTryCount: 3, |
|
|
|
|
|
updateRemind: 7, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const passwordConfig = ref({ |
|
|
const passwordConfig = ref({ |
|
@ -107,8 +120,10 @@ const passwordConfig = ref({ |
|
|
ruleLevel: "简单", |
|
|
ruleLevel: "简单", |
|
|
ruleDesc: "", |
|
|
ruleDesc: "", |
|
|
tryCount: 3, |
|
|
tryCount: 3, |
|
|
lockMinutes: 1, |
|
|
lockHours: 1, |
|
|
updatePeriod: 1, |
|
|
updatePeriod: 30, |
|
|
|
|
|
dayTryCount: 3, |
|
|
|
|
|
updateRemind: 7, |
|
|
}) |
|
|
}) |
|
|
/** 查询配置 */ |
|
|
/** 查询配置 */ |
|
|
const getConfig = async () => { |
|
|
const getConfig = async () => { |
|
|