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/Views/AdmDocDoc/Index.cshtml |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmDocDoc/Index.cshtml b/zhengcaioa/zhengcaioa/Views/AdmDocDoc/Index.cshtml
index bb21fb9..f6e50e6 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmDocDoc/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmDocDoc/Index.cshtml
@@ -1,6 +1,9 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "AdmDocDoc";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @section headerStyle{
     <script type="text/javascript">
@@ -29,11 +32,11 @@
             {
                 label: '鎵撳嵃', name: 'print', labtype: 'txt', hidden: false, width: 100,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"OpenWindow('鎵撳嵃','100%','100%', '/AdmDocDoc/Print?id=" + rowObject.Id + "')\"  >鎵撳嵃</a>";
+                    return "<a  class='Print' style='display: none;' onclick=\"OpenWindow('鎵撳嵃','100%','100%', '/AdmDocDoc/Print?id=" + rowObject.Id + "')\"  >鎵撳嵃</a>";
                 }
             },
- 
-            
+
+
 
         ];
         dataUrl = "/AdmDocDoc/GetList";
@@ -74,7 +77,18 @@
                 toastr.error("鍒犻櫎鎴愬姛");
         /**/
     }
-}
+        }
+
+        var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
+        var _afterLoadDataload = function (xhr) {
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                $("." + data[o].PageShortcut).show();
+
+            }
+
+
+        };
     </script>
 }
 

--
Gitblit v1.9.1