From cc5eabb8129f374d2a9edc0ad01f3f6803ec1a29 Mon Sep 17 00:00:00 2001 From: CJJ <Administrator@192.168.10.23> Date: 星期二, 20 十一月 2018 10:01:30 +0800 Subject: [PATCH] 检测数据,目录 --- gx_tieta/WebRoot/mobil/ele-infor-search2.html | 61 +++++++++++++++++++++++++++++- 1 files changed, 58 insertions(+), 3 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/ele-infor-search2.html b/gx_tieta/WebRoot/mobil/ele-infor-search2.html index e957c90..a1f3336 100644 --- a/gx_tieta/WebRoot/mobil/ele-infor-search2.html +++ b/gx_tieta/WebRoot/mobil/ele-infor-search2.html @@ -90,12 +90,20 @@ <div class="fg-panel-header">绛涢��</div> <div class="fg-panel-content"> <fieldset data-role="controlgroup"> - <p>缁存姢鍖�</p> + <p>鐪�</p> <select id="mainteArea" data-mini="true"> <option value="">鍏ㄩ儴</option> <option value="">涓�鏋㈢航</option> <option value="">浜屾灑绾�</option> <option value="">鏋㈢航妤�</option> + </select> + <p>甯�</p> + <select id="city" data-mini="true"> + <option value="">鍏ㄩ儴</option> + </select> + <p>鍖�/鍘�</p> + <select id="country" data-mini="true"> + <option value="">鍏ㄩ儴</option> </select> <p>鏈烘埧绔欑偣</p> <select id="homeName" data-mini="true"> @@ -310,6 +318,8 @@ }, binf:{ StationName1:$('#mainteArea').val(), + StationName2:$('#city').val(), + StationName5:$('#county').val(), StationName:$('#homeName').val(), BattGroupId:$('#battgroup_name').val(), BattProducer:$('#batt_producer').val(), @@ -341,7 +351,7 @@ return temp; } // stringify(createSearchForm()); - //椤甸潰鍔犺浇鏃舵煡璇㈢淮鎶ゅ尯涓殑鏋㈢航绫诲瀷 + //椤甸潰鍔犺浇鏃舵煡璇㈢渷 $.post("BattInfAction_serchByStation",null,function(data){ data = data.result; data = eval("("+data+")"); @@ -371,8 +381,53 @@ findStationNamebyStationname1(); }); + +//褰撶渷鏀瑰彉鏃舵洿鏂板競 + function findCity(){ + var data = { + StationName1: $("#station_name1").val() + }; + // 璇锋眰鑾峰彇褰撳墠鐪佷笅鐨勫競 + $.ajax({ + type: "post", + url: "BattInfAction!serchStationName2", + async:true, + dataType:'json', + data:"json = "+JSON.stringify(data), + success: function(data){ + data = data.result; + data = eval("("+data+")"); + console.info(data); + console.info(data.code); + if(data.code==1&&data.data.length>0){ + var $Ostation_name1=$("#city"); + $Ostation_name1.text(""); + var arr = new Array(); + for(var i=0;i<=data.data.length;i++) + { + if(i == 0){ + arr.push({ + val:"", + txt:"鍏ㄩ儴(鍏�"+data.sum+"涓�)", + }); + }else{ + arr.push({ + val:data.data[i-1].StationName1, + txt:data.data[i-1].StationName1, + }); + } + } + updataSel($Ostation_name1, arr); + } + findStationNamebyStationname1(); + } + }); + } + + //褰撶淮鎶ゅ尯鏀瑰彉鏃舵洿鏂扮珯鐐� - $('#mainteArea').change(function(){ + $('#mainteArea').change(function(){ + findCity(); findStationNamebyStationname1(); }); -- Gitblit v1.9.1