123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>设备受损017</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/source/echarts.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/echarts-all.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/source/chart/pie.js"></script>
- <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.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/page/cockpit/webgis/js/gisgrid.css"> -->
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
- <style type="text/css">
- .c_page_head{background-color: rgb(0,30,80);line-height: 30px;}
- </style>
- <!-- .c_page_close{margin-top: 3px;right: 5px}
- .c_page_main{outline: 2px red solid;} -->
-
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
-
- </head>
- <body style="background-color: rgb(25,39,53)">
- <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><div id="i_page_colse" class=" c_page_close index_icon_close_content"></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=utils.resolveUrl();
- init();
- });
- function init(){
- loadChart(pageParam);
- }
- function loadChart(jsonParam){
- var sArr=[{type:"pie",data:[],
- radius : "55%",
- center: ["50%", "60%"],
- itemStyle: {
- normal: {borderWidth: 1,borderColor:"tomato",
- label : { show : true,
- position: "insideTop",
- textStyle: {fontSize: 14,fontStyle: "normal",fontWeight: "bold"},
- formatter: "{b} : {c} ({d}%)"
- }
- }
- }
- }];
- var xAxis=["停电数","未恢复数"];
- var temp=utils.changeQ(jsonParam["YH_TD_COUNT"]);
- sArr[0].data.push({name:"停电数",value:temp,
- itemStyle: {
- normal: {color: pageStyle[jsonParam.style]["chartColor"][0]}},
- number:jsonParam.number
- });
- temp=utils.changeQ(jsonParam["YH_UNRECOVERED"]);
- sArr[0].data.push({name:"未恢复数",value:temp,
- itemStyle: {
- normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}},
- number:jsonParam.number
- });
- pageParam.opParams={
- title:/* "截止时间:"+jsonParam["APPEAR_TIME"] */"",//标题
- subtext:/* "当前设备受损数量:"+jsonParam["sum"]+" (座)" */"",
- unit:"座",//单位
- leArr:[],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- setTitle();
- close();
- chart=getEchart($("#i_page_chart"),getOption11,pageParam.opParams,null);
- bindEvent();
- }
- function setTitle(){
- $("#i_page_head_title").find("h2").remove();
- var title = pageParam.text;
- $("#i_page_head_title").append("<h2>"+ title +"用户停电统计图</h2>");
- }
- function bindEvent(){
- $(window).resize(function(){
- chart.resize();
- });
- }
-
- </script>
- </body>
- </html>
|