From 18ce4fb0213f2e7a7369e0d8861b744a2cd1a940 Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期一, 12 十一月 2018 08:51:26 +0800
Subject: [PATCH] 历史和实时互相跳转定位精确到电池组
---
gx_tieta/WebRoot/control.jsp | 3 ++-
gx_tieta/WebRoot/charge-test.jsp | 3 ++-
gx_tieta/WebRoot/pages/js/pages/siderbar.js | 4 ++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/gx_tieta/WebRoot/charge-test.jsp b/gx_tieta/WebRoot/charge-test.jsp
index 05ce9c9..4ef382f 100644
--- a/gx_tieta/WebRoot/charge-test.jsp
+++ b/gx_tieta/WebRoot/charge-test.jsp
@@ -3413,7 +3413,8 @@
var city = batt.StationName2;
var county = batt.StationName5;
var home = batt.StationName;
- $(this).attr('href', 'control.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home);
+ var homeid = batt.BattGroupId;
+ $(this).attr('href', 'control.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home+'&homeid='+homeid);
});
});
diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp
index 1f22231..660fdb8 100644
--- a/gx_tieta/WebRoot/control.jsp
+++ b/gx_tieta/WebRoot/control.jsp
@@ -3030,7 +3030,8 @@
var city = batt.StationName2;
var county = batt.StationName5;
var home = batt.StationName;
- $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home);
+ var homeid = batt.BattGroupId;
+ $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home+'&homeid='+homeid);
});
});
diff --git a/gx_tieta/WebRoot/pages/js/pages/siderbar.js b/gx_tieta/WebRoot/pages/js/pages/siderbar.js
index 9227e58..8514b29 100644
--- a/gx_tieta/WebRoot/pages/js/pages/siderbar.js
+++ b/gx_tieta/WebRoot/pages/js/pages/siderbar.js
@@ -220,7 +220,7 @@
var city = getQueryString('city'); // 甯�
var county = getQueryString('county'); // 鍖�/鍘�
var home = getQueryString('home'); // 鏈烘埧
-
+ var homeid = getQueryString('homeid'); // 鐢垫睜缁刬d
//console.log(province);
// 鐢熸垚涓�绾у鑸�-鐪�
@@ -467,7 +467,7 @@
treeView.treeView(container, formatData);
//console.info(formatData);
if(active) {
- treeView.activeFile(container,'eleGroup', '');
+ treeView.activeFile(container,'eleGroup', homeid);
var battId = formatData[0].id;
location.hash="#"+battId;
location.hash = "";
--
Gitblit v1.9.1