From 2fe250ece8de95b3f70172fe5b45793ab6a3084a Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期五, 18 一月 2019 17:30:50 +0800 Subject: [PATCH] 未审批可更改 --- gx_tieta/WebRoot/mobil/batt-state-statistical.html | 62 ++----------------------------- 1 files changed, 4 insertions(+), 58 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-state-statistical.html b/gx_tieta/WebRoot/mobil/batt-state-statistical.html index e3d8203..705fc11 100644 --- a/gx_tieta/WebRoot/mobil/batt-state-statistical.html +++ b/gx_tieta/WebRoot/mobil/batt-state-statistical.html @@ -202,7 +202,7 @@ //console.info(data); if(data.code==1 && data.data.length>0){ data=data.data; - //console.info(data); + console.info(data); arr=new Array(); index=0; for(var i=0;i<data.length;i++){ @@ -413,61 +413,11 @@ updataSelStation($Ostation_name1, arr); } - findserchByBattGroupNamebystationname(); + // findserchByBattGroupNamebystationname(); } }); } - - //鏍规嵁鏈烘埧鑾峰彇鐢垫睜缁� - function findserchByBattGroupNamebystationname(){ - var stationid = $("#country").find('option:selected').attr('stationid')?$("#station_name").find('option:selected').attr('stationid'):''; - - var data = { - StationName1: $("#mainteArea").val(), - StationName2:$("#city").val(), - StationName5:$("#country").val(), - StationName: $("#homeName").val(), - StationId: stationid - }; - - //console.info(data); - $.ajax({ - type: "post", - url: "BattInfAction!serchBattByStation", - async:true, - dataType:'json', - data:"json = "+JSON.stringify(data), - success: function(data){ - data = data.result; - data = eval("("+data+")"); - //console.warn(); - //console.info(data); - //console.info(data.code); - if(data.code==1&&data.data.length>0){ - var $Ostation_name1=$("#battgroup_name"); - $Ostation_name1.text(""); - var arr = new Array(); - for(var i=0;i<=data.data.length;i++) - { - if(i == 0){ - arr.push({ - val:0, - txt:"鍏ㄩ儴(鍏�"+data.data.length+"涓�)", - }); - }else{ - arr.push({ - val:data.data[i-1].BattGroupId, - txt:data.data[i-1].BattGroupName, - }); - } - } - updataSel($Ostation_name1, arr); - } - - } - }); - } - + //褰撶渷鏀瑰彉鏃舵洿鏂板競 $('#mainteArea').change(function(){ findCity(); @@ -480,11 +430,7 @@ $('#country').change(function(){ findStationNamebyStationname1(); }); - //褰撴満鎴挎敼鍙樻椂锛屾洿鏂扮數姹犵粍 - $('#homeName').change(function(){ - findserchByBattGroupNamebystationname(); - }); - + $(function() { -- Gitblit v1.9.1