/// <summary> /// 修改权限角色 /// </summary> /// <param name="objectId"></param> /// <param name="roleNames"></param> /// <param name="roleObjectIds"></param> /// <returns></returns> public ActionResult EditAuthRole(string objectId, string roleNames, string roleObjectIds) { AjaxReturnData result = new AjaxReturnData(); Authority model = new Authority(); model = _authority.SelectData <Authority>("select * from Authority where ObjectId='" + objectId + "'")[0]; model.RoleNames = roleNames; model.RoleObjectIds = roleObjectIds; int count = _authority.UpdateTable <Authority>(model); if (count <= 0) { result.States = false; } return(AjaxJson(result)); }