274e47b7604da7e8a56c0b2a3d1fa741e25ceceb.svn-base 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>应急装备</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  9. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts.min.js"></script>
  10. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.min.js"></script>
  11. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/chart/pie.js"></script>
  12. <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
  13. <!-- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.js"></script> -->
  14. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  15. <link rel="stylesheet" type="text/css" href=" /nwyj/css/cockpit/commom/ehcartPage.css" />
  16. <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
  17. <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
  18. <!-- 驾驶舱与首页显示的样式 star -->
  19. <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/dialog/gis_chart.css" />
  20. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/cockpitANDmainIndex.js"></script>
  21. <script type="text/javascript" src="/nwyj/page/cockpit/webgis/js/gis_char_close.js"></script>
  22. <!-- 驾驶舱与首页显示的样式 end -->
  23. <script type="text/javascript" src="/nwyj/scripts/cockpit/search/search_util.js"></script>
  24. <script type="text/javascript" src="/nwyj/scripts/amResource/emergency_equipment_into_chart.js"></script>
  25. </head>
  26. <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);">
  27. <div id="i_page_main" class="c_page_main">
  28. <div id="i_page_head" class="c_page_head">
  29. <div id="i_page_head_title">
  30. </div>
  31. <div id="i_page_head_subtitle"></div>
  32. </div>
  33. <div id="i_page_chart" class="c_page_chart">
  34. </div>
  35. </div>
  36. <script type="text/javascript">
  37. /*
  38. var pageParam={};
  39. var chart=null;
  40. var utils=new Util();
  41. var searchUtil = new SearchUtil();
  42. $(function(){
  43. pageParam.style=utils.resolveUrl()["style"]||"style1";
  44. pageParam.title=utils.resolveUrl()["title"]||"广东电网";
  45. pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
  46. pageParam.compId=utils.resolveUrl()["dept_id"]||"11";
  47. pageParam.startTime=start;
  48. pageParam.endTime=end;
  49. init();
  50. });
  51. function init(){
  52. loadChart(pageParam);
  53. }
  54. function loadChart(jsonParam){
  55. pageParam.isalert=null;
  56. if(pageParam.number.split("|")[0]=="预警"){
  57. pageParam.isalert="0";
  58. }else{
  59. pageParam.isalert="1";
  60. }
  61. pageParam.number=pageParam.number.split("|")[1];
  62. $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getEmergencySourceChartInfo",
  63. {name:"getEmergencySourceChild",
  64. compId:jsonParam.compId,
  65. number:jsonParam.number,
  66. isalert:pageParam.isalert,
  67. viewName:"REPORT_YINGJI_ZIYUAN_VIEW"},function(result){
  68. if(result.rows.length==0){
  69. zeroChart();
  70. return;
  71. }
  72. removeNoData();
  73. var totalfdc=0;
  74. var totalfdj=0;
  75. for(var index=0,len=result.rows.length;index<len;index++){
  76. var item=result.rows[index];
  77. var fdc=utils.changeQ(item["FADIAN_CAR_BD"])+utils.changeQ(item["FADIAN_CAR_KQ"]);
  78. var fdj=utils.changeQ(item["FADIAN_JI_BD"])+utils.changeQ(item["FADIAN_JI_KQ"]);
  79. totalfdc+=fdc;
  80. totalfdj+=fdj;
  81. }
  82. var sArr=[{type:"pie",name:"应急投入",data:[],
  83. radius : "55%",
  84. center: ["50%", "60%"],
  85. itemStyle: {
  86. normal: {borderWidth: 1,borderColor:"tomato",
  87. label : { show : true,
  88. position: "insideTop",
  89. textStyle: {fontSize: 14,fontStyle: "normal",fontWeight: "bold"},
  90. formatter: "{b} : {c} ({d}%)"
  91. }
  92. }
  93. }
  94. }];
  95. var xAxis=[];
  96. var item=result.rows[0];
  97. sArr[0].data.push({name:"发电车",value:totalfdc,
  98. itemStyle: {normal: {color: pageStyle[jsonParam.style]["chartColor"][0]}} ,
  99. data:{text:jsonParam.title,
  100. number:jsonParam.number}
  101. });
  102. sArr[0].data.push({name:"发电机",value:totalfdj,
  103. itemStyle: {normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}} ,
  104. data:{text:jsonParam.title, number:jsonParam.number}
  105. });
  106. opParams={
  107. //title:"截止:"+item["APPEAR_TIME"],//标题
  108. title:"起始:"+item["SEND_TIME"]+":00"+" 截止:"+item["APPEAR_TIME"],//标题
  109. subtext:"投入发电机:"+totalfdj+" (台);发电车:"+totalfdc+"(辆)",
  110. saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
  111. unit:"座",//单位
  112. leArr:["发电车","发电机"],//图例
  113. xAxis:xAxis,//x轴
  114. sArr:sArr//主数据
  115. };
  116. chart=getEchart($("#i_page_chart"),getOption11,opParams,null);
  117. setTitle();
  118. bindEvent();
  119. },"json");
  120. }
  121. function setTitle(){
  122. $("#i_page_head_title").find("h2").remove();
  123. $("#i_page_head_title").append("<h2>"+pageParam.title+"应急发电机(车)统计</h2>");
  124. }
  125. function bindEvent(){
  126. chart.on("click",function(params){
  127. var pathStr=url["http_path"]+"page/cockpit/echart_maticView/emergercy_source/emergency_equipment_into_grid.html?"+encodeURI($.param(params.data.data));
  128. utils.openIframe(pathStr);
  129. });
  130. $(window).resize(function(){
  131. chart.resize();
  132. });
  133. }
  134. //dwr推送方法
  135. function dwrData(number){
  136. if(number== pageParam.number){
  137. loadChart(pageParam);
  138. }
  139. }
  140. */
  141. </script>
  142. </body>
  143. </html>