0ab19c806b3aa1a932f2ed58daf418a50242ddbc.svn-base 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <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/source/echarts.js"></script>
  10. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/echarts-all.js"></script>
  11. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/chart/pie.js"></script>
  12. <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
  13. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  14. <link rel="stylesheet" type="text/css" href=" /nwyj/css/cockpit/commom/ehcartPage.css" />
  15. <!-- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css"> -->
  16. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  17. <style type="text/css">
  18. .c_page_head{background-color: rgb(0,30,80);line-height: 30px;}
  19. </style>
  20. <!-- .c_page_close{margin-top: 3px;right: 5px}
  21. .c_page_main{outline: 2px red solid;} -->
  22. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
  23. </head>
  24. <body style="background-color: rgb(25,39,53)">
  25. <div id="i_page_main" class="c_page_main">
  26. <div id="i_page_head" class="c_page_head">
  27. <div id="i_page_head_title">
  28. </div>
  29. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  30. <div id="i_page_chart" class="c_page_chart">
  31. </div>
  32. </div>
  33. <script type="text/javascript">
  34. var pageParam={};
  35. var chart=null;
  36. var utils=new Util();
  37. $(function(){
  38. pageParam=utils.resolveUrl();
  39. init();
  40. });
  41. function init(){
  42. loadChart(pageParam);
  43. }
  44. function loadChart(jsonParam){
  45. var sArr=[{type:"pie",data:[],
  46. radius : "55%",
  47. center: ["50%", "60%"],
  48. itemStyle: {
  49. normal: {borderWidth: 1,borderColor:"tomato",
  50. label : { show : true,
  51. position: "insideTop",
  52. textStyle: {fontSize: 14,fontStyle: "normal",fontWeight: "bold"},
  53. formatter: "{b} : {c} ({d}%)"
  54. }
  55. }
  56. }
  57. }];
  58. var xAxis=["停电数","未恢复数"];
  59. var temp=utils.changeQ(jsonParam["YH_TD_COUNT"]);
  60. sArr[0].data.push({name:"停电数",value:temp,
  61. itemStyle: {
  62. normal: {color: pageStyle[jsonParam.style]["chartColor"][0]}},
  63. number:jsonParam.number
  64. });
  65. temp=utils.changeQ(jsonParam["YH_UNRECOVERED"]);
  66. sArr[0].data.push({name:"未恢复数",value:temp,
  67. itemStyle: {
  68. normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}},
  69. number:jsonParam.number
  70. });
  71. pageParam.opParams={
  72. title:/* "截止时间:"+jsonParam["APPEAR_TIME"] */"",//标题
  73. subtext:/* "当前设备受损数量:"+jsonParam["sum"]+" (座)" */"",
  74. unit:"座",//单位
  75. leArr:[],//图例
  76. xAxis:xAxis,//x轴
  77. sArr:sArr//主数据
  78. };
  79. setTitle();
  80. close();
  81. chart=getEchart($("#i_page_chart"),getOption11,pageParam.opParams,null);
  82. bindEvent();
  83. }
  84. function setTitle(){
  85. $("#i_page_head_title").find("h2").remove();
  86. var title = pageParam.text;
  87. $("#i_page_head_title").append("<h2>"+ title +"用户停电统计图</h2>");
  88. }
  89. function bindEvent(){
  90. $(window).resize(function(){
  91. chart.resize();
  92. });
  93. }
  94. </script>
  95. </body>
  96. </html>