From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs b/zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs
index 07e284c..307b08a 100644
--- a/zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs
@@ -32,6 +32,7 @@
         private readonly IAdmGoodsRecordService _admGoodsRecordService;
 
 
+
         public AdmGoodsManageController(ILogger<AdmGoodsManageController> logger, ILiaotianService liaotianService, IAdmGoodsManageService admGoodsManageService, IAdmGoodsClassifyService admGoodsClassifyService, IPltPageService pltPageService
             , IAdmGoodsRecordService admGoodsRecordService)
         {
@@ -58,8 +59,8 @@
             actionlist.Add(actionEntity);
 
             List<PageEntity> pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/AdmGoodsManage/Index/");
-
-            foreach (var pageEntity in pageEntities )
+            var pageEntities1 = pageEntities.Where(x => x.PageMethod == "01").ToList();
+            foreach (var pageEntity in pageEntities1)
             {
                 ActionEntity actionEntity1 = new ActionEntity();
                 actionEntity1.OpenType = pageEntity.OpenType;
@@ -102,7 +103,7 @@
 
             ViewData["ActionInfo"] = actionlist;
 
-
+            ViewData["ActionInfo2"] = pageEntities1;
 
 
             ViewBag.GoodsStatus = _liaotianService.GetSYScode("adm_goods_manage", "goods_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
@@ -160,6 +161,9 @@
         {
             var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
             ViewData["curentuser"] = curentuser;
+            var pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/AdmGoodsManage/Index/");
+            var pageEntities2 = pageEntities.Where(x => x.PageMethod == "02").ToList();
+            ViewData["ActionInfo2"] = pageEntities2;
 
             AdmGoodsManageDTO dto = new AdmGoodsManageDTO();
             if (!String.IsNullOrEmpty(id))

--
Gitblit v1.9.1