123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>应急装备投入039</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/bar.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" />
- <!-- dwr 实现消息推送功能 star-->
- <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
- <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
- <!-- dwr 实现消息推送功能 end-->
- <!-- 驾驶舱与首页显示的样式 star -->
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/cockpitANDmainIndex.js"></script>
- <!-- 驾驶舱与首页显示的样式 end -->
- <!-- 驾驶舱展示样式 start -->
- <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/dialog/gis_chart.css" />
- <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_person_into_child_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;
- }
- veriColor(); //根据首页的传值判断样式
- removeNoData();
- var sArr=[{type:"bar",name:"应急人员",data:[],
- barMaxWidth:40,
- itemStyle: {
- normal: {borderWidth: 1,
- borderColor:"tomato",
- color: pageStyle[jsonParam.style]["chartColor"][0],
- label : { show : true,
- position:"top",
- textStyle: {
- color: "rgb(255, 255, 255)",
- fontSize: 14,
- fontStyle: "normal",
- fontWeight: "bold"
- }
- }
- }}
- }];
- var xAxis=[];
- var data=result.rows[0];
- //
- // PERSON_BD,PERSON_KQ, ------已经人员
- // CAR_BD,CAR_KQ, ------应急车辆
- // FADIAN_CAR_BD,FADIAN_CAR_KQ, ------应急发电车
- // FADIAN_JI_BD,FADIAN_JI_KQ ------应急发电机
-
- // var bdfdj=utils.changeQ(item["FADIAN_CAR_BD"])+utils.changeQ(item["FADIAN_CAR_KQ"]);
- // var bdfdc=utils.changeQ(item["FADIAN_JI_BD"])+utils.changeQ(item["FADIAN_JI_KQ"]);
- var total=0;
- var max=0;
- for(var index=0,len=result.rows.length;index<len;index++){
- var item=result.rows[index];
- var person=utils.changeQ(item["PERSON_BD"])+utils.changeQ(item["PERSON_KQ"]);
- max=max>person?max:person;
- total+=person;
- sArr[0].data.push({value:person,data:{bd:utils.changeQ(item["PERSON_BD"]),kq:utils.changeQ(item["PERSON_KQ"]),text:jsonParam.title,style:jsonParam.style,time:data["APPEAR_TIME"]}});
- xAxis.push({value:subStrDept(item["DEPT_NAME"]),number:jsonParam.number,compId:item["COMP_ID"]});
-
-
- }
- max=(parseInt(max/10)+1)*10;
- pageParam.opParams={
- title:"起始:"+data["SEND_TIME"]+":00"+" 截止:"+data["APPEAR_TIME"],//标题
- subtext:"投入人员:"+total+"(位)",
- saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
- unit:"条",//单位
- leArr:["应急人员"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr,//主数据
- show:false,
- legendColor:legendC, //图例字体颜色
- xAxisColor:xAxisC, //X轴字体颜色
- yAxisColor:yAxisC, //Y轴字体颜色
- max:max,
- min:0,
- isVertical:true
- };
- chart=getEchart($("#i_page_chart"),getOption,pageParam.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/alert_person_pie_chart.html?"+encodeURI($.param(params.data.data));
- utils.openIframe(pathStr);
- });
- $(window).resize(function(){
- chart.resize();
- });
- }
- //dwr推送方法
- function dwrData(number){
- if(number== pageParam.number){
- loadChart(pageParam);
- }
- }
- function subStrDept(str){
- str=str.replace("供电局","");
- str=str.replace("供电所","");
- return str;
- }
- */
-
- </script>
- </body>
- </html>
|