From 90dd02e591779ead7a79421b610542f00c3a9227 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 03 四月 2023 09:21:13 +0800
Subject: [PATCH] 后台app推送
---
zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml | 33 +++++++++++++++++++++++++--------
1 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml b/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
index f2cab0f..15a0877 100644
--- a/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
@@ -1,10 +1,13 @@
-锘緻{
+锘緻using DTO;
+@{
ViewBag.Title = "OrderBanci";
Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+ List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@section headerStyle{
<script type="text/javascript">
-
+
dataCol = [
{ label: 'id', name: 'Id', labtype: 'txt', hidden: true },
@@ -20,12 +23,12 @@
{ label: '鍦扮偣', name: 'Didian', labtype: 'txt', hidden: false, width: 400 },
{ label: '浜烘暟', name: 'Renshu', labtype: 'txt', hidden: false, width: 200 },
{
- label: '鍩硅鏃堕棿', name: 'Creater', labtype: 'txt', hidden: false, width: 100,
+ label: '璇剧▼浠锋牸', name: 'Creater', labtype: 'txt', hidden: false, width: 100,
formatter: function (cellvalue, options, rowObject) {
- return "<a onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\" >鍩硅鏃堕棿</a>";
+ return "<a class='Jiage' style='display: none;' onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\" >璇剧▼浠锋牸</a>";
}
},
-
+
];
dataUrl = "/OrderBanci/GetList";
@@ -62,9 +65,23 @@
} else {
/**/
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