|
|
@ -24,21 +24,40 @@ |
|
|
|
<a-form-item> |
|
|
|
<a-form-item> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<Icon class="aui-icon" icon="ant-design:mobile-outlined" /> |
|
|
|
<Icon class="aui-icon" icon="ant-design:mobile-outlined" /> |
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.mobile')" v-model:value="formData.mobile" /> |
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.name')" v-model:value="formData.name" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<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.department')" v-model:value="formData.department" /> |
|
|
|
|
|
|
|
<!-- <DeptSelectModal rowKey="id" @register="registerSelModal" @getSelectResult="onSelectOk"/> --> |
|
|
|
|
|
|
|
</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.name')" v-model:value="formData.name" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<!-- <a-form-item> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<Icon class="aui-icon" icon="ant-design:mail-outlined"/> |
|
|
|
<Icon class="aui-icon" icon="ant-design:mail-outlined"/> |
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.smsCode')" v-model:value="formData.smscode" /> |
|
|
|
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.smsCode')" v-model:value="formData.smscode" /> |
|
|
|
<div v-if="showInterval" class="aui-code-line" @click="getLoginCode">{{t('component.countdown.normalText')}}</div> |
|
|
|
<div v-if="showInterval" class="aui-code-line" @click="getLoginCode">{{t('component.countdown.normalText')}}</div> |
|
|
|
<div v-else class="aui-code-line">{{t('component.countdown.sendText',[unref(timeRuning)])}}</div> |
|
|
|
<div v-else class="aui-code-line">{{t('component.countdown.sendText',[unref(timeRuning)])}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> --> |
|
|
|
<a-form-item> |
|
|
|
<a-form-item> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<Icon class="aui-icon" icon="ant-design:lock-outlined" /> |
|
|
|
<Icon class="aui-icon" icon="ant-design:lock-outlined" /> |
|
|
|
<a-input class="fix-auto-fill" :type="pwdIndex==='close'?'password':'text'" :placeholder="t('sys.login.password')" v-model:value="formData.password" /> |
|
|
|
<a-input |
|
|
|
|
|
|
|
class="fix-auto-fill" |
|
|
|
|
|
|
|
:type="pwdIndex === 'close' ? 'password' : 'text'" |
|
|
|
|
|
|
|
:placeholder="t('sys.login.password')" |
|
|
|
|
|
|
|
v-model:value="formData.password" |
|
|
|
|
|
|
|
/> |
|
|
|
<div class="aui-eye"> |
|
|
|
<div class="aui-eye"> |
|
|
|
<img :src="eyeKImg" alt="开启" v-if="pwdIndex === 'open'" @click="pwdClick('close')" /> |
|
|
|
<img :src="eyeKImg" alt="开启" v-if="pwdIndex === 'open'" @click="pwdClick('close')" /> |
|
|
|
<img :src="eyeGImg" alt="关闭" v-else-if="pwdIndex === 'close'" @click="pwdClick('open')" /> |
|
|
|
<img :src="eyeGImg" alt="关闭" v-else-if="pwdIndex === 'close'" @click="pwdClick('open')" /> |
|
|
@ -48,7 +67,12 @@ |
|
|
|
<a-form-item> |
|
|
|
<a-form-item> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<div class="aui-input-line"> |
|
|
|
<Icon class="aui-icon" icon="ant-design:lock-outlined" /> |
|
|
|
<Icon class="aui-icon" icon="ant-design:lock-outlined" /> |
|
|
|
<a-input class="fix-auto-fill" :type="confirmPwdIndex==='close'?'password':'text'" :placeholder="t('sys.login.confirmPassword')" v-model:value="formData.confirmPassword" /> |
|
|
|
<a-input |
|
|
|
|
|
|
|
class="fix-auto-fill" |
|
|
|
|
|
|
|
:type="confirmPwdIndex === 'close' ? 'password' : 'text'" |
|
|
|
|
|
|
|
:placeholder="t('sys.login.confirmPassword')" |
|
|
|
|
|
|
|
v-model:value="formData.confirmPassword" |
|
|
|
|
|
|
|
/> |
|
|
|
<div class="aui-eye"> |
|
|
|
<div class="aui-eye"> |
|
|
|
<img :src="eyeKImg" alt="开启" v-if="confirmPwdIndex === 'open'" @click="confirmPwdClick('close')" /> |
|
|
|
<img :src="eyeKImg" alt="开启" v-if="confirmPwdIndex === 'open'" @click="confirmPwdClick('close')" /> |
|
|
|
<img :src="eyeGImg" alt="关闭" v-else-if="confirmPwdIndex === 'close'" @click="confirmPwdClick('open')" /> |
|
|
|
<img :src="eyeGImg" alt="关闭" v-else-if="confirmPwdIndex === 'close'" @click="confirmPwdClick('open')" /> |
|
|
@ -92,7 +116,7 @@ |
|
|
|
import jeecgAdTextImg from '/@/assets/loginmini/icon/jeecg_ad_text.png'; |
|
|
|
import jeecgAdTextImg from '/@/assets/loginmini/icon/jeecg_ad_text.png'; |
|
|
|
import eyeKImg from '/@/assets/loginmini/icon/icon-eye-k.png'; |
|
|
|
import eyeKImg from '/@/assets/loginmini/icon/icon-eye-k.png'; |
|
|
|
import eyeGImg from '/@/assets/loginmini/icon/icon-eye-g.png'; |
|
|
|
import eyeGImg from '/@/assets/loginmini/icon/icon-eye-g.png'; |
|
|
|
import { useI18n } from "/@/hooks/web/useI18n"; |
|
|
|
import { useI18n } from '/@/hooks/web/useI18n'; |
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n(); |
|
|
|
const { t } = useI18n(); |
|
|
|
const { notification, createErrorModal, createMessage } = useMessage(); |
|
|
|
const { notification, createErrorModal, createMessage } = useMessage(); |
|
|
@ -105,7 +129,11 @@ |
|
|
|
password: '', |
|
|
|
password: '', |
|
|
|
confirmPassword: '', |
|
|
|
confirmPassword: '', |
|
|
|
policy: false, |
|
|
|
policy: false, |
|
|
|
|
|
|
|
name: '', |
|
|
|
|
|
|
|
department: '', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 选择部门 |
|
|
|
//是否显示获取验证码 |
|
|
|
//是否显示获取验证码 |
|
|
|
const showInterval = ref<boolean>(true); |
|
|
|
const showInterval = ref<boolean>(true); |
|
|
|
//60s |
|
|
|
//60s |
|
|
@ -224,7 +252,7 @@ |
|
|
|
* 初始化表单 |
|
|
|
* 初始化表单 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function initForm() { |
|
|
|
function initForm() { |
|
|
|
Object.assign(formData,{username:'',mobile: '', smscode: '', password: '', confirmPassword: '', policy: false}) |
|
|
|
Object.assign(formData, { username: '', mobile: '', smscode: '', password: '', confirmPassword: '', policy: false }); |
|
|
|
if (!unref(timer)) { |
|
|
|
if (!unref(timer)) { |
|
|
|
showInterval.value = true; |
|
|
|
showInterval.value = true; |
|
|
|
clearInterval(unref(timer)); |
|
|
|
clearInterval(unref(timer)); |
|
|
@ -250,8 +278,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
defineExpose({ |
|
|
|
defineExpose({ |
|
|
|
initForm |
|
|
|
initForm, |
|
|
|
}) |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style lang="less" scoped> |
|
|
|
<style lang="less" scoped> |
|
|
|
@import '/@/assets/loginmini/style/home.less'; |
|
|
|
@import '/@/assets/loginmini/style/home.less'; |
|
|
|