Commit a0226e2a by fengshuonan

更改修改用戶的邏輯錯誤

parent b93eaaa9
...@@ -92,12 +92,15 @@ MgrUser.openAddMgr = function () { ...@@ -92,12 +92,15 @@ MgrUser.openAddMgr = function () {
* 点击修改按钮时 * 点击修改按钮时
*/ */
MgrUser.openChangeUser = function (userId) { MgrUser.openChangeUser = function (userId) {
if (this.check()) { if(!userId){
if (!this.check()) {
return;
}
}
var selectId = userId; var selectId = userId;
if (!userId) { if (!userId) {
selectId = this.seItem.userId; selectId = this.seItem.userId;
} }
this.layerIndex = layer.open({ this.layerIndex = layer.open({
type: 2, type: 2,
title: '编辑管理员', title: '编辑管理员',
...@@ -106,7 +109,6 @@ MgrUser.openChangeUser = function (userId) { ...@@ -106,7 +109,6 @@ MgrUser.openChangeUser = function (userId) {
maxmin: true, maxmin: true,
content: Feng.ctxPath + '/mgr/user_edit?userId=' + selectId content: Feng.ctxPath + '/mgr/user_edit?userId=' + selectId
}); });
}
}; };
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment