routine update

This commit is contained in:
yubaolee 2016-10-31 11:03:28 +08:00
parent 48478c0da9
commit 9db1645bfb
5 changed files with 6 additions and 7 deletions

View File

@ -98,9 +98,9 @@ namespace OpenAuth.App
return _unitWork.Find<Relevance>(u =>u.Key =="ProcessUser" &&(userid == Guid.Empty || u.SecondId == userid)).Select(u =>u.FirstId); return _unitWork.Find<Relevance>(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));
} }
} }
} }

View File

@ -127,7 +127,7 @@ var editDlg = function() {
content: $("#editDlg"), //捕获的元素 content: $("#editDlg"), //捕获的元素
btn: ["保存", "关闭"], btn: ["保存", "关闭"],
yes: function(index, layero) { yes: function(index, layero) {
$.post("/CommonApplies/Add", $.post("/CommonApplies/Edit",
vm.$data, vm.$data,
function(data) { function(data) {
layer.msg(data.Message); layer.msg(data.Message);

View File

@ -39,7 +39,6 @@
height: auto !important; height: auto !important;
max-height: 800px; max-height: 800px;
overflow-y: scroll; overflow-y: scroll;
background: #f0f6e4;
border:1px solid #aaa; border:1px solid #aaa;
min-height: 500px; min-height: 500px;
} }

View File

@ -73,11 +73,11 @@ namespace OpenAuth.Mvc.Controllers
/// <summary> /// <summary>
/// 删除申请 /// 删除申请
/// </summary> /// </summary>
public string Delete(Guid id) public string Delete(Guid[] ids)
{ {
try try
{ {
_app.Del(id); _app.Del(ids);
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -68,7 +68,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label no-padding-right" for=""> 流程模板 </label> <label class="col-sm-3 control-label no-padding-right" for=""> 流程模板 </label>
<div class="col-sm-9"> <div class="col-sm-9">
<select id="WorkflowName" name="WorkflowName"></select> <select id="WorkflowName" name="WorkflowName" v-model ="WorkflowName"></select>
</div> </div>
</div> </div>