123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <!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.min.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.min.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/chart/pie.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" />
- <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
- <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
- <!-- 驾驶舱与首页显示的样式 star -->
- <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/dialog/gis_chart.css" />
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/cockpitANDmainIndex.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/webgis/js/gis_char_close.js"></script>
- <!-- 驾驶舱与首页显示的样式 end -->
-
- <script type="text/javascript" src="/nwyj/scripts/cockpit/search/search_util.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/amResource/emergency_equipment_into_chart.js"></script>
-
- </head>
- <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);">
- <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();
- var searchUtil = new SearchUtil();
- $(function(){
- pageParam.style=utils.resolveUrl()["style"]||"style1";
- pageParam.title=utils.resolveUrl()["title"]||"广东电网";
- pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
- pageParam.compId=utils.resolveUrl()["dept_id"]||"11";
- pageParam.startTime=start;
- pageParam.endTime=end;
- init();
- });
- function init(){
- loadChart(pageParam);
- }
- function loadChart(jsonParam){
- pageParam.isalert=null;
- if(pageParam.number.split("|")[0]=="预警"){
- pageParam.isalert="0";
- }else{
- pageParam.isalert="1";
- }
- pageParam.number=pageParam.number.split("|")[1];
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getEmergencySourceChartInfo",
- {name:"getEmergencySourceChild",
- compId:jsonParam.compId,
- number:jsonParam.number,
- isalert:pageParam.isalert,
- viewName:"REPORT_YINGJI_ZIYUAN_VIEW"},function(result){
- if(result.rows.length==0){
- zeroChart();
- return;
- }
- removeNoData();
- var totalfdc=0;
- var totalfdj=0;
- for(var index=0,len=result.rows.length;index<len;index++){
- var item=result.rows[index];
- var fdc=utils.changeQ(item["FADIAN_CAR_BD"])+utils.changeQ(item["FADIAN_CAR_KQ"]);
- var fdj=utils.changeQ(item["FADIAN_JI_BD"])+utils.changeQ(item["FADIAN_JI_KQ"]);
- totalfdc+=fdc;
- totalfdj+=fdj;
- }
-
- var sArr=[{type:"pie",name:"应急投入",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 item=result.rows[0];
- sArr[0].data.push({name:"发电车",value:totalfdc,
- itemStyle: {normal: {color: pageStyle[jsonParam.style]["chartColor"][0]}} ,
- data:{text:jsonParam.title,
- number:jsonParam.number}
- });
- sArr[0].data.push({name:"发电机",value:totalfdj,
- itemStyle: {normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}} ,
- data:{text:jsonParam.title, number:jsonParam.number}
- });
- opParams={
- //title:"截止:"+item["APPEAR_TIME"],//标题
- title:"起始:"+item["SEND_TIME"]+":00"+" 截止:"+item["APPEAR_TIME"],//标题
- subtext:"投入发电机:"+totalfdj+" (台);发电车:"+totalfdc+"(辆)",
- saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
- unit:"座",//单位
- leArr:["发电车","发电机"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- chart=getEchart($("#i_page_chart"),getOption11,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(){
-
- chart.on("click",function(params){
- var pathStr=url["http_path"]+"page/cockpit/echart_maticView/emergercy_source/emergency_equipment_into_grid.html?"+encodeURI($.param(params.data.data));
- utils.openIframe(pathStr);
- });
-
- $(window).resize(function(){
- chart.resize();
- });
- }
-
- //dwr推送方法
- function dwrData(number){
- if(number== pageParam.number){
- loadChart(pageParam);
- }
- }
- */
- </script>
- </body>
- </html>
|