临时界面,晚上处理

This commit is contained in:
yubaolee 2015-12-01 17:59:08 +08:00
parent 95a10397dc
commit 2f52d6f652
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,8 @@
using System.Web.Mvc;
using Infrastructure;
using Infrastructure.Helper;
using OpenAuth.App;
using OpenAuth.App.ViewModel;
namespace OpenAuth.Mvc.Controllers
{
@ -19,7 +21,8 @@ namespace OpenAuth.Mvc.Controllers
}
public ActionResult Index()
{
return View(_app.LoadByParent(0));
var user = SessionHelper.GetSessionUser<LoginUserVM>();
return View(user.Modules);
}
public ActionResult Main()

View File

@ -1,4 +1,4 @@
@model List<OpenAuth.App.ViewModel.ModuleView>
@model List<OpenAuth.Domain.Module>
<!DOCTYPE html>
<html lang="zh">
<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>
foreach (var child in module.Childern)
@*foreach (var child in module.Childern)
{
<li data-id="@child.Id" data-pid="@child.ParentId"
data-faicon="caret-right"
data-url="@child.Url" data-tabid="@child.Id">@child.Name</li>
}
}*@
}
</ul>