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/GroupGroup/Index.cshtml | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/GroupGroup/Index.cshtml b/zhengcaioa/zhengcaioa/Views/GroupGroup/Index.cshtml index 188936c..e618f76 100644 --- a/zhengcaioa/zhengcaioa/Views/GroupGroup/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/GroupGroup/Index.cshtml @@ -1,6 +1,9 @@ -锘緻{ +锘緻using DTO; +@{ ViewBag.Title = "GroupGroup"; Layout = "~/Views/Shared/_Layout_Search.cshtml"; + + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } @section headerStyle{ <script type="text/javascript"> @@ -10,7 +13,7 @@ var grouptypes = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.grouptype))'; - + loseherght = 60; dataCol = [ { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, @@ -21,7 +24,7 @@ return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/GroupGroup/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; } }, - + { label: '缇や富濮撳悕', name: 'Qunzhuname', labtype: 'txt', hidden: false, width: 100 }, { label: '缇ょ粍绫诲瀷', name: 'GrouptypeName', labtype: 'txt', hidden: false, width: 100 }, { label: '琛屼笟绫诲埆', name: 'HylbName', labtype: 'txt', hidden: false, width: 100 }, @@ -32,7 +35,7 @@ { label: '鎺ㄥ箍璁板綍', name: 'Remark', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) { - return "<a onclick=\"OpenWindow('鎺ㄥ箍','40%','50%', '/GroupTuiguang/Edit?GroupId=" + rowObject.Id + "')\" >鎺ㄥ箍</a> <a onclick=\"OpenWindow('鎺ㄥ箍璁板綍','98%','90%', '/GroupTuiguang/Index?GroupId=" + rowObject.Id + "')\" >璁板綍</a>"; + return "<a class=\"Tuiguangjilu\" style=\"display: none;\" onclick=\"OpenWindow('鎺ㄥ箍','40%','50%', '/GroupTuiguang/Edit?GroupId=" + rowObject.Id + "')\" >鎺ㄥ箍</a> <a class=\"Tuiguangjilu\" style=\"display: none;\" onclick=\"OpenWindow('鎺ㄥ箍璁板綍','98%','90%', '/GroupTuiguang/Index?GroupId=" + rowObject.Id + "')\" >璁板綍</a>"; } }, @@ -76,14 +79,27 @@ 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> } @section footerScripts{ <script type="text/javascript"> - + -- Gitblit v1.9.1