123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>95598报障统计</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" />
- <!--框架必需start 扁平风格-->
- <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <!-- <link href="/nwyj/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="/nwyj/scripts/qui/" scrollerY="false" scrollerX="false"/> -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <!--自动提示框start-->
- <script type='text/javascript' src='/nwyj/scripts/qui/libs/js/form/suggestion.js'></script>
- <!--自动提示框end-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!-- 日期选择框start -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!-- 日期选择框end -->
- <script type="text/javascript" src="/nwyj/scripts/cockpit/search/public_search_char.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/search/char_search.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 -->
- <script type="text/javascript" src="/nwyj/scripts/cockpit/search/search_util.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="triangleOut" class="triangle"></div>
- <div id="searchByTime" class="sbt">
- <span>开始时间:</span><input type="text" id="beginTime" class="date dt" dateFmt="yyyy-MM-dd"/>
- <br>
- <span>结束时间:</span><input type="text" id="endTime" class="date dt" dateFmt="yyyy-MM-dd"/>
- <br>
- <div class="sb"><button id="search">查询</button></div>
- <div class="triangleIn"></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.deptId=utils.resolveUrl()["dept_id"]
- pageParam.startTime=start;
- pageParam.endTime=end;
- init();
- });
- function init(){
- loadChart(pageParam);
- }
-
-
- function loadChart(jsonParam){
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getCall95598Info",{compId:jsonParam.deptId,startTime:jsonParam.startTime,endTime:jsonParam.endTime},function(result){
- if("FAILURE"==result.state)
- {
- zeroChartIntoParam("获取95598数据异常");
- return;
- }
- if(result.rows.length==0){
- zeroChartIntoParam("暂无填报数据");
- return;
- }
- veriColor(); //根据首页的传值判断样式
- removeNoData();
-
- veriColor(); //根据首页的传值判断样式
-
- var series = [
- {"name":"报障数量",
- "type":"bar",
- "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"
- }
- }
- }
- },
- "data":[],
- }
- ];
- var data=result.rows;
- var xAxis=[];
- var count=0;
- var max=0;
- for(var index=0,len=data.length;index<len;index++){
- count+=utils.changeQ(data[index]["count"]);
- series[0].data.push(utils.changeQ(data[index]["count"]));
- xAxis.push(subStrDept(data[index]["deptName"]));
- max = max < utils.changeQ(data[index]["count"]) ? utils.changeQ(data[index]["count"]) : max;
- }
- max=(parseInt(max/10)+1)*10;
- opParams={
- title:"时间段:"+jsonParam.startTime+"到"+jsonParam.endTime,//标题 */
- subtext:"95598总报障数:"+count+" (条)",
- saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
- unit:"条",//单位
- leArr:["报障数量"],//图例
- xAxis:xAxis,//x轴
- sArr:series,//主数据
- show:false,
- legendColor:legendC, //图例字体颜色
- xAxisColor:xAxisC, //X轴字体颜色
- yAxisColor:yAxisC, //Y轴字体颜色
- min:0,
- max:max,
- isVertical:true,
- fold:1
- };
- chart=getEchart($("#i_page_chart"),getOption,opParams,null);
- setTitle();
- },"json");
- bindEvent();
- }
- /**
- *设置标题
- */
- function setTitle(){
- $("#i_page_head_title").find("h2").remove();
- $("#i_page_head_title").append("<h2>客服报障统计</h2>");
- }
- function bindEvent(){
- $(window).resize(function(){
- chart.resize();
- });
-
- }
- $("#search").click(function(){
- var start1 = $("#beginTime").val()+" 00:00:00";
- var end1 = $("#endTime").val()+" 23:59:59";
- pageParam.style=utils.resolveUrl()["style"]||"style1";
- pageParam.title=utils.resolveUrl()["title"]||"广东电网";
- pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
- pageParam.deptId=utils.resolveUrl()["dept_id"];
- pageParam.startTime=start1;
- pageParam.endTime=end1;
- loadChart(pageParam);
-
- })
- /* function dwrData(number){
- loadChart(pageParam);
- }
- */
- function subStrDept(str){
- str=str.replace("供电局","");
- str=str.replace("供电所","");
- return str;
- }
-
- </script>
- </body>
- </html>
|