8aa677c4ae2dc85450d03591c5882123c58964a6.svn-base 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>设备受损017</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  9. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  10. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/echarts.js"></script>
  11. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/echarts-all.js"></script>
  12. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/chart/bar.js"></script>
  13. <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
  14. <!-- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.js"></script> -->
  15. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  16. <link rel="stylesheet" type="text/css" href=" /nwyj/css/cockpit/commom/ehcartPage.css" />
  17. <link rel="stylesheet" type="text/css" href=" /nwyj/scripts/qui/libs/skins/flatBlue/style1.css" />
  18. <<!-- link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css"> -->
  19. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  20. <!-- <style type="text/css">
  21. .c_page_head{background-color: rgb(0,30,80);line-height: 30px;}
  22. .c_page_close{margin-top: 3px;right: 5px}
  23. .c_page_main{outline: 2px red solid;}
  24. </style> -->
  25. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
  26. </head>
  27. <body style="background-color: rgb(25,39,53)">
  28. <div id="i_page_main" class="c_page_main">
  29. <div id="i_page_head" class="c_page_head">
  30. <div id="i_page_head_title">
  31. </div>
  32. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  33. <div id="i_page_chart" class="c_page_chart">
  34. </div>
  35. </div>
  36. <script type="text/javascript">
  37. var pageParam={};
  38. var chart=null;
  39. var utils=new Util();
  40. $(function(){
  41. pageParam=utils.resolveUrl();
  42. init();
  43. });
  44. function init(){
  45. loadChart(pageParam);
  46. }
  47. function loadChart(jsonParam){
  48. $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getChildDataByWarnningNumber",{
  49. charType:"shebeisousuntype",
  50. name:"getChildRecodeSumData",
  51. compId:jsonParam["compId"],
  52. parentId:jsonParam["parentId"],
  53. number:jsonParam.number,
  54. viewName:"REPORT_LINE_DAOGAN_VIEW"
  55. },function(result){
  56. if(result.rows.length==0){
  57. zeroChart();
  58. return;
  59. }
  60. var sArr=[{type:"bar",data:[],
  61. barMaxWidth:40,
  62. radius : "55%",
  63. center: ["50%", "60%"],
  64. itemStyle: {
  65. normal: {borderWidth: 1,borderColor:"tomato",
  66. color: pageStyle[jsonParam.style]["chartColor"][0],
  67. label : { show : true,
  68. position: "top",
  69. textStyle: {fontSize: 14,fontStyle: "normal",fontWeight: "bold"}
  70. }
  71. }
  72. }
  73. }];
  74. var xAxis=["铁塔倒塌","铁塔变形","断杆","倒杆","电杆倾斜"];
  75. var data=result.rows[0];
  76. var temp=utils.changeQ(data["tietadaota"]);
  77. sArr[0].data.push({value:temp});
  78. temp=utils.changeQ(data["tietabianxing"]);
  79. sArr[0].data.push({value:temp});
  80. temp=utils.changeQ(data["duangan"]);
  81. sArr[0].data.push({value:temp});
  82. temp=utils.changeQ(data["daogan"]);
  83. sArr[0].data.push({value:temp});
  84. temp=utils.changeQ(data["dianganqinxie"]);
  85. sArr[0].data.push({value:temp});
  86. pageParam.opParams={
  87. title:"截止时间:"+data["APPEAR_TIME"],//标题
  88. subtext:"当前设备受损数量:"+data["sum"]+" (座)",
  89. unit:"座",//单位
  90. leArr:[],//图例
  91. xAxis:xAxis,//x轴
  92. sArr:sArr,//主数据
  93. show:false,
  94. legendColor:pageParam["legendColor"], //图例字体颜色
  95. xAxisColor:pageParam["xAxisColor"], //X轴字体颜色
  96. yAxisColor:pageParam["yAxisColor"] //Y轴字体颜色
  97. };
  98. chart=getEchart($("#i_page_chart"),getOption,pageParam.opParams,null);
  99. setTitle();
  100. close();
  101. },"json");
  102. }
  103. /**
  104. *设置标题
  105. */
  106. function setTitle(){
  107. $("#i_page_head_title").find("h2").remove();
  108. $("#i_page_head_title").append("<h2>"+pageParam.title+"设备受损统计</h2>");
  109. }
  110. </script>
  111. </body>
  112. </html>