分类管理

This commit is contained in:
yubao 2017-12-11 23:22:13 +08:00
parent 91a1ea4bae
commit 37969d4b9e
4 changed files with 4 additions and 5 deletions

View File

@ -34,7 +34,6 @@ namespace OpenAuth.App
UnitWork.Save();
}
public void Delete(string[] ids)
{
UnitWork.Delete<Category>(u => ids.Contains(u.Id));
@ -78,7 +77,6 @@ namespace OpenAuth.App
public List<CategoryType> AllTypes()
{
return UnitWork.Find<CategoryType>(null).ToList();
}
}
}

View File

@ -55,6 +55,7 @@ namespace OpenAuth.App
public void AddMenu(ModuleElement model)
{
UnitWork.Add(model);
UnitWork.Save();
}
#endregion

View File

@ -210,7 +210,7 @@ layui.config({
layer.msg("请选择一个要添加菜单的模块");
return;
}
meditDlg.add(data[0]);
meditDlg.add(data[0].Id);
}
, btnEdit: function () { //编辑
var checkStatus = table.checkStatus('mainList')