From 35fefed0792c40cb99b8d15fa5811bbb5992bff9 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期一, 21 一月 2019 10:42:24 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/eleAssess.jsp |  119 +++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 99 insertions(+), 20 deletions(-)

diff --git a/gx_tieta/WebRoot/eleAssess.jsp b/gx_tieta/WebRoot/eleAssess.jsp
index b5b35a4..cf5ad4f 100644
--- a/gx_tieta/WebRoot/eleAssess.jsp
+++ b/gx_tieta/WebRoot/eleAssess.jsp
@@ -15,6 +15,7 @@
 	<link href="css/basic.css" type="text/css" rel="stylesheet" />
 	<link href="css/ele_statistics.css" type="text/css" rel="stylesheet">
 	<link rel="stylesheet" type="text/css" href="css/eleAssess.css" />
+	<link href="src/css/layui.css" type="text/css" rel="stylesheet">
 	<script type="text/javascript" src="js/frame.js"></script>
 	<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
 	<script type="text/javascript" src="js/base.js"></script>
@@ -46,6 +47,8 @@
 						<td>鐪�</td>
 						<!-- 甯� -->
 						<td>甯�</td>
+						<!-- 鍖�/鍘� -->
+						<td>鍖�/鍘�</td>
 						<!-- 鏈烘埧绔欑偣锛堟垨鏈烘埧璁惧锛� -->
 						<td><s:text name="Computer_site"/></td>
 						<!-- 钃勭數姹犵粍 -->
@@ -75,6 +78,10 @@
 						</td>
 						<td>
 							<select id="city" name="bd.binf.StationName2">
+							</select>
+						</td>
+						<td>
+							<select id="county" name="bd.binf.StationName5">
 							</select>
 						</td>
 						<td>
@@ -201,9 +208,9 @@
 	</div>
 	<!-- 鍙抽敭鑿滃崟鍐呭 -->
 	<div id="right-menu">
-		<a href="" onclick="jumpPage()" target="_blank"><s:text name='Check_battery_test_record'/><!-- 鏌ョ湅鐢垫睜娴嬭瘯璁板綍 --></a>
-		<a href="" onclick="jumpBattgroupStatic(this)" target="_blank"><s:text name='Check_battery_statistical_analysis_queries'/><!-- 鏌ョ湅鐢垫睜缁勭粺璁″垎鏋愭煡璇� --></a>
-		<a href="" onclick="jumpBattmonomertatic(this)" target="_blank"><s:text name='Check_battery_monomer_record_behind'/><!-- 鏌ョ湅鐢垫睜钀藉悗鍗曚綋璁板綍 --></a>
+		<a href="javascript:void(0);" onclick="jumpPage()" target="_blank"><s:text name='Check_battery_test_record'/><!-- 鏌ョ湅鐢垫睜娴嬭瘯璁板綍 --></a>
+		<a href="javascript:void(0);" onclick="jumpBattgroupStatic(this)" target="_blank"><s:text name='Check_battery_statistical_analysis_queries'/><!-- 鏌ョ湅鐢垫睜缁勭粺璁″垎鏋愭煡璇� --></a>
+		<a href="javascript:void(0);" onclick="jumpBattmonomertatic(this)" target="_blank"><s:text name='Check_battery_monomer_record_behind'/><!-- 鏌ョ湅鐢垫睜钀藉悗鍗曚綋璁板綍 --></a>
 		<a href="eleBrdwMaint.jsp" target="_blank"><s:text name='Check_abnormal_battery_maintenance_record'/><!-- 鏌ョ湅寮傚父鐢垫睜缁存姢璁板綍 --></a>
 	</div>
 	
@@ -224,6 +231,7 @@
 	<div id="allTransShade"></div>
 	<div id="allShade"></div>	
 </body>
+<script type="text/javascript" src="src/layui.all.js"></script>
 <script type="text/javascript">
 	var permits;
 	<%	Object obj=session.getAttribute("permits");
@@ -255,8 +263,8 @@
 	var lastjson;
 	$(document).ready(function(){
 		$("#container a").eq(0).click(function(){
-		$('#maintence_infor').scrollTop(0);
-		$('#maintence_infor').scrollLeft(0);
+			$('#maintence_infor').scrollTop(0);
+			$('#maintence_infor').scrollLeft(0);
 			createWait($('#maintence_infor'));
 			$('#allTransShade').show();
 			var newjson = $("#search_form").serialize();
@@ -537,10 +545,12 @@
 	//鏍规嵁鍙抽敭閫変腑鐨勭數姹犵粍璺宠浆鍒扮數姹犳祴璇曢〉闈�
 	function jumpPage(){
 		if(Page!=undefined){
-			var batt = battinfo_list[trIndex];
+			var batt = battinfo_list[trIndex].data;
 			console.info(batt);
 			//this.setAttribute("href","charge-test.jsp?battgroupId="+battgroupId);
-			$('#right-menu a').eq(0).attr("href","charge-test.jsp?battgroupId="+batt.data.BattGroupId+"&stationId="+batt.data.StationId);
+			//$('#right-menu a').eq(0).attr("href","charge-test.jsp?battgroupId="+batt.data.BattGroupId+"&stationId="+batt.data.StationId);
+			var url = skipUrl('charge-test.jsp',batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
+			window.open(url);
 		}
 	}	
 	
@@ -548,25 +558,31 @@
 	//鏍规嵁鍙抽敭閫変腑鐨勭數姹犵粍璺宠浆鍒扮數姹犵粍缁熻鍒嗘瀽鏌ヨ椤甸潰
 	function jumpBattgroupStatic(dom){
 		if(battinfo_list!=undefined && battinfo_list.length>0){
-			var batt = battinfo_list[trIndex];
+			var batt = battinfo_list[trIndex].data;
 			//console.info(batt);
 			//this.setAttribute("href","charge-test.jsp?battgroupId="+battgroupId);
-			$(dom).attr("href","eleAnalyse.jsp?battgroupId="+batt.data.BattGroupId+"&stationId="+batt.data.StationId);
+			//$(dom).attr("href","eleAnalyse.jsp?battgroupId="+batt.data.BattGroupId+"&stationId="+batt.data.StationId);
+			var url = skipUrl('eleAnalyse.jsp',batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
+			window.open(url);
 		}
 	}
 	
 	//鏍规嵁鍙抽敭閫変腑鐨勭數姹犵粍璺宠浆鍒扮數姹犲崟浣撶粺璁″垎鏋愭煡璇㈤〉闈�
 	function jumpBattmonomertatic(dom){
 		if(battinfo_list!=undefined && battinfo_list.length>0){
-			var batt = battinfo_list[trIndex];
+			var batt = battinfo_list[trIndex].data;
 			//console.info(batt);
 			//this.setAttribute("href","charge-test.jsp?battgroupId="+battgroupId);
-			$(dom).attr("href","eleMonomer.jsp?battgroupId="+batt.data.BattGroupId+"&stationId="+batt.data.StationId+"&battmon_num=0");
+			//$(dom).attr("href","eleMonomer.jsp?battgroupId="+batt.data.BattGroupId+"&stationId="+batt.data.StationId+"&battmon_num=0");
+			var url = skipUrl('eleMonomer.jsp',batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
+			window.open(url);
 		}
 	}
 	
 	// 鐪�-甯�-鏈烘埧-鐢垫睜缁�
+	var filterLoad;
 	$(document).ready(function(){
+		filterLoad = layer.load();
 		//椤甸潰鍔犺浇鏃舵煡璇㈢淮鎶ゅ尯涓殑鏋㈢航绫诲瀷
 		$.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
 			data=data.result;
@@ -594,10 +610,14 @@
 	});
 	
 	// 鏍规嵁缁存姢鍖虹殑鍐呭鏌ヨ甯�
-	function findCity() {
+	function findCity(isLoad) {
 		var data = {
 			StationName1: $("#station_name1").val()
 		};
+		// 鏄惁娣诲姞绛夊緟
+		if(isLoad) {
+			filterLoad = layer.load();
+		}
 		// 璇锋眰鑾峰彇褰撳墠鐪佷笅鐨勫競
 		$.ajax({ 	
 	        type: "post", 				
@@ -622,9 +642,51 @@
 	        	}else {
 	        		$select.text('').html('<option>鏆傛棤鍙祴甯�</option>');
 	        	}
-	        	findStationNamebyStationname1();
+	        	findCounty();
 	        }
 	    });
+	}
+	
+	// 鏌ヨ鍖�/鍘�
+	function findCounty(isLoad) {
+		var tmp = {
+			StationName1:$("#station_name1").val(),
+			StationName2:$("#city").val(),
+		};
+		// 鏄惁娣诲姞绛夊緟
+		if(isLoad) {
+			filterLoad = layer.load();
+		}
+		// 鏌ヨ鍖哄幙
+		$.ajax({
+			type: 'post',
+			async: true,
+			url: "BattInfAction!serchStationName5",
+			data: "json="+JSON.stringify(tmp),
+			success:function(data) {
+				var rs = JSON.parse(data.result);
+				var $select = $("#county");
+				if(rs.code==1){
+					var _data = rs.data;
+					// 鏍规嵁鏁版嵁鏋勯�犵敓鎴愪笅鎷夊垪琛ㄧ殑鏁版嵁
+					var optsList = [];
+					for(var i=0;i<_data.length;i++){
+						var __data = _data[i];
+						var _attr = {
+							StationId: __data.StationId
+						};
+						var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
+						optsList.push(tmp);
+					}
+					
+					// 鏍规嵁鏁版嵁鐢熸垚涓嬫媺鍒楄〃
+					createOptions($select, optsList, true);
+				}else{
+					$select.text('').html('<option>鏆傛棤鍙祴鏈烘埧绔欑偣</option>');
+				}
+				findStationNamebyStationname1();
+			}
+		});
 	}
 	
 	//褰撶淮鎶ゅ尯鐨勫�煎彉鎹㈡椂鏇存柊甯�
@@ -634,15 +696,25 @@
 	
 	//褰撶淮鎶ゅ尯鐨勫�煎彉鎹㈡椂鏇存柊鏈烘埧绔欑偣
 	$('#city').change(function(){
-		findStationNamebyStationname1();
+		findCounty(true);
+	});
+	
+	//褰撳尯/鍘跨殑鍊煎彉鎹㈡椂鏇存柊鏈烘埧绔欑偣
+	$('#county').change(function(){
+		findStationNamebyStationname1(true);
 	});
 	
 	//鏍规嵁鐪侊紝甯傛煡璇㈢珯鐐�
-	function findStationNamebyStationname1(){
+	function findStationNamebyStationname1(isLoad){
 		var tmp = {
 			StationName1:$("#station_name1").val(),
-			StationName2:$("#city").val()
+			StationName2:$("#city").val(),
+			StationName5:$("#county").val()
 		};
+		// 鏄惁娣诲姞绛夊緟
+		if(isLoad) {
+			filterLoad = layer.load();
+		}
 		//var selectvalue=$("#station_name1 option:selected").val();
 		//alert(selectvalue);
 		$.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
@@ -672,20 +744,24 @@
 	
 	// 鏍规嵁鏈烘埧鍚嶇О鏌ヨ鐢垫睜缁�
 	$('#station_name').change(function(){
-		findserchByBattGroupNamebystationname();
+		findserchByBattGroupNamebystationname(true);
 	});
 	
 	//鏍规嵁鐪侊紝甯傚拰鏈烘埧鏌ヨ钃勭數姹犵粍
-	function findserchByBattGroupNamebystationname(){
+	function findserchByBattGroupNamebystationname(isLoad){
 		var stationid = $("#station_name").find('option:selected').attr('stationid')?$("#station_name").find('option:selected').attr('stationid'):'';
 		// 鏋勯�犳煡璇㈡潯浠�
 		var tmp = {
 			StationName1:$("#station_name1").val(),
 			StationName2:$("#city").val(),
+			StationName5:$("#county").val(),
 			StationName: $("#station_name").val(),
 			StationId: stationid
 		};
-	
+		// 鏄惁娣诲姞绛夊緟
+		if(isLoad) {
+			filterLoad = layer.load();
+		}
 		//var station_name1=$("#station_name1 option:selected").val();
 		//var station_name=$("#station_name option:selected").val();
 		
@@ -716,6 +792,8 @@
 			}else{
 				$("#battgroup_name").text('').html('<option>鏆傛棤鍙祴钃勭數姹犵粍</option>');
 			}
+			
+			layer.close(filterLoad);
 		});
 	}
 	
@@ -929,7 +1007,8 @@
 			},
 			binf:{
 				StationName1:$('#station_name1').val(),
-				StationName1:$('#city').val(),
+				StationName2:$('#city').val(),
+				StationName5: $('#county').val(),
 				StationName:$('#station_name').val(),
 				BattGroupId:$('#battgroup_name').val(),
 				BattProducer:$('#batt_producer').val(),

--
Gitblit v1.9.1