| | |
| | | <template> |
| | | <el-form size="large" class="login-content-form"> |
| | | <el-form-item class="login-animation1"> |
| | | <el-input text :placeholder="$t('message.account.accountPlaceholder1')" v-model="state.ruleForm.userName" clearable autocomplete="off"> |
| | | <el-input text placeholder="请输入用户登录账号默认是手机号码" v-model="state.ruleForm.userName" clearable autocomplete="off"> |
| | | <template #prefix> |
| | | <el-icon class="el-input__icon"><ele-User /></el-icon> |
| | | </template> |
| | |
| | | LS_token: '', |
| | | isShowPassword: false, |
| | | ruleForm: { |
| | | userName: 'cycems', |
| | | password: '123456', |
| | | code: '1234', |
| | | userName: '', |
| | | password: '', |
| | | code: '', |
| | | clientCode: '', |
| | | }, |
| | | clients: [], |
| | |
| | | |
| | | } else { //第一次登录没有选择到客户 |
| | | state.loading.signIn = true; |
| | | const signInRes = await signIn(`user_no=${state.ruleForm.userName}&user_password=${state.ruleForm.password}`); |
| | | const signInRes = await signIn(`userno=${state.ruleForm.userName}&password=${state.ruleForm.password}`); |
| | | if (signInRes.data) { |
| | | // 存储 token 到浏览器缓存 |
| | | Session.set('token', signInRes.data); |