Commit 08e21df3 authored by zhoulimin's avatar zhoulimin

up

parent 98a263eb
......@@ -11,7 +11,6 @@
<el-form
:model="form"
ref="form1"
@submit.native.prevent
class="login_forms"
>
<el-form-item>
......@@ -41,11 +40,13 @@
</el-input>
</el-form-item>
</el-form>
<el-form
:model="yzms"
:rules="yzmRules"
ref="yzms"
class="demo-ruleForm"
@submit.native.prevent
>
<el-form-item
prop="yzm"
......@@ -437,7 +438,7 @@ export default {
callback(new Error(response.data.errMsg));
}
})
.catch(function(response) {});
.catch(function (response) {});
}
};
var validateCheckCode = (rule, value, callback) => {
......@@ -569,8 +570,10 @@ export default {
type: "error",
});
} else {
self.$refs["yzms"].validate((volid_yzm) => {
if (volid_yzm) {
console.log(2);
self.submitLoginForm();
} else {
// self.$message({
......@@ -578,13 +581,14 @@ export default {
// type: "error",
// });
self.refreshCode();
this.getImg();
self.getImg();
}
});
}
},
// 提交登录表单
submitLoginForm() {
console.log();
let self = this;
var psw = CryptoJS.AES.encrypt(
this.form.password,
......@@ -628,7 +632,7 @@ export default {
});
},
login_remember_info() {
console.log(1111)
console.log(1111);
if (this.checked) {
setCookie(this.form.userid, this.form.password, 7);
} else {
......@@ -647,7 +651,7 @@ export default {
this.imgSrc = response.data.data.captcha;
}
})
.catch(function(response) {});
.catch(function (response) {});
},
changePass() {
this.visible = !this.visible;
......@@ -669,9 +673,8 @@ export default {
},
makeCode(o, l) {
for (let i = 0; i < l; i++) {
this.identifyCode += this.identifyCodes[
this.randomNum(0, this.identifyCodes.length)
];
this.identifyCode +=
this.identifyCodes[this.randomNum(0, this.identifyCodes.length)];
}
},
getOrganizations() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment