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 | 30 +++++++++++++++++++++++++----- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/AdmDocDoc/Index.cshtml b/zhengcaioa/zhengcaioa/Views/AdmDocDoc/Index.cshtml index 0afd749..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"> @@ -19,15 +22,21 @@ { label: '鍏枃鍙�', name: 'DocNo', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) { - return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/AdmDocDoc/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; + return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','100%','100%', '/AdmDocDoc/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; } }, { label: '鍏枃鍚嶇О', name: 'DocTitle', labtype: 'txt', hidden: false, width: 100 }, { label: '鍙戞枃閮ㄩ棬', name: 'DocDeptName', labtype: 'txt', hidden: false, width: 100 }, { label: '鎵撳嵃鐘舵��', name: 'PrintStatusName', labtype: 'txt', hidden: false, width: 100 }, - - + { + label: '鎵撳嵃', name: 'print', labtype: 'txt', hidden: false, width: 100, + formatter: function (cellvalue, options, rowObject) { + return "<a class='Print' style='display: none;' onclick=\"OpenWindow('鎵撳嵃','100%','100%', '/AdmDocDoc/Print?id=" + rowObject.Id + "')\" >鎵撳嵃</a>"; + } + }, + + ]; dataUrl = "/AdmDocDoc/GetList"; @@ -68,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