| | |
| | | v-model="loginForm.username" |
| | | auto-complete="off" |
| | | :placeholder="$t('login.username')"> |
| | | <i slot="prefix" class="icon-yonghu"/> |
| | | <i slot="prefix" class="icon-yonghu" style="color: white"/> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item prop="password"> |
| | |
| | | v-model="loginForm.password" |
| | | auto-complete="off" |
| | | :placeholder="$t('login.password')"> |
| | | <i class="el-icon-view el-input__icon" slot="suffix" @click="showPassword"/> |
| | | <i slot="prefix" class="icon-mima"/> |
| | | <i class="el-icon-view el-input__icon" slot="suffix" @click="showPassword" style="color: white"/> |
| | | <i slot="prefix" class="icon-mima" style="color: white"/> |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | |
| | | //用户名 |
| | | username: "admin", |
| | | //密码 |
| | | password: "admin", |
| | | password: "", |
| | | selectInput:'', |
| | | //下拉input数据 |
| | | value:'管理组', |
| | |
| | | text: '登录中,请稍后。。。', |
| | | spinner: "el-icon-loading" |
| | | }); |
| | | this.$store.dispatch("LoginByUsername", this.loginForm).then(() => { |
| | | this.$store.dispatch("LoginByUsername", this.loginForm).then((data) => { |
| | | if(data.obj.passwordInfo){ |
| | | this.$message.warning(data.obj.passwordInfo); |
| | | } |
| | | if (this.website.switchMode) { |
| | | const deptId = this.userInfo.deptOid; |
| | | const roleId = this.userInfo.userOid; |