|
@@ -290,12 +290,20 @@ export default {
|
|
|
handleClick(tab) {
|
|
|
//调用对应model的init方法
|
|
|
this.$refs[tab.name]&&this.$refs[tab.name].modelInit()
|
|
|
+ this.$refs[tab.name]&&this.$refs[tab.name].$refs.modelForm.clearValidate()
|
|
|
if(tab.name==='ordinaryModel'){
|
|
|
- this.getRememberedInfo()
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.getRememberedInfo()
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
changeModel(model){
|
|
|
this.activeModel = model
|
|
|
+ if(model!=='forgetPassModel'){
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.getRememberedInfo()
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
handleLogin(){
|
|
|
//先进行判空的表单验证
|
|
@@ -378,6 +386,7 @@ export default {
|
|
|
if(res.Ret!==200){
|
|
|
//刷新图形验证码
|
|
|
this.$refs[model].getCodePic()
|
|
|
+ this.$refs[model].form.picCode = ''
|
|
|
model==='mobileModel'&&(this.logining = false)
|
|
|
model!=='mobileModel'&&(this.checkLogining = false)
|
|
|
return
|
|
@@ -396,6 +405,7 @@ export default {
|
|
|
if(res.Ret!==200){
|
|
|
//刷新图形验证码
|
|
|
this.$refs[model].getCodePic()
|
|
|
+ this.$refs[model].form.picCode = ''
|
|
|
model==='emailModel'&&(this.logining = false)
|
|
|
model!=='emailModel'&&(this.checkLogining = false)
|
|
|
return
|