From 0a0421f0411471b83a8ff2356325ce21aeace60c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 10 八月 2022 14:58:04 +0800 Subject: [PATCH] 权限修改 --- zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml | 35 +++++++++++++++++++++++++++-------- 1 files changed, 27 insertions(+), 8 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml index 7c90620..9786f2f 100644 --- a/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml @@ -1,13 +1,16 @@ -锘緻{ +锘緻using DTO; +@{ ViewBag.Title = "FiOrderrecievemoney"; Layout = "~/Views/Shared/_Layout_Search.cshtml"; + + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } @section headerStyle{ <script type="text/javascript"> var OrderType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.OrderType))'; var Fkzt = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Fkzt))'; - + loseherght = 30; dataCol = [ { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, @@ -29,17 +32,17 @@ label: '鎿嶄綔', name: 'Caozuo', labtype: 'txt', hidden: false, width: 50, formatter: function (cellvalue, options, rowObject) { if (rowObject.WeishouMoney > 0) { - return "<a onclick=\"OpenWindow('" + rowObject.OrderNo + "','98%','100%', '/FiOrderrecievemoney/Edit?OrderId=" + rowObject.Id + "')\" > 璁㈠崟鏀舵</a>"; + return "<a class=\"Shoukuan\" style=\"display: none;\" onclick=\"OpenWindow('" + rowObject.OrderNo + "','98%','100%', '/FiOrderrecievemoney/Edit?OrderId=" + rowObject.Id + "')\" > 璁㈠崟鏀舵</a>"; } else { return "宸蹭粯娆�"; } - + } }, - + ]; dataUrl = "/FiOrderrecievemoney/GetList"; searchCol = [ @@ -56,8 +59,8 @@ ]; - - + + var _afterSave = function (result) { @@ -76,7 +79,23 @@ 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> } -- Gitblit v1.9.1