123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>变电站停运曲线图</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/dist/echarts-all.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/chart/line.js"></script>
- <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
- <!-- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.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/scripts/qui/libs/skins/flatBlue/style1.css" />
- </head>
- <body>
- <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 id="i_page_head_subtitle"></div>
- </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.style=utils.resolveUrl()["style"]||"style1";
- pageParam.title=utils.resolveUrl()["title"]||"广东电网";
- pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
- pageParam.startTime=start;
- pageParam.endTime=end;
- init();
- });
- function init(){
- loadChart(pageParam);
- }
- function loadChart(jsonParam){
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getCompResentNRecodesInfo",{charType:"biandianzhantingyun",sepratestr:"-",name:"getProiedRecodesAfterNumber",parentId:"11",start:jsonParam.startTime,end:jsonParam.endTime,viewName:"SUBSTATION_STOPPAGE_RECOVERY_VIEW-SUBSTATION_STOPPAGE_RECOVERY_VIEW"},function(result){
- if(result.rows.length==0){
- zeroChart();
- return;
- }
-
- var sArr=[{type:"line",name:"停运数",data:[],
- itemStyle: {
- normal: {color:pageStyle[jsonParam.style]["chartColor"][0]}}
- },
- {type:"line",name:"未恢复",data:[],
- itemStyle: {
- normal: {color:pageStyle[jsonParam.style]["chartColor"][1]}}
- }];
- var xAxis=[];
- var data=result.rows[0];
- for(var index=0,len=result.rows.length;index<len;index++){
- var item=result.rows[index];
- sArr[0].data.push(utils.changeQ(item["PRESSURE_LOSS_ONE"])+utils.changeQ(item["PRESSURE_LOSS_TWO"])+utils.changeQ(item["PRESSURE_LOSS_THREE"])+utils.changeQ(item["PRESSURE_LOSS_FOUR"]));
- sArr[1].data.push(utils.changeQ(item["NO_RECOVER_ONE"])+utils.changeQ(item["NO_RECOVER_TWO"])+utils.changeQ(item["NO_RECOVER_THREE"])+utils.changeQ(item["NO_RECOVER_FOUR"]));
- xAxis.push(item["APPEAR_TIME"]);
- }
-
- var tempArr= result.rows.sort(sortFn);
- opParams={
- title:"停运最多时间:"+tempArr[0]["APPEAR_TIME"],//标题
- subtext:"当前停运最多单位:"+/* (result["max"]["DEPT_NAME"] || "广东")+(result["max"]["sum"] || "100") */+ "(座)",
- unit:"座",//单位
- leArr:["停运数","未恢复"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- chart=getEchart($("#i_page_chart"),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(){
- chart.resize();
- });
- }
-
- </script>
- </body>
- </html>
|