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 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()
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user