diff --git a/OpenAuth.App/CommonApplyApp.cs b/OpenAuth.App/CommonApplyApp.cs index ce54b314..61ca90cc 100644 --- a/OpenAuth.App/CommonApplyApp.cs +++ b/OpenAuth.App/CommonApplyApp.cs @@ -98,9 +98,9 @@ namespace OpenAuth.App return _unitWork.Find(u =>u.Key =="ProcessUser" &&(userid == Guid.Empty || u.SecondId == userid)).Select(u =>u.FirstId); } - public void Del(Guid id) + public void Del(Guid[] ids) { - _repository.Delete(u =>u.Id == id); + _repository.Delete(u =>ids.Contains(u.Id)); } } } \ No newline at end of file diff --git a/OpenAuth.Mvc/BllScripts/commonApply.js b/OpenAuth.Mvc/BllScripts/commonApply.js index 1f4ae268..bcc2c782 100644 --- a/OpenAuth.Mvc/BllScripts/commonApply.js +++ b/OpenAuth.Mvc/BllScripts/commonApply.js @@ -127,7 +127,7 @@ var editDlg = function() { content: $("#editDlg"), //捕获的元素 btn: ["保存", "关闭"], yes: function(index, layero) { - $.post("/CommonApplies/Add", + $.post("/CommonApplies/Edit", vm.$data, function(data) { layer.msg(data.Message); diff --git a/OpenAuth.Mvc/Content/myace.css b/OpenAuth.Mvc/Content/myace.css index cbfc654a..a2daa54d 100644 --- a/OpenAuth.Mvc/Content/myace.css +++ b/OpenAuth.Mvc/Content/myace.css @@ -39,7 +39,6 @@ height: auto !important; max-height: 800px; overflow-y: scroll; - background: #f0f6e4; border:1px solid #aaa; min-height: 500px; } diff --git a/OpenAuth.Mvc/Controllers/CommonAppliesController.cs b/OpenAuth.Mvc/Controllers/CommonAppliesController.cs index e4d87d0c..9f6ecd24 100644 --- a/OpenAuth.Mvc/Controllers/CommonAppliesController.cs +++ b/OpenAuth.Mvc/Controllers/CommonAppliesController.cs @@ -73,11 +73,11 @@ namespace OpenAuth.Mvc.Controllers /// /// 删除申请 /// - public string Delete(Guid id) + public string Delete(Guid[] ids) { try { - _app.Del(id); + _app.Del(ids); } catch (Exception ex) { diff --git a/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml b/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml index 83bfb70e..125ffc29 100644 --- a/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml +++ b/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml @@ -68,7 +68,7 @@
- +