|
|
|
@ -27,6 +27,12 @@ |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.name')" v-model:value="formData.realname" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<Icon class="aui-icon" icon="ant-design:mobile-outlined" /> |
|
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.workno')" v-model:value="formData.workno" /> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="aui-input-line"> |
|
|
|
|
<!-- <Icon class="aui-icon" icon="ant-design:mobile-outlined" /> --> |
|
|
|
@ -137,6 +143,7 @@ |
|
|
|
|
const formRef = ref(); |
|
|
|
|
const formData = reactive<any>({ |
|
|
|
|
username: '', |
|
|
|
|
workno: '', |
|
|
|
|
mobile: '', |
|
|
|
|
smscode: '', |
|
|
|
|
password: '', |
|
|
|
@ -228,6 +235,10 @@ const randCodeData = reactive<any>({ |
|
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!formData.workno) { |
|
|
|
|
createMessage.warn(t('sys.login.passwordPlaceholder')); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!formData.confirmPassword) { |
|
|
|
|
createMessage.warn(t('sys.login.confirmPassword')); |
|
|
|
|
return; |
|
|
|
@ -250,6 +261,7 @@ const randCodeData = reactive<any>({ |
|
|
|
|
try { |
|
|
|
|
const resultInfo = await registerStu( |
|
|
|
|
toRaw({ |
|
|
|
|
workno: formData.workno, |
|
|
|
|
username: formData.username, |
|
|
|
|
departmentid: formData.department, |
|
|
|
|
realname: formData.realname, |
|
|
|
@ -286,7 +298,7 @@ const randCodeData = reactive<any>({ |
|
|
|
|
* 初始化表单 |
|
|
|
|
*/ |
|
|
|
|
function initForm() { |
|
|
|
|
Object.assign(formData, { username: '', mobile: '', realname: '', department: '', smscode: '', password: '', confirmPassword: ''/*, policy: false*/ }); |
|
|
|
|
Object.assign(formData, { workno: '', username: '', mobile: '', realname: '', department: '', smscode: '', password: '', confirmPassword: ''/*, policy: false*/ }); |
|
|
|
|
if (!unref(timer)) { |
|
|
|
|
showInterval.value = true; |
|
|
|
|
clearInterval(unref(timer)); |
|
|
|
|