diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs index 3793c53..a9cc8d0 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs @@ -65,5 +65,14 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers return View(); } #endregion + + #region 显示没权限 + [AllowAnonymous] + //显示没有权限 + public IActionResult NotAuthorize() + { + return View(); + } + #endregion } } \ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/UploadController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/UploadController.cs index 5347ec5..af660f1 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/UploadController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/UploadController.cs @@ -21,7 +21,6 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers /// /// 后台上传文件帮助类 /// - [Area("AdminCP")] public class UploadController : AdminBaseController { private readonly SystemSetting _attachsetting; diff --git a/COMCMS.Web/Areas/AdminCP/Views/Index/NotAuthorize.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Index/NotAuthorize.cshtml new file mode 100644 index 0000000..a806a90 --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Index/NotAuthorize.cshtml @@ -0,0 +1,37 @@ +@{ + Layout = null; +} + + + + + + 没有权限 + + + + + + + + +
+

没权限啦!

+

您没权限执行当前操作!

+
+ 您是否超时登录?或者咨询超级管理员? +
重新登录试试 +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Views/Permission/AddAdminMenu.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Permission/AddAdminMenu.cshtml new file mode 100644 index 0000000..613fab9 --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Permission/AddAdminMenu.cshtml @@ -0,0 +1,93 @@ + +@{ + ViewBag.title = "添加后台菜单"; +} +
+
+
+
@ViewBag.title
+
+
+
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "addAdminMenuForm", @class = "form-horizontal m-t" })) + { +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ @foreach (var e in ViewBag.ListEvent) + { + + } +
+
+ +
+
+ + +
+
+ } +
+
+ + +
diff --git a/COMCMS.Web/Areas/AdminCP/Views/Permission/AdminMenuList.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Permission/AdminMenuList.cshtml index 1043344..d5cd13a 100644 Binary files a/COMCMS.Web/Areas/AdminCP/Views/Permission/AdminMenuList.cshtml and b/COMCMS.Web/Areas/AdminCP/Views/Permission/AdminMenuList.cshtml differ diff --git a/COMCMS.Web/Areas/AdminCP/Views/Permission/EditAdminMenu.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Permission/EditAdminMenu.cshtml new file mode 100644 index 0000000..9590aba --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Permission/EditAdminMenu.cshtml @@ -0,0 +1,97 @@ +@model COMCMS.Core.AdminMenu +@{ + ViewBag.title = "查看/编辑后台菜单"; +} +
+
+
+
@ViewBag.Title
+
+
+
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editAdminMenuForm", @class = "form-horizontal m-t" })) + { +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ @foreach (var e in ViewBag.ListEvent) + { + + } +
+
+ +
+
+ + + +
+
+ } +
+
+ + +
+ diff --git a/COMCMS.Web/Areas/AdminCP/Views/Shared/_CommonLayout.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Shared/_CommonLayout.cshtml index bf51bf8..1f0f6a8 100644 --- a/COMCMS.Web/Areas/AdminCP/Views/Shared/_CommonLayout.cshtml +++ b/COMCMS.Web/Areas/AdminCP/Views/Shared/_CommonLayout.cshtml @@ -10,7 +10,9 @@ - + + + @@ -22,6 +24,14 @@ + + + + + + + + + + + + + + + @@ -53,6 +70,12 @@ function closethisdialog() { parent.layer.close(index); } + $(function () { + $('.i-checks').iCheck({ + checkboxClass: 'icheckbox_square-green', + radioClass: 'iradio_square-green', + }); + }) diff --git a/COMCMS.Web/Areas/AdminCP/Views/System/BaseConfig.cshtml b/COMCMS.Web/Areas/AdminCP/Views/System/BaseConfig.cshtml index d446b4c..9d9887a 100644 --- a/COMCMS.Web/Areas/AdminCP/Views/System/BaseConfig.cshtml +++ b/COMCMS.Web/Areas/AdminCP/Views/System/BaseConfig.cshtml @@ -1,5 +1,235 @@ - +@model COMCMS.Core.Config @{ - + ViewBag.title = "编辑网站基本设置"; } -

这是标题

\ No newline at end of file +
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editBaseConfigForm", @class = "form-horizontal m-t" })) + { +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+ 微信高级对接,需要有微信高级验证,否则将有部分功能无法使用 +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ 以下是微信小程序、微信商家配置,请勿填成公众号设置 +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+ 运费设置,仅针对商品订单 +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+
+ +
+ } +
+ +
+ \ No newline at end of file diff --git a/COMCMS.Web/Common/MyAuthorizeAttribute.cs b/COMCMS.Web/Common/MyAuthorizeAttribute.cs index f5880d0..373e499 100644 --- a/COMCMS.Web/Common/MyAuthorizeAttribute.cs +++ b/COMCMS.Web/Common/MyAuthorizeAttribute.cs @@ -84,7 +84,7 @@ namespace COMCMS.Web.Common } else { - context.Result = new RedirectResult("/AdminCP/Error/NotAuthorize"); + context.Result = new RedirectResult("/AdminCP/Index/NotAuthorize"); return; } } diff --git a/COMCMS.Web/wwwroot/userfiles/images/2018/dayicon(1).png b/COMCMS.Web/wwwroot/userfiles/images/2018/dayicon(1).png new file mode 100644 index 0000000..7e29c83 Binary files /dev/null and b/COMCMS.Web/wwwroot/userfiles/images/2018/dayicon(1).png differ diff --git a/COMCMS.Web/wwwroot/userfiles/images/2018/dayicon.png b/COMCMS.Web/wwwroot/userfiles/images/2018/dayicon.png new file mode 100644 index 0000000..7e29c83 Binary files /dev/null and b/COMCMS.Web/wwwroot/userfiles/images/2018/dayicon.png differ