| | |
| | | <div class="right"> |
| | | <div style="width: calc(100% - 100px * 2);"> |
| | | <div class="title_big">欢迎您登录!</div> |
| | | <div class="title_small">山东胜云数据管理平台(DMS)</div> |
| | | <div class="title_small">LIMS实验室管理系统</div> |
| | | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="elform" :hide-required-asterisk="true"> |
| | | <el-form-item label="用户名" prop="account"> |
| | | <el-input v-model="ruleForm.account" placeholder="请输入账号" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="密码" prop="pwd"> |
| | | <el-input v-model="ruleForm.pwd" placeholder="请输入密码" clearable show-password></el-input> |
| | | <el-input v-model="ruleForm.pwd" placeholder="请输入密码" clearable show-password @keyup.enter.native="submitForm('ruleForm')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item style="margin-bottom: 8px;"> |
| | | <el-col :span="12"><el-checkbox v-model="ruleForm.remumberme">记住密码</el-checkbox></el-col> |
| | |
| | | } |
| | | localStorage.setItem('rememberme', this.ruleForm.remumberme) |
| | | localStorage.setItem('autoenter', this.ruleForm.autoenter) |
| | | if (this.ruleForm.remumberme==true||this.ruleForm.autoenter==true) localStorage.setItem('user', JSON.stringify({ |
| | | account: this.ruleForm.account, |
| | | password: this.ruleForm.pwd, |
| | | name: res.data.name |
| | | })) |
| | | localStorage.setItem('user', JSON.stringify({ |
| | | account: this.ruleForm.account, |
| | | password: this.ruleForm.pwd, |
| | | name: res.data.name |
| | | })) |
| | | sessionStorage.setItem('token', res.data.token) |
| | | sessionStorage.setItem('reToken', res.data.reToken) |
| | | sessionStorage.setItem('power', JSON.stringify(res.data.power)) |
| | | this.$message.success("登录成功") |
| | | this.$router.push('/') |
| | | }).catch(e => { |