| | |
| | | <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item prop="code" v-if="captchaEnabled"> |
| | | <el-input v-model="loginForm.code" auto-complete="off" placeholder="验证码" style="width: 63%" |
| | | @keyup.enter.native="handleLogin"> |
| | | <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" /> |
| | | </el-input> |
| | | <div class="login-code"> |
| | | <img :src="codeUrl" @click="getCode" class="login-code-img" /> |
| | | </div> |
| | | </el-form-item> |
| | | <!-- <el-form-item prop="code" v-if="captchaEnabled">--> |
| | | <!-- <el-input v-model="loginForm.code" auto-complete="off" placeholder="验证码" style="width: 63%"--> |
| | | <!-- @keyup.enter.native="handleLogin">--> |
| | | <!-- <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />--> |
| | | <!-- </el-input>--> |
| | | <!-- <div class="login-code">--> |
| | | <!-- <img :src="codeUrl" @click="getCode" class="login-code-img" />--> |
| | | <!-- </div>--> |
| | | <!-- </el-form-item>--> |
| | | <el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox> |
| | | <el-form-item style="width:100%;"> |
| | | <el-button :loading="loading" size="medium" type="primary" style="width:100%;" |
| | |
| | | <router-link class="link-type" :to="'/register'">立即注册</router-link> |
| | | </div> |
| | | </el-form-item> |
| | | <el-button v-if="false" type="primary" plain @click="goLogin">集团集成登录</el-button> |
| | | <el-button v-if="true" type="primary" plain @click="goLogin">集团集成登录</el-button> |
| | | </el-form> |
| | | </div> |
| | | <!-- 底部 --> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getCode(); |
| | | // this.getCode(); |
| | | this.getCookie(); |
| | | }, |
| | | methods: { |
| | |
| | | Cookies.remove('rememberMe'); |
| | | } |
| | | this.$store.dispatch("Login", this.loginForm).then(() => { |
| | | this.$router.push({ path: this.redirect || "/" }).catch(() => { }); |
| | | this.$router.push({ path: "/" }).catch(() => { }); |
| | | }).catch(() => { |
| | | this.loading = false; |
| | | if (this.captchaEnabled) { |