diff --git a/Bootstrap.Admin/Views/Home/Terminals.cshtml b/Bootstrap.Admin/Views/Home/Terminals.cshtml
index e16ae5ea..4aa1b629 100644
--- a/Bootstrap.Admin/Views/Home/Terminals.cshtml
+++ b/Bootstrap.Admin/Views/Home/Terminals.cshtml
@@ -1,4 +1,5 @@
-@{
+@model Bootstrap.Admin.Models.HeaderBarModel
+@{
ViewBag.Title = "Terminals";
Layout = "~/Views/Shared/_Normal.cshtml";
}
@@ -10,6 +11,9 @@
}
+@section header {
+ @Html.Partial("Header", Model)
+}
查询条件
diff --git a/Bootstrap.Admin/Views/Shared/Header.cshtml b/Bootstrap.Admin/Views/Shared/Header.cshtml
index e80d5b67..c5f3c327 100644
--- a/Bootstrap.Admin/Views/Shared/Header.cshtml
+++ b/Bootstrap.Admin/Views/Shared/Header.cshtml
@@ -7,6 +7,20 @@
后台管理系统
+
@@ -35,7 +49,7 @@
- - 首页
+ - 首页
@if (!string.IsNullOrEmpty(Model.BreadcrumbName))
{
- @Model.BreadcrumbName
diff --git a/Bootstrap.Admin/Views/Shared/Navigator.cshtml b/Bootstrap.Admin/Views/Shared/Navigator.cshtml
index 40101521..51004385 100644
--- a/Bootstrap.Admin/Views/Shared/Navigator.cshtml
+++ b/Bootstrap.Admin/Views/Shared/Navigator.cshtml
@@ -1,18 +1,18 @@
-@model Bootstrap.Admin.Models.NavigatorBarModel
-
+@model Bootstrap.Admin.Models.NavigatorBarModel
+
diff --git a/Bootstrap.Admin/Views/Shared/Readme.txt b/Bootstrap.Admin/Views/Shared/Readme.txt
new file mode 100644
index 00000000..236d4929
--- /dev/null
+++ b/Bootstrap.Admin/Views/Shared/Readme.txt
@@ -0,0 +1,14 @@
+_Layout.cshtml
+ /Home/Login
+
+-------> _Admin.cshtml
+ /Admin/Index
+
+--------------> _Default.cshtml
+ /Admin/Users
+
+
+-------> _Normal.cshtml
+ /Home/Terminals
+--------------> _Fix.cshtml
+ /Home/Rules
\ No newline at end of file
diff --git a/Bootstrap.Admin/Views/Shared/UnAuthorized.cshtml b/Bootstrap.Admin/Views/Shared/UnAuthorized.cshtml
new file mode 100644
index 00000000..19ad2fec
--- /dev/null
+++ b/Bootstrap.Admin/Views/Shared/UnAuthorized.cshtml
@@ -0,0 +1,5 @@
+@{
+ ViewBag.Title = "无权访问页面";
+ Layout = "~/Views/Shared/_Layout.cshtml";
+}
+
diff --git a/Bootstrap.Admin/Views/Shared/_Fix.cshtml b/Bootstrap.Admin/Views/Shared/_Fix.cshtml
index 7bbe4122..96ff5082 100644
--- a/Bootstrap.Admin/Views/Shared/_Fix.cshtml
+++ b/Bootstrap.Admin/Views/Shared/_Fix.cshtml
@@ -5,10 +5,13 @@
@RenderSection("css", false)
}
-@RenderBody()
-@section modal{
- @RenderSection("modal", false)
-}
@section javascript {
@RenderSection("Javascript", false)
}
+@section modal{
+ @RenderSection("modal", false)
+}
+@section header {
+ @RenderSection("header", false)
+}
+@RenderBody()
\ No newline at end of file
diff --git a/Bootstrap.Admin/Views/Shared/_Normal.cshtml b/Bootstrap.Admin/Views/Shared/_Normal.cshtml
index 0956ed42..6623a424 100644
--- a/Bootstrap.Admin/Views/Shared/_Normal.cshtml
+++ b/Bootstrap.Admin/Views/Shared/_Normal.cshtml
@@ -13,64 +13,7 @@
@RenderSection("Javascript", false)
}
-
-
-
-
+ @RenderSection("header", false)
diff --git a/Bootstrap.Admin/Web.config b/Bootstrap.Admin/Web.config
index ca963fba..cca31ef6 100644
--- a/Bootstrap.Admin/Web.config
+++ b/Bootstrap.Admin/Web.config
@@ -37,6 +37,9 @@
+
+
+
@@ -45,7 +48,7 @@
-
+
diff --git a/Bootstrap.DataAccess/Menu.cs b/Bootstrap.DataAccess/Menu.cs
index 7c4d2013..10c77ab8 100644
--- a/Bootstrap.DataAccess/Menu.cs
+++ b/Bootstrap.DataAccess/Menu.cs
@@ -1,40 +1,40 @@
-using System.Collections.Generic;
-
-namespace Bootstrap.DataAccess
-{
- ///
- ///
- ///
- public class Menu
- {
- ///
- ///
- ///
- public string Name { get; set; }
- ///
- ///
- ///
- public string Icon { get; set; }
- ///
- ///
- ///
- public string Url { get; set; }
- ///
- ///
- ///
- public string Active { get; set; }
-
- public static List