From e5e64cb7354ce4e9f4ef02057789a9ea0f85eb56 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期二, 08 一月 2019 09:41:14 +0800
Subject: [PATCH] 修改
---
gx_tieta/WebRoot/index.jsp | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 50 insertions(+), 8 deletions(-)
diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp
index 3a85a6e..45bb7c7 100644
--- a/gx_tieta/WebRoot/index.jsp
+++ b/gx_tieta/WebRoot/index.jsp
@@ -801,12 +801,14 @@
}
//闇�瑕佸疄鏃舵煡璇㈢殑鏂规硶
- function Repeatoperation(){
- searchBattmaintrecords();
- searchUserTask();
- searchAnnounceall();
- searchTestsCale();
-
+ function Repeatoperation(){
+ // 鍒ゆ柇椤甸潰鏄惁姝e湪琚闂�
+ if(pageIsVisit) {
+ searchBattmaintrecords();
+ searchUserTask();
+ searchAnnounceall();
+ searchTestsCale();
+ }
setTimeout(Repeatoperation,10000);
}
@@ -940,6 +942,13 @@
if($('#content .warn-pie').length==0){
return;
}
+
+ // 鍒ゆ柇椤甸潰鏄惁琚闂�
+ if(!pageIsVisit) {
+ setTimeout(searchalarm_data, 10000);
+ return;
+ }
+
//鐢熸垚鐢垫睜鍛婅鐜囬ゼ鐘跺浘
var $warn=$('#content .pie-con .warn-pie'); //鑾峰彇鍛婅瀹瑰櫒鐨刯query瀵硅薄
if($warn.length!=0){
@@ -1051,6 +1060,12 @@
return;
}
+ // 鍒ゆ柇椤甸潰鏄惁琚闂�
+ if(!pageIsVisit) {
+ setTimeout(searchmaintByMap, 10000);
+ return;
+ }
+
// 鍒ゆ柇鏄惁涓篍charts瀵硅薄
var isEcharts = isObject(brdnPie)?true:false;
@@ -1123,6 +1138,13 @@
if($('#content .repair-pie').length==0){
return;
}
+
+ // 鍒ゆ柇椤甸潰鏄惁琚闂�
+ if(!pageIsVisit) {
+ setTimeout(searchBatt_maint_inf, 10000);
+ return;
+ }
+
// 鍒ゆ柇鏄惁涓篍charts瀵硅薄
var isEcharts = isObject(repairPie)?true:false;
if(!isEcharts) {
@@ -1178,6 +1200,13 @@
if($('#content .health-pie').length==0){
return;
}
+
+ // 鍒ゆ柇椤甸潰鏄惁琚闂�
+ if(!pageIsVisit) {
+ setTimeout(searchGood, 10000);
+ return;
+ }
+
//鐢熸垚鐢垫睜鍋ュ悍鐜�
var $health=$('#content .pie-con .health-pie'); //鑾峰彇鏁呴殰瀹瑰櫒鐨刯query瀵硅薄
if($health.length!=0){
@@ -1228,6 +1257,12 @@
var endurPie;
function searchEndurHome() {
if($('#content .endur-pie').length==0){
+ return;
+ }
+
+ // 鍒ゆ柇椤甸潰鏄惁琚闂�
+ if(!pageIsVisit) {
+ setTimeout(searchEndurHome, 10000);
return;
}
@@ -1705,7 +1740,7 @@
// 鐢熸垚鍥炬爣鐨勮鏄�
function createIconExplain(mapEle) {
var iconExplain = $('<div id="mapImgDesc" style="position:absolute;background-color: #fff; border: 1px solid #ccc; right: 10px; bottom: 10px; z-index: 99999"></div>'); // 鍦板浘鍥炬爣璇存槑瀹瑰櫒
- var iconExplainHt = $('<div class="explain-header" style="padding:4px 8px; border-bottom:1px solid #ccc; background-color: #CDDCFA">鍦板浘鍥炬爣璇存槑<img src="image/explain-down.gif" style="float:right;"/></div>');
+ var iconExplainHt = $('<div class="explain-header" style="padding:4px 8px; border-bottom:1px solid #ccc; background-color: #CDDCFA">鍥炬爣鏄剧ず涓庨�夋嫨<img src="image/explain-down.gif" style="float:right;"/></div>');
iconExplain.append(iconExplainHt);
changeMapImgDesc(iconExplain, 'normal');
@@ -1840,7 +1875,7 @@
var powercut = mapImgDesc.find('.badge-powercut'); // 鍋滅數鏈烘埧
var normal = mapImgDesc.find('.badge-normal'); // 姝e父鏈烘埧
var weak = mapImgDesc.find('.badge-xuhang'); // 缁埅涓嶈冻3灏忔椂鏈烘埧
- console.log(warn.length);
+ // console.log(warn.length);
// 璇锋眰鍚庡彴鏁版嵁
$.ajax({
type: 'post'
@@ -2632,6 +2667,13 @@
var bmap = GLOBAL.BMap; // BMap鐨勫懡鍚嶇┖闂�
var updateStationData = [];
+ // 鍒ゆ柇鏄惁琚闂�
+ if(!pageIsVisit) {
+ // 鍏抽棴骞舵坊鍔犲欢鏃舵墽琛�
+ clearInterval(updateTimeout);
+ updateTimeout = setTimeout(updateStation, 4000);
+ }
+
if(isLoad) {
updateLoad = layer.load(1);
}
--
Gitblit v1.9.1