00f42541698b4ef56d369ca57b3296fb00484f03.svn-base 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>应急装备投入039</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/bar.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. <!-- dwr 实现消息推送功能 star-->
  17. <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
  18. <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
  19. <!-- dwr 实现消息推送功能 end-->
  20. <!-- 驾驶舱与首页显示的样式 star -->
  21. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/cockpitANDmainIndex.js"></script>
  22. <!-- 驾驶舱与首页显示的样式 end -->
  23. <!-- 驾驶舱展示样式 start -->
  24. <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/dialog/gis_chart.css" />
  25. <script type="text/javascript" src="/nwyj/page/cockpit/webgis/js/gis_char_close.js"></script>
  26. <!-- 驾驶舱展示样式 end -->
  27. <script type="text/javascript" src="/nwyj/scripts/cockpit/search/search_util.js"></script>
  28. <script type="text/javascript" src="/nwyj/scripts/amResource/emergency_person_into_child_chart.js"></script>
  29. </head>
  30. <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);">
  31. <div id="i_page_main" class="c_page_main">
  32. <div id="i_page_head" class="c_page_head">
  33. <div id="i_page_head_title">
  34. </div>
  35. <div id="i_page_head_subtitle"></div>
  36. </div>
  37. <div id="i_page_chart" class="c_page_chart">
  38. </div>
  39. </div>
  40. <script type="text/javascript">
  41. /*
  42. var pageParam={};
  43. var chart=null;
  44. var utils=new Util();
  45. var searchUtil = new SearchUtil();
  46. $(function(){
  47. pageParam.style=utils.resolveUrl()["style"]||"style1";
  48. pageParam.title=utils.resolveUrl()["title"]||"广东电网";
  49. pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
  50. pageParam.compId=utils.resolveUrl()["dept_id"]||"11";
  51. pageParam.startTime=start;
  52. pageParam.endTime=end;
  53. init();
  54. });
  55. function init(){
  56. loadChart(pageParam);
  57. }
  58. function loadChart(jsonParam){
  59. pageParam.isalert=null;
  60. if(pageParam.number.split("|")[0]=="预警"){
  61. pageParam.isalert="0";
  62. }else{
  63. pageParam.isalert="1";
  64. }
  65. pageParam.number=pageParam.number.split("|")[1];
  66. $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getEmergencySourceChartInfo",
  67. {name:"getEmergencySourceChild",
  68. compId:jsonParam.compId,
  69. number:jsonParam.number,
  70. isalert:pageParam.isalert,
  71. viewName:"REPORT_YINGJI_ZIYUAN_VIEW"},function(result){
  72. if(result.rows.length==0){
  73. zeroChart();
  74. return;
  75. }
  76. veriColor(); //根据首页的传值判断样式
  77. removeNoData();
  78. var sArr=[{type:"bar",name:"应急人员",data:[],
  79. barMaxWidth:40,
  80. itemStyle: {
  81. normal: {borderWidth: 1,
  82. borderColor:"tomato",
  83. color: pageStyle[jsonParam.style]["chartColor"][0],
  84. label : { show : true,
  85. position:"top",
  86. textStyle: {
  87. color: "rgb(255, 255, 255)",
  88. fontSize: 14,
  89. fontStyle: "normal",
  90. fontWeight: "bold"
  91. }
  92. }
  93. }}
  94. }];
  95. var xAxis=[];
  96. var data=result.rows[0];
  97. //
  98. // PERSON_BD,PERSON_KQ, ------已经人员
  99. // CAR_BD,CAR_KQ, ------应急车辆
  100. // FADIAN_CAR_BD,FADIAN_CAR_KQ, ------应急发电车
  101. // FADIAN_JI_BD,FADIAN_JI_KQ ------应急发电机
  102. // var bdfdj=utils.changeQ(item["FADIAN_CAR_BD"])+utils.changeQ(item["FADIAN_CAR_KQ"]);
  103. // var bdfdc=utils.changeQ(item["FADIAN_JI_BD"])+utils.changeQ(item["FADIAN_JI_KQ"]);
  104. var total=0;
  105. var max=0;
  106. for(var index=0,len=result.rows.length;index<len;index++){
  107. var item=result.rows[index];
  108. var person=utils.changeQ(item["PERSON_BD"])+utils.changeQ(item["PERSON_KQ"]);
  109. max=max>person?max:person;
  110. total+=person;
  111. sArr[0].data.push({value:person,data:{bd:utils.changeQ(item["PERSON_BD"]),kq:utils.changeQ(item["PERSON_KQ"]),text:jsonParam.title,style:jsonParam.style,time:data["APPEAR_TIME"]}});
  112. xAxis.push({value:subStrDept(item["DEPT_NAME"]),number:jsonParam.number,compId:item["COMP_ID"]});
  113. }
  114. max=(parseInt(max/10)+1)*10;
  115. pageParam.opParams={
  116. title:"起始:"+data["SEND_TIME"]+":00"+" 截止:"+data["APPEAR_TIME"],//标题
  117. subtext:"投入人员:"+total+"(位)",
  118. saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
  119. unit:"条",//单位
  120. leArr:["应急人员"],//图例
  121. xAxis:xAxis,//x轴
  122. sArr:sArr,//主数据
  123. show:false,
  124. legendColor:legendC, //图例字体颜色
  125. xAxisColor:xAxisC, //X轴字体颜色
  126. yAxisColor:yAxisC, //Y轴字体颜色
  127. max:max,
  128. min:0,
  129. isVertical:true
  130. };
  131. chart=getEchart($("#i_page_chart"),getOption,pageParam.opParams,null);
  132. setTitle();
  133. bindEvent();
  134. },"json");
  135. }
  136. function setTitle(){
  137. $("#i_page_head_title").find("h2").remove();
  138. $("#i_page_head_title").append("<h2>"+pageParam.title+"应急人员投入统计</h2>");
  139. }
  140. function bindEvent(){
  141. chart.on("click",function(params){
  142. var pathStr=url["http_path"]+"page/cockpit/echart_maticView/emergercy_source/alert_person_pie_chart.html?"+encodeURI($.param(params.data.data));
  143. utils.openIframe(pathStr);
  144. });
  145. $(window).resize(function(){
  146. chart.resize();
  147. });
  148. }
  149. //dwr推送方法
  150. function dwrData(number){
  151. if(number== pageParam.number){
  152. loadChart(pageParam);
  153. }
  154. }
  155. function subStrDept(str){
  156. str=str.replace("供电局","");
  157. str=str.replace("供电所","");
  158. return str;
  159. }
  160. */
  161. </script>
  162. </body>
  163. </html>