From 3a6b641fd48f7377fec66e31b069c472fac5ba60 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 25 十一月 2021 14:47:34 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/Expert/Indexziliao.cshtml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 54 insertions(+), 3 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Indexziliao.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Indexziliao.cshtml index 665567f..cb8adec 100644 --- a/zhengcaioa/zhengcaioa/Views/Expert/Indexziliao.cshtml +++ b/zhengcaioa/zhengcaioa/Views/Expert/Indexziliao.cshtml @@ -11,7 +11,9 @@ var level = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.level))'; var ReviewItem = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ReviewItem))'; var users = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.users))'; - var YearJiou= '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.YearJiou))'; + var YearJiou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.YearJiou))'; + var Createtime = '@Html.Raw(ViewBag.Createtime)'; + loseherght = 60; gridConfig = { multiselect: true, selectcol: "Id" }; dataCol = [ @@ -40,7 +42,7 @@ { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true } ]; - dataUrl = "/Expert/GetList"; + dataUrl = "/Expert/GetList?Province=510000&City=510100"; searchCol = [ { label: '鐪�', name: 'Province', labtype: 'combox', hidden: false, data: JSON.parse(Province), cwidth: '5%', cccwidth: '6.5%' }, { label: '甯�', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '1%', cccwidth: '7%' }, @@ -52,11 +54,24 @@ { label: '璇勫鍝佺洰', name: 'ReviewItem', labtype: 'combox', hidden: false, data: JSON.parse(ReviewItem) }, { label: '鑰冭瘯鏃堕棿', name: 'YearJiou', labtype: 'combox', hidden: false, data: JSON.parse(YearJiou) }, - + ]; + + + var _pageSearch = function () { + $("#jqGrid").jqGrid('setGridParam', { + url: '/Expert/GetList', postData: jsons, page: 1 + }); //閲嶆柊杞藉叆 + var jsons = GetSearchEnd(); + if (jsons == false) { + msg.info("璇峰綍鍏ユ煡璇㈡潯浠�"); + return false; + } + LoadGrid(jsons); + } var _pagedel = function (id) { if (confirm('鏄惁鍒犻櫎璁板綍')) { @@ -170,6 +185,42 @@ $("#PBSReviewItem").parent().next().remove(); + $("#PBSProvince").val("510000"); + $("#PBSProvince").trigger('chosen:updated');//鏇存柊閫夐」 + + $.ajax({ + type: "GET", + url: "/Project/getCity?shengid=510000", + dataType: "json", + global: false, + data: "", + success: function (data) { + + var city = $("#PBSCity"); + city.find('option').remove(); + var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; + city.append(aaa); + if (data.length > 0) { + for (var i = 0; i < data.length; i++) { + + var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>'; + city.append(o); + } + $("#PBSCity").val("510100"); + } + $("#PBSCity").trigger('chosen:updated');//鏇存柊閫夐」 + }, + error: function () { } + }); + + + $("#PBSCreatetimeend").val(Createtime); + + + + + + }); </script> } -- Gitblit v1.9.1