|
@ -15,7 +15,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-form-item label="密码难度" prop="ruleLevel" align="center"> |
|
|
<el-form-item label="密码难度" prop="ruleLevel" align="center"> |
|
|
<el-select v-model="passwordConfig.ruleLevel" placeholder="请选择密码难度"> |
|
|
<el-select v-model="passwordConfig.ruleLevel" placeholder="请选择密码难度" @change="changeRule"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in ruleList" |
|
|
v-for="item in ruleList" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
@ -25,6 +25,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<div>{{passwordConfig.ruleDesc}}</div> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-form-item label="每分钟密码输入错误" prop="tryCount"> |
|
|
<el-form-item label="每分钟密码输入错误" prop="tryCount"> |
|
|
<el-input-number |
|
|
<el-input-number |
|
@ -107,7 +108,7 @@ const reset = () => { |
|
|
passwordConfig.value = { |
|
|
passwordConfig.value = { |
|
|
status: true, |
|
|
status: true, |
|
|
ruleLevel: "简单", |
|
|
ruleLevel: "简单", |
|
|
ruleDesc: "", |
|
|
ruleDesc: "1", |
|
|
tryCount: 3, |
|
|
tryCount: 3, |
|
|
lockHours: 1, |
|
|
lockHours: 1, |
|
|
updatePeriod: 30, |
|
|
updatePeriod: 30, |
|
@ -134,6 +135,13 @@ const getConfig = async () => { |
|
|
loading.value = false |
|
|
loading.value = false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
const changeRule = async(v) =>{ |
|
|
|
|
|
ruleList.value.forEach((item) => { |
|
|
|
|
|
if(item.ruleLevel == v){ |
|
|
|
|
|
passwordConfig.value.ruleDesc = item.desc |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
const ruleList = ref([]) |
|
|
const ruleList = ref([]) |
|
|
/** 获取规则等级 */ |
|
|
/** 获取规则等级 */ |
|
|
const getRuleList = async () => { |
|
|
const getRuleList = async () => { |
|
|