mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-17 01:46:30 +08:00
分类管理
This commit is contained in:
parent
91a1ea4bae
commit
37969d4b9e
@ -10,7 +10,7 @@ namespace OpenAuth.App
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分类管理
|
/// 分类管理
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CategoryApp :BaseApp<Category>
|
public class CategoryApp:BaseApp<Category>
|
||||||
{
|
{
|
||||||
|
|
||||||
public IEnumerable<Category> Get(string type)
|
public IEnumerable<Category> Get(string type)
|
||||||
@ -34,7 +34,6 @@ namespace OpenAuth.App
|
|||||||
UnitWork.Save();
|
UnitWork.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Delete(string[] ids)
|
public void Delete(string[] ids)
|
||||||
{
|
{
|
||||||
UnitWork.Delete<Category>(u => ids.Contains(u.Id));
|
UnitWork.Delete<Category>(u => ids.Contains(u.Id));
|
||||||
@ -78,7 +77,6 @@ namespace OpenAuth.App
|
|||||||
public List<CategoryType> AllTypes()
|
public List<CategoryType> AllTypes()
|
||||||
{
|
{
|
||||||
return UnitWork.Find<CategoryType>(null).ToList();
|
return UnitWork.Find<CategoryType>(null).ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -55,6 +55,7 @@ namespace OpenAuth.App
|
|||||||
public void AddMenu(ModuleElement model)
|
public void AddMenu(ModuleElement model)
|
||||||
{
|
{
|
||||||
UnitWork.Add(model);
|
UnitWork.Add(model);
|
||||||
|
UnitWork.Save();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<ul id="tree" class="ztree" style="display: inline-block; width: 180px; padding: 10px; border: 1px solid #ddd; overflow: auto;"></ul>
|
<ul id="tree" class="ztree" style="display: inline-block; width: 180px; padding: 10px; border: 1px solid #ddd; overflow: auto;"></ul>
|
||||||
<table class="layui-table"
|
<table class="layui-table"
|
||||||
lay-data="{height: 'full-80', page:true, id:'mainList'}"
|
lay-data="{height: 'full-80', page:true, id:'mainList'}"
|
||||||
lay-filter="list" lay-size="sm">
|
lay-filter="list" lay-size="sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th lay-data="{checkbox:true, fixed: true}"></th>
|
<th lay-data="{checkbox:true, fixed: true}"></th>
|
||||||
|
@ -210,7 +210,7 @@ layui.config({
|
|||||||
layer.msg("请选择一个要添加菜单的模块");
|
layer.msg("请选择一个要添加菜单的模块");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
meditDlg.add(data[0]);
|
meditDlg.add(data[0].Id);
|
||||||
}
|
}
|
||||||
, btnEdit: function () { //编辑
|
, btnEdit: function () { //编辑
|
||||||
var checkStatus = table.checkStatus('mainList')
|
var checkStatus = table.checkStatus('mainList')
|
||||||
|
Loading…
Reference in New Issue
Block a user