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/AdmTongxunlu/Edit.cshtml | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Edit.cshtml index bac36f2..8f77657 100644 --- a/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Edit.cshtml @@ -6,7 +6,7 @@ List<SysCodeDtl> TypeId = ViewData["TypeId"] as List<SysCodeDtl>; //鐗╁搧鐘舵�� - + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } @{ @@ -122,7 +122,7 @@ </select> <input type="hidden" id="Id" name="Id" value="@Model.Id" /> </div> - <label class="text-right col-sm-1 col-md-1 control-label">鍗曚綅鍚嶇О<i class="red">*</i></label> + <label class="text-right col-sm-1 col-md-1 control-label">鍗曚綅鍚嶇О</label> <div class="col-sm-2 col-md-2"> <input id="DanweiName" class="form-control" label="鍗曚綅鍚嶇О" name="DanweiName" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="true" type="text" value="@Model.DanweiName"> @@ -221,9 +221,9 @@ var id = '@Model.Id'; - - + + // 淇濆瓨宀椾綅淇℃伅 var savePosition = function () { @@ -234,10 +234,10 @@ toastr.warning("绫诲埆涓嶈兘涓虹┖"); return; } - if ($.trim($("#DanweiName").val()) == '') { - toastr.warning("鍗曚綅鍚嶇О涓嶈兘涓虹┖"); - return; - } + //if ($.trim($("#DanweiName").val()) == '') { + // toastr.warning("鍗曚綅鍚嶇О涓嶈兘涓虹┖"); + // return; + //} if ($.trim($("#Lianxiren").val()) == '') { toastr.warning("鑱旂郴浜轰笉鑳戒负绌�"); @@ -268,7 +268,7 @@ if (data.Result) { // parent._afterSave(true); parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 }); - + try { @@ -304,6 +304,18 @@ 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