From e73e7e7f861fa87cbbd0e2eeca05939f57381ec1 Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.23>
Date: 星期五, 30 十一月 2018 10:33:57 +0800
Subject: [PATCH] 修改参数记录的修改

---
 gx_tieta/WebRoot/index.jsp |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp
index fdcef10..9d0fc10 100644
--- a/gx_tieta/WebRoot/index.jsp
+++ b/gx_tieta/WebRoot/index.jsp
@@ -2543,7 +2543,7 @@
 					// 鏄剧ず鍖哄煙鐨勫浘鏍�
 					bmap.setDots(allStation);
 					bmap.queryInRect(map, createMapDot);
-					updateStation(setRect);
+					updateStation();
 					
 					// 鏇存柊灏忓伐鍏锋悳绱㈡満鎴垮姛鑳�
 					updateSearchSource(allStation);
@@ -3723,6 +3723,11 @@
 					type: 1
 				});
 				$(this).prop('checked', false);
+			}else if(num == 0) {
+				layerMsg = layer.msg("鑷冲皯閫夋嫨涓�涓紒", {
+					type: 1
+				});
+				$(this).prop('checked', true);
 			}
 			
 		});
@@ -3886,6 +3891,7 @@
 		// 鐐瑰嚮鏈烘埧绫诲瀷澶嶉�夋
 		$('#homeType input[type=checkbox]').click(function() {
 			var homeType = getHomeType();
+			getInstallNum();
 			updateStation(true);
 		});
 		
@@ -3981,13 +3987,38 @@
 				success: function(result) {
 					// 鏍煎紡鍖栨暟鎹�
 					var rs = JSON.parse(result.result);
-					var txt = rs.newsum+'/'+rs.sum;
+					//console.log(rs);
+					if(rs.code == 1) {
+						var txt = getInstallNumByType(rs.data,getHomeType());
 					
-					// 鏇存柊鏂囨湰鍊�
-					$('#installnum').text(txt);
+						// 鏇存柊鏂囨湰鍊�
+						$('#installnum').text(txt);
+					}
+					
 				}
 			});
-		};
+		}
+		
+		// 鏇村叿閫夋嫨鏈烘埧鐨勭被鍨嬭繑鍥炴枃鏈�
+		function getInstallNumByType(data,type) {
+			var rs = '鏈煡/鏈煡';
+			switch(type) {
+				case 0:
+					rs = '0/0';
+				break;
+				case 2:
+					rs = data[0]+'/'+data[1];
+				break;
+				case 12:
+					rs = data[2]+'/'+data[3];
+				break;
+				case 14:
+					rs = data[4]+'/'+data[5];
+				break;
+			}
+			
+			return rs;
+		}
 	});
 	
 	// 0=鍏ㄩ儴涓嶉�� 14=鍏ㄩ儴閫変腑 2=閫変腑2V 12=閫変腑12V

--
Gitblit v1.9.1