|
|
@ -3,13 +3,13 @@ |
|
|
|
<div class="aui-container"> |
|
|
|
<div class="aui-container"> |
|
|
|
<div class="aui-form"> |
|
|
|
<div class="aui-form"> |
|
|
|
<div class="aui-image"> |
|
|
|
<div class="aui-image"> |
|
|
|
<div class="aui-image-text"> |
|
|
|
<!-- <div class="aui-image-text"> |
|
|
|
<img :src="jeecgAdTextImg" alt="" /> |
|
|
|
<img :src="jeecgAdTextImg" alt="" /> |
|
|
|
</div> |
|
|
|
</div>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="aui-formBox"> |
|
|
|
<div class="aui-formBox"> |
|
|
|
<div class="aui-formWell"> |
|
|
|
<div class="aui-formWell"> |
|
|
|
<a-form ref="formRef" :model="formData"> |
|
|
|
<a-form ref="formRef" :model="formData" :rules="rules"> |
|
|
|
<div class="aui-flex aui-form-nav aui-clear-left" style="padding-bottom: 21px"> |
|
|
|
<div class="aui-flex aui-form-nav aui-clear-left" style="padding-bottom: 21px"> |
|
|
|
<div class="aui-flex-box activeNav on">{{t('sys.login.registerButton4shenbaoren')}}</div> |
|
|
|
<div class="aui-flex-box activeNav on">{{t('sys.login.registerButton4shenbaoren')}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -42,7 +42,7 @@ |
|
|
|
<!-- </a-form-item>--> |
|
|
|
<!-- </a-form-item>--> |
|
|
|
<a-form-item> |
|
|
|
<a-form-item> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<JSelectDept :placeholder="t('sys.login.selectorgPlaceholder')" v-model:value="formData.department" :multiple="false" /> |
|
|
|
<JSelectDept :placeholder="t('sys.login.selectorgPlaceholder4Kejiju')" v-model:value="formData.department" :multiple="false" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
|
@ -229,21 +229,28 @@ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!formData.department) { |
|
|
|
if (!formData.department) { |
|
|
|
createMessage.warn(t('sys.login.selectorgPlaceholder')); |
|
|
|
createMessage.warn(t('sys.login.selectorgPlaceholder4Kejiju')); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!formData.mobile) { |
|
|
|
if (!formData.mobile) { |
|
|
|
createMessage.warn(t('sys.login.mobilePlaceholder')); |
|
|
|
createMessage.warn(t('sys.login.mobilePlaceholder')); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const phoneRegex = /^1[3-9]\d{9}$/; |
|
|
|
|
|
|
|
if (!phoneRegex.test(formData.mobile)) { |
|
|
|
|
|
|
|
createMessage.warn(t('sys.login.mobilePlaceholderNotReg')); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (!formData.password) { |
|
|
|
if (!formData.password) { |
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// if (!formData.workno) { |
|
|
|
//包含字母(大小写)、数字以及特殊字符,并且有一定的长度要求,至少 8 位 |
|
|
|
// createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$%^&+=!])(?=.{8,})$/; |
|
|
|
// return; |
|
|
|
if (!passwordRegex.test(formData.password)) { |
|
|
|
// } |
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholderNotReg')); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (!formData.confirmPassword) { |
|
|
|
if (!formData.confirmPassword) { |
|
|
|
createMessage.warn(t('sys.login.confirmPassword')); |
|
|
|
createMessage.warn(t('sys.login.confirmPassword')); |
|
|
|
return; |
|
|
|
return; |
|
|
|