mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-08-23 22:11:35 +08:00
临时界面,晚上处理
This commit is contained in:
parent
95a10397dc
commit
2f52d6f652
@ -1,6 +1,8 @@
|
|||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using Infrastructure;
|
using Infrastructure;
|
||||||
|
using Infrastructure.Helper;
|
||||||
using OpenAuth.App;
|
using OpenAuth.App;
|
||||||
|
using OpenAuth.App.ViewModel;
|
||||||
|
|
||||||
namespace OpenAuth.Mvc.Controllers
|
namespace OpenAuth.Mvc.Controllers
|
||||||
{
|
{
|
||||||
@ -19,7 +21,8 @@ namespace OpenAuth.Mvc.Controllers
|
|||||||
}
|
}
|
||||||
public ActionResult Index()
|
public ActionResult Index()
|
||||||
{
|
{
|
||||||
return View(_app.LoadByParent(0));
|
var user = SessionHelper.GetSessionUser<LoginUserVM>();
|
||||||
|
return View(user.Modules);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ActionResult Main()
|
public ActionResult Main()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@model List<OpenAuth.App.ViewModel.ModuleView>
|
@model List<OpenAuth.Domain.Module>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh">
|
<html lang="zh">
|
||||||
<head>
|
<head>
|
||||||
@ -204,12 +204,12 @@
|
|||||||
{
|
{
|
||||||
<li data-id="@module.Id" data-pid="0" data-faicon="folder-open-o" data-faicon-close="folder-o">@module.Name</li>
|
<li data-id="@module.Id" data-pid="0" data-faicon="folder-open-o" data-faicon-close="folder-o">@module.Name</li>
|
||||||
|
|
||||||
foreach (var child in module.Childern)
|
@*foreach (var child in module.Childern)
|
||||||
{
|
{
|
||||||
<li data-id="@child.Id" data-pid="@child.ParentId"
|
<li data-id="@child.Id" data-pid="@child.ParentId"
|
||||||
data-faicon="caret-right"
|
data-faicon="caret-right"
|
||||||
data-url="@child.Url" data-tabid="@child.Id">@child.Name</li>
|
data-url="@child.Url" data-tabid="@child.Id">@child.Name</li>
|
||||||
}
|
}*@
|
||||||
|
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user