From 9e123b3c6859fc31b2e524bdd77c984b5b10ae35 Mon Sep 17 00:00:00 2001 From: xxred Date: Thu, 3 Jan 2019 00:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E6=8E=A7=E5=88=B6=E5=99=A8Di?= =?UTF-8?q?sPalyName=EF=BC=8C=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Areas/AdminCP/Controllers/GuestbookController.cs | 5 +++++ COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs | 5 ++++- COMCMS.Web/Areas/AdminCP/Controllers/OrderController.cs | 4 ++++ COMCMS.Web/Areas/AdminCP/Controllers/OtherController.cs | 7 +++++++ COMCMS.Web/Areas/AdminCP/Controllers/ProductController.cs | 4 ++++ COMCMS.Web/Views/Home/Index.cshtml | 4 ++-- 6 files changed, 26 insertions(+), 3 deletions(-) diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs index dfcef92..f09b963 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs @@ -9,13 +9,16 @@ using XCode; using Newtonsoft.Json; using COMCMS.Web.Common; using Microsoft.AspNetCore.Http; +using System.ComponentModel; namespace COMCMS.Web.Areas.AdminCP.Controllers { + [DisplayName("留言板")] public class GuestbookController : AdminBaseController { #region 留言板分类 [MyAuthorize("viewlist", "guestbookkinds")] + [DisplayName("留言分类")] public IActionResult GuestbookCategorys() { IList list = GuestbookCategory.FindAll(null, GuestbookCategory._.Rank.Asc(), null, 0, 0); @@ -93,12 +96,14 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 留言列表 [MyAuthorize("viewlist", "guestbook")] + [DisplayName("留言列表")] public IActionResult GuestbookList() { IList list = GuestbookCategory.FindAll(null, GuestbookCategory._.Rank.Asc(), null, 0, 0); ViewBag.ListKinds = list; return View(); } + [MyAuthorize("viewlist", "guestbook","JSON")] public IActionResult GetGuesbookList(string keyword, int page = 1, int limit = 20) { diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs index 68e8c12..ba82051 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs @@ -592,6 +592,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 用户组管理 [MyAuthorize( "viewlist", "memberrole")] + [DisplayName("用户组列表")] public IActionResult MemberRole() { IList list = MemberRoles.FindAll(MemberRoles._.Id > 0, MemberRoles._.Rank.Asc(), null, 0, 0); @@ -786,6 +787,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 用户管理 [MyAuthorize("viewlist", "members")] + [DisplayName("用户列表")] public IActionResult Members() { //加载用户组 @@ -1026,11 +1028,12 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 后台管理日志列表 [MyAuthorize("viewlist", "admincplog")] + [DisplayName("后台管理日志")] public IActionResult AdminCPLogList() { return View(); } - [MyAuthorize("viewlist", "admincplog")] + [MyAuthorize("viewlist", "admincplog","JSON")] public IActionResult GetAdminCPLogList(string keyword, int page = 1, int limit = 20) { int numPerPage, currentPage, startRowIndex; diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/OrderController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/OrderController.cs index 7a97714..5ecc56b 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/OrderController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/OrderController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; @@ -12,10 +13,12 @@ using Microsoft.AspNetCore.Http; namespace COMCMS.Web.Areas.AdminCP.Controllers { + [DisplayName("订单")] public class OrderController : AdminBaseController { #region 订单列表 [MyAuthorize("viewlist", "order")] + [DisplayName("订单列表")] public IActionResult OrderList() { Core.Admin.WriteLogActions("查看订单列表;"); @@ -298,6 +301,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 在线支付成功记录 [MyAuthorize("viewlist", "payonline")] + [DisplayName("支付订单")] public IActionResult PayOnlineList() { Core.Admin.WriteLogActions("查看在线支付订单列表;"); diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/OtherController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/OtherController.cs index 289cf3a..f7fc3d9 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/OtherController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/OtherController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; @@ -13,11 +14,13 @@ using COMCMS.Core.Models; namespace COMCMS.Web.Areas.AdminCP.Controllers { + [DisplayName("其它")] public class OtherController : AdminBaseController { #region 广告分类管理 //查看&编辑广告分类(同一个页面执行) [MyAuthorize("viewlist", "adskinds")] + [DisplayName("广告分类")] public IActionResult AdsCategoryList() { IList list = AdsKind.FindAll(null, AdsKind._.Rank.Asc(), null, 0, 0); @@ -96,6 +99,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 广告管理 [MyAuthorize("viewlist", "ads")] + [DisplayName("广告列表")] public IActionResult AdsList() { IList list = AdsKind.FindAll(null, AdsKind._.Rank.Asc(), null, 0, 0); @@ -528,6 +532,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 友情链接分类管理 //查看&编辑友情链接分类(同一个页面执行) [MyAuthorize("viewlist", "adskinds")] + [DisplayName("友情链接分类")] public IActionResult LinkCategoryList() { IList list = LinkKind.FindAll(null, LinkKind._.Rank.Asc(), null, 0, 0); @@ -608,6 +613,8 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 友情链接管理 //查看友情链接列表 [MyAuthorize("viewlist", "link")] + [DisplayName("友情链接列表")] + public IActionResult LinkList() { IList list = LinkKind.FindAll(null, LinkKind._.Rank.Asc(), null, 0, 0); diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/ProductController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/ProductController.cs index 90cd0cf..99367d2 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/ProductController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/ProductController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; @@ -12,6 +13,7 @@ using Microsoft.AspNetCore.Http; namespace COMCMS.Web.Areas.AdminCP.Controllers { + [DisplayName("商品")] public class ProductController : AdminBaseController { #region 商品栏目 @@ -20,6 +22,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers /// /// [MyAuthorize("viewlist", "category")] + [DisplayName("商品栏目")] public IActionResult CategoryList() { IList list = Category.GetListTree(0, -1, false, true); @@ -187,6 +190,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 商品列表 [MyAuthorize("viewlist", "product")] + [DisplayName("商品列表")] public IActionResult ProductList() { //获取上级栏目 diff --git a/COMCMS.Web/Views/Home/Index.cshtml b/COMCMS.Web/Views/Home/Index.cshtml index 709e806..8a20259 100644 --- a/COMCMS.Web/Views/Home/Index.cshtml +++ b/COMCMS.Web/Views/Home/Index.cshtml @@ -178,13 +178,13 @@

- @(Utils.CutString(Utils.NoHTML(about.Content), 700)) + @(Utils.CutString(Utils.NoHTML(about?.Content), 700))

查看详情