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/Sim/Edit.cshtml | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/Sim/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/Sim/Edit.cshtml index ac486f9..f8ed51c 100644 --- a/zhengcaioa/zhengcaioa/Views/Sim/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/Sim/Edit.cshtml @@ -5,6 +5,7 @@ Layout = null; List<SysCodeDtl> CardPro = ViewData["CardPro"] as List<SysCodeDtl>; //鐢佃瘽琛ヨ创 List<PltUserDTO> users = ViewData["users"] as List<PltUserDTO>; + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } <!DOCTYPE html> @@ -130,7 +131,7 @@ <a class="btn btn-success" href="javascript:void(0)" onclick="_pageAutoClose();" style="margin-left:4px; border-radius:4px;"> <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍙栨秷</span> </a> - <a class="btn btn-success" href="javascript:void(0)" onclick="saveSim();" style="margin-left:4px; border-radius:4px;"> + <a class="btn btn-success Update" href="javascript:void(0)" onclick="saveSim();" style="margin-left:4px; border-radius:4px;display:none;"> <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> </a> </div> @@ -140,8 +141,8 @@ <script type="text/javascript"> $(function () { - - $("#cbbUser").chosen(); + + $("#cbbUser").chosen(); }); @@ -175,7 +176,7 @@ toastr.warning("鐢佃瘽琛ヨ创涓嶈兘涓虹┖"); return; } - + $.ajax({ type: "POST", url: "/Sim/SaveSimBind", @@ -214,6 +215,17 @@ parent.layer.close(index); return false; } + var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))'; + + + + $(function () { + var data = JSON.parse(ActionInfo22); + for (var o in data) { + $("." + data[o].PageShortcut).show(); + + } + }); </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1