From 262ad49df67cd0c5dabf52c2191b9d9af526ee6a Mon Sep 17 00:00:00 2001 From: lanrenwo Date: Fri, 13 Jan 2023 15:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0object=5Fclass=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/group/List.vue | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/web/src/pages/group/List.vue b/web/src/pages/group/List.vue index e316e04..fcbbe21 100644 --- a/web/src/pages/group/List.vue +++ b/web/src/pages/group/List.vue @@ -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) { @@ -602,18 +605,18 @@ export default { axios.post('/group/auth_login', {name:this.authLoginForm.name, pwd:this.authLoginForm.pwd, auth:this.ruleForm.auth}).then(resp => { - const rdata = resp.data; - if (rdata.code === 0) { - this.$message.success("登录成功"); - } else { - this.$message.error(rdata.msg); - this.authLoginLoading = false; - } - console.log(rdata); - }).catch(error => { - this.$message.error('哦,请求出错'); - console.log(error); - this.authLoginLoading = false; + const rdata = resp.data; + if (rdata.code === 0) { + this.$message.success("登录成功"); + } else { + this.$message.error(rdata.msg); + } + this.authLoginLoading = false; + console.log(rdata); + }).catch(error => { + this.$message.error('哦,请求出错'); + console.log(error); + this.authLoginLoading = false; }); }); },