注册租户的密码长度改为6位,给订单编辑页面去掉仓库新增按钮

This commit is contained in:
季圣华
2021-11-05 21:56:06 +08:00
parent c469520641
commit de7ed4a04c
3 changed files with 5 additions and 21 deletions

View File

@@ -14,20 +14,20 @@
<div :class="['user-register', passwordLevelClass]">强度:<span>{{ passwordLevelName }}</span></div>
<a-progress :percent="state.percent" :showInfo="false" :strokeColor=" passwordLevelColor "/>
<div style="margin-top: 10px;">
<span>请至少输入 8 个字符。请不要使用容易被猜到的密码。</span>
<span>请至少输入 6 个字符。请不要使用容易被猜到的密码。</span>
</div>
</div>
</template>
<a-form-item
fieldDecoratorId="password"
:fieldDecoratorOptions="{rules: [{ required: false}, { validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input size="large" type="password" @click="handlePasswordInputClick" autocomplete="false" placeholder="至少8位密码区分大小写"></a-input>
<a-input size="large" type="password" @click="handlePasswordInputClick" autocomplete="false" placeholder="至少6位密码区分大小写"></a-input>
</a-form-item>
</a-popover>
<a-form-item
fieldDecoratorId="password2"
:fieldDecoratorOptions="{rules: [{ required: true, message: '至少8位密码区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur'], validateFirst: true}">
:fieldDecoratorOptions="{rules: [{ required: true, message: '至少6位密码区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input size="large" type="password" autocomplete="false" placeholder="确认密码"></a-input>
</a-form-item>
@@ -163,9 +163,9 @@
handlePasswordLevel(rule, value, callback) {
let level = 0
let reg = /^(?=.*[a-z])(?=.*\d).{8,}$/;
let reg = /^(?=.*[a-z])(?=.*\d).{6,}$/;
if (!reg.test(value)) {
callback(new Error('密码由8位数字、小写字母组成!'))
callback(new Error('密码由6位数字、小写字母组成!'))
}
// 判断这个字符串中有没有数字
if (/[0-9]/.test(value)) {