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/IntentionCustomer/IndexYiXiang.cshtml | 36 ++++++++++++++++++++++++++---------- 1 files changed, 26 insertions(+), 10 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml index 8a85204..842467c 100644 --- a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml +++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml @@ -1,16 +1,19 @@ -锘緻{ +锘緻using DTO; +@{ ViewBag.Title = "IntentionCustomer"; Layout = "~/Views/Shared/_Layout_Search.cshtml"; string ywjlId = ViewBag.ywjlId as string; + + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } @section headerStyle{ <script type="text/javascript"> var ywjls = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ywjl))'; var khlys = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.khly))'; var Dianxiaozhuanyuans = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Dianxiaozhuanyuan))'; - - + + loseherght = 60; gridConfig = { multiselect: true, selectcol: "Id" }; dataCol = [ @@ -27,12 +30,12 @@ { label: '鎵垮姙浜�', name: 'YwjlName', labtype: 'txt', hidden: false, width: 100 }, { label: '鏈�杩戣窡韪椂闂�', name: 'ZuijinzhuizongtimeName', labtype: 'txt', hidden: false, width: 100 }, - - + + { label: '璺熻釜璁板綍', name: 'Name111', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) { - return "<a onclick=\"OpenWindow('璺熻釜璁板綍','98%','100%', '/IntentionVisit/Index?IsYwjl=true&Viscustomer=" + rowObject.Id + "')\" >璺熻釜璁板綍</a>"; + return "<a class='Gengzong' style='display: none;' onclick=\"OpenWindow('璺熻釜璁板綍','98%','100%', '/IntentionVisit/Index?IsYwjl=true&Viscustomer=" + rowObject.Id + "')\" >璺熻釜璁板綍</a>"; } }, @@ -44,7 +47,7 @@ { label: '鐢甸攢涓撳憳', name: 'Dianxiaozhuanyuan', labtype: 'combox', hidden: false, data: JSON.parse(Dianxiaozhuanyuans)/*, cwidth: '5%', cccwidth: '8%' */}, { label: '瀹㈡埛鍗曚綅', name: 'Name', labtype: 'txt', hidden: false }, { label: '鎵垮姙浜�', name: 'Ywjl', labtype: 'combox', hidden: false, data: JSON.parse(ywjls) }, - + @@ -138,7 +141,7 @@ - + } @@ -162,14 +165,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