diff --git a/ruoyi-admin/src/main/resources/templates/system/user/user.html b/ruoyi-admin/src/main/resources/templates/system/user/user.html
index 21d506c37..dcc1c9a84 100644
--- a/ruoyi-admin/src/main/resources/templates/system/user/user.html
+++ b/ruoyi-admin/src/main/resources/templates/system/user/user.html
@@ -175,8 +175,8 @@
actions.push('编辑 ');
actions.push('删除 ');
var more = [];
- more.push("重置密码 ");
- more.push("分配角色");
+ more.push("重置密码 ");
+ more.push("分配角色");
actions.push('更多操作');
return actions.join('');
}
@@ -225,13 +225,15 @@
}
/* 用户管理-重置密码 */
- function resetPwd(userId) {
+ function resetPwd(obj) {
+ var userId = $(obj).attr("dataid");
var url = prefix + '/resetPwd/' + userId;
$.modal.open("重置密码", url, '800', '300');
}
/* 用户管理-分配角色 */
- function authRole(userId) {
+ function authRole(obj) {
+ var userId = $(obj).attr("dataid");
var url = prefix + '/authRole/' + userId;
$.modal.openTab("用户分配角色", url);
}