123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>变电站停运010</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/page/cockpit/echarts-2.2.7/build/dist/echarts-all.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/chart/bar.js"></script>
- <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
- <!-- <script type="text/javascript" src="/nwyj/scripts/cockpit/echarts/echatsPulic.js"></script> -->
- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.js"></script>
-
- <style type="text/css">
- html,body {width: 100%;height: 100%;}
- .c_page_main{width: 100%;height: 100%;display: inline-block;}
- </style>
- </head>
- <body>
- <div id="i_page_main" class="c_page_main"></div>
- <script type="text/javascript">
-
- var pageParam={};
- var chart=null;
- $(function(){
- pageParam.style="style1";
- pageParam.number=warnningnumber;
- init();
- });
- function init(){
- loadChart(pageParam);
- }
-
- function loadChart(jsonParam){
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getChildDataOrSelfByWarnningNumber",{name:"getRecodeSumData",number:jsonParam.number,viewName:"SUBSTATION_STOPPAGE_RECOVERY_VIEW"},function(result){
- if(result.rows.length==0){
- zeroChart();
- return;
- }
-
-
- var sArr=[{type:"pie",name:"已恢复",data:[]}];
- var xAxis=[];
- var item=result.rows[0];
- var str="PRESSURE_LOSS_";
- var count=0;
- var tempLabel=[{strLabel:"ONE",level:"500kV"},{strLabel:"TWO",level:"220kV"},{strLabel:"THREE",level:"110kV"},{strLabel:"FOUR",level:"35kV"}];
- for(var index=0,len=tempLabel.length;index<len;index++){
- if(changeQ(item[str+tempLabel[index].strLabel])!=0){
- sArr[0].data.push({value:changeQ(item[str+tempLabel[index].strLabel]),
- name:tempLabel[index].name,
- compId:item["PARENT_ID"],
- number:jsonParam.number,
- itemStyle: {
- normal: {color:pageStyle[jsonParam.style]["chartColor"][count]}}
- });
- count++;
- }
- }
-
-
-
-
- var opParams={
- title:"广东",//标题
- unit:"座",//单位
- leArr:["已恢复","未恢复"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- chart=getEchart($("#i_page_main"),getOption,opParams,null);
- setTitle();
- bindEvent();
- },"json");
- }
- function setTitle(){
- $("#i_page_head_title").find("h2").remove();
- $("#i_page_head_title").append("<h2>"+pageParam.title+"变电站恢复率</h2>");
- }
- function bindEvent(){
- $(window).resize(function(){
- subStationEachPressureLossline.resize();
- });
-
- }
-
- </script>
- </body>
- </html>
|