补全控制器DisPalyName,自动生成菜单
This commit is contained in:
@@ -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<GuestbookCategory> 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<GuestbookCategory> 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)
|
||||
{
|
||||
|
||||
@@ -592,6 +592,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
|
||||
#region 用户组管理
|
||||
[MyAuthorize( "viewlist", "memberrole")]
|
||||
[DisplayName("用户组列表")]
|
||||
public IActionResult MemberRole()
|
||||
{
|
||||
IList<MemberRoles> 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;
|
||||
|
||||
@@ -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("查看在线支付订单列表;");
|
||||
|
||||
@@ -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<AdsKind> 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<AdsKind> 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<LinkKind> 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<LinkKind> list = LinkKind.FindAll(null, LinkKind._.Rank.Asc(), null, 0, 0);
|
||||
|
||||
@@ -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
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[MyAuthorize("viewlist", "category")]
|
||||
[DisplayName("商品栏目")]
|
||||
public IActionResult CategoryList()
|
||||
{
|
||||
IList<Category> 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()
|
||||
{
|
||||
//获取上级栏目
|
||||
|
||||
@@ -178,13 +178,13 @@
|
||||
<div class="i-au-left">
|
||||
<div class="pic-box">
|
||||
<a href="/Article/detail/1" title="关于我们">
|
||||
<img src="@(about.Pic)" alt="关于我们">
|
||||
<img src="@(about?.Pic)" alt="关于我们">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="i-au-right">
|
||||
<p>
|
||||
@(Utils.CutString(Utils.NoHTML(about.Content), 700))
|
||||
@(Utils.CutString(Utils.NoHTML(about?.Content), 700))
|
||||
</p>
|
||||
<a href="/Article/detail/1" title="查看详情" class="read-d">查看详情</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user