From 2bb82444f83be2e27eea7f25f04b55966612550d Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期五, 23 十一月 2018 08:53:53 +0800 Subject: [PATCH] 电池健康率饼状图实现跳转到落后单体查询页面 --- gx_tieta/WebRoot/index.jsp | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp index 0f64896..26e5531 100644 --- a/gx_tieta/WebRoot/index.jsp +++ b/gx_tieta/WebRoot/index.jsp @@ -128,11 +128,14 @@ <tr> <td class="w5em alg-c f-bold">鏈烘埧鍚嶇О:</td> <td><input type="text" id="mapToolSearch"></td> + <td class="w54 btn-container"> + <button type="button" value="鎼滅储" id="mapToolSearchBtn" class="mrr8"><i class="fa fa-search page-link"></i></button> + </td> </tr> <tr> - <td colspan="2" class="alg-r btn-container"> + <td colspan="3" class="alg-r btn-container"> <span class="mrr8">宸插畨瑁呰澶囨暟/璁惧鎬绘暟锛�<span id="installnum">12/600</span><i id="installnumbtn" class="fa fa-refresh mrl8 page-link" title="鍒锋柊"></i></span> - <button type="button" value="鎼滅储" id="mapToolSearchBtn" class="mrr8">鎼滅储</button> + </td> </tr> </tbody> @@ -1003,6 +1006,15 @@ //鍒涘缓鐢垫睜鍛婅楗肩姸鍥� var warnTle="<s:text name='Battery_alarm_rate'/>"; /* 鐢垫睜鍛婅鐜� */ createPie(warnPie,warnTle,Almarr); + warnPie.on('click', function(param) { + // 0:鍦ㄧ嚎鐢靛帇 1:缁勭鐢靛帇 2:鍏呯數鐢垫祦 3:鏀剧數鐢垫祦 4:鍗曚綋鐢靛帇 5:瀹归噺鍛婅 + if(param.dataIndex == 5) { + + }else { + window.open('elewarn.jsp?warntype='+param.dataIndex+'&warntxt='+param.name); + } + + }); } }); } @@ -1107,7 +1119,7 @@ powercut_isNew = false; createPie(repairPie,repairTle,repairObj); repairPie.on('click', function() { - window.open('batt-state-manage.jsp?power_state=0'); + window.open('batt-state-manage.jsp'); }); }else{ var opt = getOpt(repairTle, repairObj); @@ -1155,6 +1167,11 @@ } //鍒涘缓鐢垫睜鏁呴殰楗肩姸鍥� createPie(healthPie,healthTle,healthObj); + + // 鐐瑰嚮楗肩姸鍥捐繘琛岃烦杞� + healthPie.on('click', function(param) { + window.open('taskplan.jsp'); // 璺宠浆鍒拌惤鍚庡崟浣撴煡璇� + }); }); } } -- Gitblit v1.9.1