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/AdmTongxunlu/Index.cshtml |   42 +++++++++++++++++++++++++++++-------------
 1 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Index.cshtml b/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Index.cshtml
index 36e517d..a79d0e6 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Index.cshtml
@@ -1,13 +1,16 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "AdmTongxunlu";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @section headerStyle{
     <script type="text/javascript">
-      
+
         var TypeId = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.TypeId))';
 
-        
+
 
 
         dataCol = [
@@ -24,21 +27,21 @@
             { label: '鑱旂郴鐢佃瘽', name: 'Lianxidianhua', labtype: 'txt', hidden: false, width: 100 },
             { label: '澶囨敞', name: 'Beuzhu', labtype: 'txt', hidden: false, width: 100 },
 
-           
+
             {
                 label: '鎿嶄綔', name: 'caozuo', labtype: 'txt', hidden: false, width: 50,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"OpenWindow('淇敼','98%','100%', '/AdmTongxunlu/Edit?id=" + rowObject.Id + "')\"  >淇敼</a>&nbsp;&nbsp;&nbsp;<a onclick=\"_pagedel('" + rowObject.Id + "')\"  >鍒犻櫎</a>";
+                    return "<a   class='Update' style='display: none;'  onclick=\"OpenWindow('淇敼','98%','100%', '/AdmTongxunlu/Edit?id=" + rowObject.Id + "')\"  >淇敼</a>&nbsp;&nbsp;&nbsp;<a  class='Delete' style='display: none;' onclick=\"_pagedel('" + rowObject.Id + "')\"  >鍒犻櫎</a>";
                 }
             },
-             
+
         ];
         dataUrl = "/AdmTongxunlu/GetList";
         searchCol = [
 
             { label: '绫诲埆', name: 'TypeId', labtype: 'combox', hidden: false, data: JSON.parse(TypeId), cwidth: '5%', cccwidth: '15%' },
             { label: '鍗曚綅鍚嶇О', name: 'DanweiName', labtype: 'txt', hidden: false },
-            
+
 
 
 
@@ -50,7 +53,7 @@
 
 
         var _pageAdd = function () {
-            OpenWindow("鏂板鐗╁搧", "98%", "90%", "/AdmTongxunlu/Edit/");
+            OpenWindow("鏂板閫氳褰�", "98%", "90%", "/AdmTongxunlu/Edit/");
         }
 
         var _pagedel = function (id) {
@@ -65,7 +68,7 @@
 
 
                         if (data.Result) {
-                            
+
                             layer.msg('鍒犻櫎鎴愬姛', { icon: 6 });
                             window._reloadPageData();
                         }
@@ -86,10 +89,10 @@
                 });
             }
 
-          
+
         }
 
-        
+
 
 
         var _afterSave = function (result) {
@@ -108,7 +111,20 @@
                 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) {
+                //alert(o);
+                //alert(data[o]);
+                /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
+                $("." + data[o].PageShortcut).show();
+
+            }
+
+
+        };
     </script>
 }
 
@@ -117,7 +133,7 @@
 
 
 
-        
+
 
     </script>
 }

--
Gitblit v1.9.1