增加object_class的处理逻辑

This commit is contained in:
lanrenwo 2023-01-13 15:00:14 +08:00
parent 6cfa92944c
commit 262ad49df6
1 changed files with 15 additions and 12 deletions

View File

@ -500,6 +500,9 @@ export default {
this.ruleForm.auth = JSON.parse(JSON.stringify(this.defAuth));
return ;
}
if (row.auth.type == "ldap" && ! row.auth.ldap.object_class) {
row.auth.ldap.object_class = this.defAuth.ldap.object_class;
}
this.ruleForm.auth = Object.assign(JSON.parse(JSON.stringify(this.defAuth)), row.auth);
},
handleDel(row) {
@ -607,8 +610,8 @@ export default {
this.$message.success("登录成功");
} else {
this.$message.error(rdata.msg);
this.authLoginLoading = false;
}
this.authLoginLoading = false;
console.log(rdata);
}).catch(error => {
this.$message.error('哦,请求出错');