| | |
| | | </span> |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-select v-model="loginForm.role" placeholder="请选择角色" size="small"> |
| | | <el-option label="角色1" value="role1"></el-option> |
| | | <el-option label="角色2" value="role2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <div class="user-action"> |
| | | <a @click="handleForgetPassword"> |
| | | <span>忘记密码</span> |
| | | </a> |
| | | </div> |
| | | <el-button :loading="loading" class="loginButton" type="primary" @click.native.prevent="handleLogin">登录</el-button> |
| | | <el-button :loading="loading" class="loginButton" type="primary" @click.native.prevent="handleLogin">登 录</el-button> |
| | | </el-form> |
| | | </div> |
| | | </template> |
| | |
| | | // 登录 |
| | | handleLogin () { |
| | | localStorage.setItem('userId','user001'); |
| | | localStorage.setItem('userType', this.loginForm.role); |
| | | this.$router.push('/'); |
| | | }, |
| | | } |