|
|
@ -28,7 +28,7 @@
|
|
|
|
<el-form-item prop="password">
|
|
|
|
<el-form-item prop="password">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="loginForm.password"
|
|
|
|
v-model="loginForm.password"
|
|
|
|
type="password"
|
|
|
|
:type="type"
|
|
|
|
auto-complete="off"
|
|
|
|
auto-complete="off"
|
|
|
|
placeholder="密码"
|
|
|
|
placeholder="密码"
|
|
|
|
@keyup.enter.native="handleLogin"
|
|
|
|
@keyup.enter.native="handleLogin"
|
|
|
@ -36,6 +36,14 @@
|
|
|
|
<div slot="prefix" class="iconO">
|
|
|
|
<div slot="prefix" class="iconO">
|
|
|
|
<div class="iconUser1"></div>
|
|
|
|
<div class="iconUser1"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="look-icon" slot="suffix">
|
|
|
|
|
|
|
|
<i
|
|
|
|
|
|
|
|
class="icon-style"
|
|
|
|
|
|
|
|
:class="elIcon"
|
|
|
|
|
|
|
|
autocomplete="auto"
|
|
|
|
|
|
|
|
@click="flag = !flag"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item prop="code" v-if="captchaEnabled">
|
|
|
|
<el-form-item prop="code" v-if="captchaEnabled">
|
|
|
@ -93,8 +101,17 @@ import { encrypt, decrypt } from "@/utils/jsencrypt";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Login",
|
|
|
|
name: "Login",
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
type() {
|
|
|
|
|
|
|
|
return this.flag ? "text" : "password";
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
elIcon() {
|
|
|
|
|
|
|
|
return this.flag ? "el-icon-minus" : "el-icon-view";
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
flag: false,
|
|
|
|
codeUrl: "",
|
|
|
|
codeUrl: "",
|
|
|
|
loginForm: {
|
|
|
|
loginForm: {
|
|
|
|
username: "",
|
|
|
|
username: "",
|
|
|
@ -192,6 +209,14 @@ export default {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss">
|
|
|
|
<style rel="stylesheet/scss" lang="scss">
|
|
|
|
|
|
|
|
.look-icon {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-style {
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
}
|
|
|
|
.loginfooterbox .el-button {
|
|
|
|
.loginfooterbox .el-button {
|
|
|
|
background: #115ba4 !important;
|
|
|
|
background: #115ba4 !important;
|
|
|
|
border-color: #115ba4 !important;
|
|
|
|
border-color: #115ba4 !important;
|
|
|
|