|
|
|
@ -3,9 +3,9 @@ |
|
|
|
|
<div class="aui-container"> |
|
|
|
|
<div class="aui-form"> |
|
|
|
|
<div class="aui-image"> |
|
|
|
|
<div class="aui-image-text"> |
|
|
|
|
<img :src="jeecgAdTextImg" alt="" /> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="aui-image-text"> |
|
|
|
|
<img :src="jeecgAdTextImg" alt="" /> |
|
|
|
|
</div>--> |
|
|
|
|
</div> |
|
|
|
|
<div class="aui-formBox"> |
|
|
|
|
<div class="aui-formWell"> |
|
|
|
@ -15,18 +15,18 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="aui-form-box"> |
|
|
|
|
<div class="aui-account aui-account-line"> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:user-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('请输入单位名称')" v-model:value="formData.orgName" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:user-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('请输入统一社会信用代码')" v-model:value="formData.certificateCode" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:user-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('请输入单位名称')" v-model:value="formData.orgName" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:user-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('请输入统一社会信用代码')" v-model:value="formData.certificateCode" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:mobile-outlined" /> |
|
|
|
@ -34,14 +34,14 @@ |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:user-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('请输法人身份证号')" v-model:value="formData.idNo" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:user-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('请输法人身份证号')" v-model:value="formData.idNo" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<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> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
@ -224,7 +224,7 @@ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!formData.department) { |
|
|
|
|
createMessage.warn(t('sys.login.selectorgPlaceholder')); |
|
|
|
|
createMessage.warn(t('sys.login.selectorgPlaceholder4Kejiju')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!formData.username) { |
|
|
|
@ -235,10 +235,21 @@ |
|
|
|
|
createMessage.warn(t('sys.login.mobilePlaceholder')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
const phoneRegex = /^1[3-9]\d{9}$/; |
|
|
|
|
if (!phoneRegex.test(formData.mobile)) { |
|
|
|
|
createMessage.warn(t('sys.login.mobilePlaceholderNotReg')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!formData.password) { |
|
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
//包含字母(大小写)、数字以及特殊字符,并且有一定的长度要求,至少 8 位 |
|
|
|
|
const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$%^&+=!])(?=.{8,})$/; |
|
|
|
|
if (!passwordRegex.test(formData.password)) { |
|
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholderNotReg')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// if (!formData.workno) { |
|
|
|
|
// createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
|
// return; |
|
|
|
@ -345,16 +356,16 @@ |
|
|
|
|
defineExpose({ |
|
|
|
|
initForm, |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
@import '/@/assets/loginmini/style/home.less'; |
|
|
|
|
@import '/@/assets/loginmini/style/base.less'; |
|
|
|
|
.aui-input-line .aui-icon { |
|
|
|
|
position: absolute; |
|
|
|
|
z-index: 2; |
|
|
|
|
top: 10px; |
|
|
|
|
left: 10px; |
|
|
|
|
font-size: 20px !important; |
|
|
|
|
} |
|
|
|
|
@import '/@/assets/loginmini/style/home.less'; |
|
|
|
|
@import '/@/assets/loginmini/style/base.less'; |
|
|
|
|
.aui-input-line .aui-icon { |
|
|
|
|
position: absolute; |
|
|
|
|
z-index: 2; |
|
|
|
|
top: 10px; |
|
|
|
|
left: 10px; |
|
|
|
|
font-size: 20px !important; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|