fix: 系统菜单用户列表能修改LDAP来源用户的密码

This commit is contained in:
shiziyuan9527 2020-07-21 13:52:12 +08:00
parent f29dfbf018
commit 7bd9f429c2
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@
</resultMap>
<select id="getUserList" resultMap="BaseResultMap">
select u.id, u.name, u.email, u.phone, u.language, u.status,
select u.id, u.name, u.email, u.phone, u.language, u.status, u.source,
u.last_organization_id, u.last_workspace_id, u.language, u.create_time, u.update_time
from `user` u
<where>

View File

@ -37,7 +37,7 @@
<ms-table-operator @editClick="edit(scope.row)" @deleteClick="del(scope.row)">
<template v-slot:behind>
<ms-table-operator-button :tip="$t('member.edit_password')" icon="el-icon-s-tools"
type="success" @exec="editPassword(scope.row)"/>
type="success" @exec="editPassword(scope.row)" v-if="!scope.row.isLdapUser"/>
</template>
</ms-table-operator>
</template>
@ -488,6 +488,7 @@
let roles = data.roles;
// let userRoles = result.userRoles;
this.$set(this.tableData[i], "roles", roles);
this.$set(this.tableData[i], "isLdapUser", this.tableData[i].source === 'LDAP' ? true : false);
});
}
})