From c218f7fadbef75a948e94ac3fd3635a31294cbdd Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 07 六月 2021 17:34:49 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml | 45 +++++++++++++++++++++++++++++---------------- 1 files changed, 29 insertions(+), 16 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml index a6a501e..1fef082 100644 --- a/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml +++ b/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml @@ -241,7 +241,7 @@ </div>*@ - <label class="text-right col-sm-1 col-md-1 control-label">韬唤璇佸彿</label> + <label class="text-right col-sm-1 col-md-1 control-label">韬唤璇佸彿<i class="red">*</i></label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> <input class="form-control" label="韬唤璇佸彿" name="IdCard" id="IdCard" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.IdCard" autocomplete="off"> </div> @@ -824,7 +824,10 @@ return; } - + if ($("#Sex").val() == '') { + toastr.warning("鎬у埆涓嶈兘涓虹┖"); + return; + }; //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } $.ajax({ type: "POST", @@ -838,34 +841,44 @@ if (data.Result) { // parent._afterSave(true); - parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 }); + //window.location = "/Project/add?id=" + data.ReturnID; + layer.msg('鎴愬姛淇濆瓨', { icon: 5 }, function () { + try { + _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 + } + catch (err) { + try { + parent._CloseTab1("/ExpertsApply/ExpertsApply"); + } + catch (err) { + var browserName = navigator.appName; + if (browserName == "Netscape") { + window.location.href = "about:blank";聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽//鍏抽敭鏄繖鍙ヨ瘽 + window.close(); + } else if (browserName == "Microsoft Internet Explorer") { + window.opener = null; + window.close(); + } - try { - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - catch (err) { - try { - parent._CloseTab1("/ExpertsApply/ExpertsApply"); - } - catch (err) { + } + } + }); - window.close(); - } - } + } else { // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); + layer.msg(data.Message, { icon: 5 }); } }, error: function () { - parent.layer.msg('澶辫触', { icon: 5 }); + layer.msg('澶辫触', { icon: 5 }); } }); } -- Gitblit v1.9.1