123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>应急装备投入039</title>
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/chart/line.js"></script>
- <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
- <!-- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.js"></script> -->
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
- <link rel="stylesheet" type="text/css" href=" /nwyj/css/cockpit/commom/ehcartPage.css" />
- <link rel="stylesheet" type="text/css" href=" /nwyj/scripts/qui/libs/skins/flatBlue/style1.css" />
- <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
- <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
- </head>
- <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);">
- <div id="i_page_main" class="c_page_main">
- <div id="i_page_head" class="c_page_head">
- <div id="i_page_head_title">
- </div>
- <div id="i_page_head_subtitle"></div>
- </div>
- <div id="i_page_chart" class="c_page_chart">
- </div>
- </div>
- <script type="text/javascript">
-
- var pageParam={};
- var chart=null;
- var utils=new Util();
- $(function(){
- pageParam.style=utils.resolveUrl()["style"]||"style1";
- pageParam.title=utils.resolveUrl()["title"]||"广东电网";
- pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
- pageParam.startTime=start;
- pageParam.endTime=end;
- init();
- });
- function init(){
- loadChart(pageParam);
- }
- function loadChart(jsonParam){
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getChildDataOrSelfByWarnningNumber",{name:"getChildsRecodeSumData",number:jsonParam.number,viewName:"REPORT_YINGJI_ZIYUAN_VIEW"},function(result){
- var sArr=[{type:"bar",name:"应急发电车",data:[],
- barMaxWidth:40,
- itemStyle: {
- normal: {borderWidth: 1,
- borderColor:"tomato",
- color: pageStyle[jsonParam.style]["chartColor"][0],
- label : { show : true,
- position:"top",
- textStyle: {
- color: "rgb(255, 255, 255)",
- fontSize: 14,
- fontStyle: "normal",
- fontWeight: "bold"
- }
- }
- }}
- },
- {type:"bar",name:"应急发电机",data:[],
- barMaxWidth:40,
- itemStyle: {
- normal: {borderWidth: 1,
- borderColor:"tomato",
- color: pageStyle[jsonParam.style]["chartColor"][1],
- label : { show : true,
- position:"top",
- textStyle: {
- color: "rgb(255, 255, 255)",
- fontSize: 14,
- fontStyle: "normal",
- fontWeight: "bold"
- }
- }
- }}
- }];
- var xAxis=[];
- var data=result.rows[0];
- /**
- * PERSON_BD,PERSON_KQ, ------已经人员
- * CAR_BD,CAR_KQ, ------应急车辆
- * FADIAN_CAR_BD,FADIAN_CAR_KQ, ------应急发电车
- * FADIAN_JI_BD,FADIAN_JI_KQ ------应急发电机
- */
- /* var bdfdj=utils.changeQ(item["FADIAN_CAR_BD"])+utils.changeQ(item["FADIAN_CAR_KQ"]);
- var bdfdc=utils.changeQ(item["FADIAN_JI_BD"])+utils.changeQ(item["FADIAN_JI_KQ"]); */
-
- for(var index=0,len=result.rows.length;index<len;index++){
- var item=result.rows[index];
- var fdc=utils.changeQ(item["FADIAN_CAR_BD"])+utils.changeQ(item["FADIAN_CAR_KQ"]);
- var fdj=utils.changeQ(item["FADIAN_JI_BD"])+utils.changeQ(item["FADIAN_JI_KQ"]);
-
- sArr[0].data.push({value:fdc,data:{fdc:fdc,fdj:fdj,text:jsonParam.title,style:jsonParam.style}});
- sArr[1].data.push({value:fdj,data:{fdc:fdc,fdj:fdj,text:jsonParam.title,style:jsonParam.style}});
- xAxis.push({value:item["DEPT_NAME"],number:jsonParam.number,compId:item["COMP_ID"]});
-
-
- }
- pageParam.opParams={
- title:"截止:"+data["APPEAR_TIME"],//标题
- subtext:"投入应急发电机:"+fdc+"(台) 应急发电车:"+fdj+"(辆)",
- unit:"条",//单位
- leArr:["应急发电车","应急发电机"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- chart=getEchart($("#i_page_chart"),getOption,pageParam.opParams,null);
- setTitle();
- bindEvent();
- },"json");
- }
- function setTitle(){
- $("#i_page_head_title").find("h2").remove();
- $("#i_page_head_title").append("<h2>"+pageParam.title+"应急发电机(车)统计</h2>");
- }
- function bindEvent(){
- chart.on("click",function(param){
- chart.on("click",function(params){
- var pathStr=url["http_path"]+"page/cockpit/echart_maticView/emergercy_source/alert_pie_chart.html?"+encodeURI($.param(params.data.data));
- utils.openIframe(pathStr);
- });
- })
- $(window).resize(function(){
- chart.resize();
- });
- }
- /*dwr推送方法 */
- function dwrData(number){
- if(number== pageParam.number){
- loadChart(pageParam);
- }
- }
-
- </script>
- </body>
- </html>
|