修改BUG:所有指派按钮点击后先出现swal弹框
This commit is contained in:
parent
1bb654d626
commit
e388337043
|
@ -303,13 +303,13 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Role.getRolesByUserId = function (userId, callback) {
|
Role.getRolesByUserId = function (userId, callback) {
|
||||||
processData.call(this, { Id: userId, callback: callback, data: { type: "user" } });
|
processData.call(this, { Id: userId, callback: callback, data: { type: "user" }, swal: false });
|
||||||
};
|
};
|
||||||
Role.getRolesByGroupId = function (groupId, callback) {
|
Role.getRolesByGroupId = function (groupId, callback) {
|
||||||
processData.call(this, { Id: groupId, callback: callback, data: { type: "group" } });
|
processData.call(this, { Id: groupId, callback: callback, data: { type: "group" }, swal: false });
|
||||||
};
|
};
|
||||||
Role.getRolesByMenuId = function (menuId, callback) {
|
Role.getRolesByMenuId = function (menuId, callback) {
|
||||||
processData.call(this, { Id: menuId, callback: callback, data: { type: "menu" } });
|
processData.call(this, { Id: menuId, callback: callback, data: { type: "menu" }, swal: false });
|
||||||
};
|
};
|
||||||
Role.saveRolesByUserId = function (userId, roleIds, callback) {
|
Role.saveRolesByUserId = function (userId, roleIds, callback) {
|
||||||
processData.call(this, { Id: userId, callback: callback, method: "PUT", data: { type: "user", roleIds: roleIds } });
|
processData.call(this, { Id: userId, callback: callback, method: "PUT", data: { type: "user", roleIds: roleIds } });
|
||||||
|
@ -331,13 +331,13 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
User.getUsersByRoleId = function (roleId, callback) {
|
User.getUsersByRoleId = function (roleId, callback) {
|
||||||
processData.call(this, { Id: roleId, callback: callback, data: { type: "role" } });
|
processData.call(this, { Id: roleId, callback: callback, data: { type: "role" }, swal: false });
|
||||||
};
|
};
|
||||||
User.saveUsersByRoleId = function (roleId, userIds, callback) {
|
User.saveUsersByRoleId = function (roleId, userIds, callback) {
|
||||||
processData.call(this, { Id: roleId, callback: callback, method: "PUT", data: { type: "role", userIds: userIds } });
|
processData.call(this, { Id: roleId, callback: callback, method: "PUT", data: { type: "role", userIds: userIds } });
|
||||||
};
|
};
|
||||||
User.getUsersByGroupeId = function (groupId, callback) {
|
User.getUsersByGroupeId = function (groupId, callback) {
|
||||||
processData.call(this, { Id: groupId, callback: callback, data: { type: "group" } });
|
processData.call(this, { Id: groupId, callback: callback, data: { type: "group" }, swal: false });
|
||||||
};
|
};
|
||||||
User.saveUsersByGroupId = function (groupId, userIds, callback) {
|
User.saveUsersByGroupId = function (groupId, userIds, callback) {
|
||||||
processData.call(this, { Id: groupId, callback: callback, method: "PUT", data: { type: "group", userIds: userIds } });
|
processData.call(this, { Id: groupId, callback: callback, method: "PUT", data: { type: "group", userIds: userIds } });
|
||||||
|
@ -362,13 +362,13 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Group.getGroupsByUserId = function (userId, callback) {
|
Group.getGroupsByUserId = function (userId, callback) {
|
||||||
processData.call(this, { Id: userId, callback: callback, data: { type: "user" } });
|
processData.call(this, { Id: userId, callback: callback, data: { type: "user" }, swal: false });
|
||||||
};
|
};
|
||||||
Group.saveGroupsByUserId = function (userId, groupIds, callback) {
|
Group.saveGroupsByUserId = function (userId, groupIds, callback) {
|
||||||
processData.call(this, { Id: userId, callback: callback, method: "PUT", data: { type: "user", groupIds: groupIds } });
|
processData.call(this, { Id: userId, callback: callback, method: "PUT", data: { type: "user", groupIds: groupIds } });
|
||||||
};
|
};
|
||||||
Group.getGroupsByRoleId = function (roleId, callback) {
|
Group.getGroupsByRoleId = function (roleId, callback) {
|
||||||
processData.call(this, { Id: roleId, callback: callback, data: { type: "role" } });
|
processData.call(this, { Id: roleId, callback: callback, data: { type: "role" }, swal: false });
|
||||||
};
|
};
|
||||||
Group.saveGroupsByRoleId = function (roleId, groupIds, callback) {
|
Group.saveGroupsByRoleId = function (roleId, groupIds, callback) {
|
||||||
processData.call(this, { Id: roleId, callback: callback, method: "PUT", data: { type: "role", groupIds: groupIds } });
|
processData.call(this, { Id: roleId, callback: callback, method: "PUT", data: { type: "role", groupIds: groupIds } });
|
||||||
|
@ -399,10 +399,10 @@
|
||||||
return html;
|
return html;
|
||||||
};
|
};
|
||||||
Menu.getMenus = function (callback) {
|
Menu.getMenus = function (callback) {
|
||||||
processData.call(this, { Id: 0, callback: callback, data: { type: "user" } });
|
processData.call(this, { Id: 0, callback: callback, data: { type: "user" }, swal: false });
|
||||||
};
|
};
|
||||||
Menu.getMenusByRoleId = function (roleId, callback) {
|
Menu.getMenusByRoleId = function (roleId, callback) {
|
||||||
processData.call(this, { Id: roleId, callback: callback, data: { type: "role" }, html: null });
|
processData.call(this, { Id: roleId, callback: callback, data: { type: "role" }, swal: false, html: null });
|
||||||
};
|
};
|
||||||
Menu.saveMenusByRoleId = function (roleId, menuIds, callback) {
|
Menu.saveMenusByRoleId = function (roleId, menuIds, callback) {
|
||||||
processData.call(this, { Id: roleId, callback: callback, method: "PUT", data: { type: "role", menuIds: menuIds } });
|
processData.call(this, { Id: roleId, callback: callback, method: "PUT", data: { type: "role", menuIds: menuIds } });
|
||||||
|
|
Loading…
Reference in New Issue