问题修改 11.10

master
zhc077 2 weeks ago
parent f0607da28b
commit b0635bf166
  1. 2
      jeecgboot-vue3/src/locales/lang/zh-CN/sys.ts
  2. 13
      jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue
  3. 15
      jeecgboot-vue3/src/views/system/loginmini/MiniRegister4shenbaoren.vue

@ -92,10 +92,12 @@ export default {
inputCodePlaceholder: '请输入验证码',
smsPlaceholder: '请输入验证码',
mobilePlaceholder: '请输入手机号码',
mobilePlaceholderNotReg: '手机号格式不对',
mobileCorrectPlaceholder: '请输入正确的手机号码',
policyPlaceholder: '勾选后才能注册',
diffPwd: '两次输入密码不一致',
selectorgPlaceholder: '请选择所属单位',
selectorgPlaceholder4Kejiju: '请选择科技主管部门',
realNamePlaceholder: '请输入姓名',
workNoPlaceholder: '请输入工号',

@ -3,9 +3,9 @@
<div class="aui-container">
<div class="aui-form">
<div class="aui-image">
<div class="aui-image-text">
<!-- <div class="aui-image-text">
<img :src="jeecgAdTextImg" alt="" />
</div>
</div>-->
</div>
<div class="aui-formBox">
<div class="aui-formWell">
@ -41,7 +41,7 @@
</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) {
@ -239,6 +239,11 @@
createMessage.warn(t('sys.login.passwordPlaceholder'));
return;
}
const phoneRegex = /^1[3-9]\d{9}$/;
if (!phoneRegex.test(formData.mobile)) {
createMessage.warn(t('sys.login.mobilePlaceholderNotReg'));
return;
}
// if (!formData.workno) {
// createMessage.warn(t('sys.login.passwordPlaceholder'));
// return;

@ -3,13 +3,13 @@
<div class="aui-container">
<div class="aui-form">
<div class="aui-image">
<div class="aui-image-text">
<!-- <div class="aui-image-text">
<img :src="jeecgAdTextImg" alt="" />
</div>
</div>-->
</div>
<div class="aui-formBox">
<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-box activeNav on">{{t('sys.login.registerButton4shenbaoren')}}</div>
</div>
@ -42,7 +42,7 @@
<!-- </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>
@ -229,13 +229,18 @@
return;
}
if (!formData.department) {
createMessage.warn(t('sys.login.selectorgPlaceholder'));
createMessage.warn(t('sys.login.selectorgPlaceholder4Kejiju'));
return;
}
if (!formData.mobile) {
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;

Loading…
Cancel
Save