123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>设备受损016</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>
-
- <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="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(){
- if(utils.resolveUrl().dataSourceState==0){
- loadChart(pageParam);
- }else{
- changeSysDataLoadChart(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];
- setTitle();
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getChildDataOrSelfByWarnningNumber",{charType:"shebeisousun",name:"getRecodeSumData",number:jsonParam.number,isalert:pageParam.isalert,compId:jsonParam.compId,viewName:"REPORT_LINE_DAOGAN_VIEW"},function(result){
- if(result.rows.length==0){
- zeroChart();
- return;
- }
- removeNoData();
- 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 data=result.rows[0];
- var temp=utils.changeQ(data["main"]);
- /* sArr[0].data.push({name:"主网",value:temp,
- data:{
- number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title
- },
- itemStyle: {
- normal: {color: pageStyle[jsonParam.style]["chartColor"][0] }},
- number:jsonParam.number
- });
- temp=utils.changeQ(data["help"])
- sArr[0].data.push({name:"配网",value:temp,
- data:{
- number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title
- },
- itemStyle: {
- normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}},
- number:jsonParam.number
- }); */
-
- /* sArr = [{ name:'主网', type:'pie',
- radius:[0, 70], x:'20%', width:'40%', funnelAlign:'right',
- itemStyle:{ normal:{ label:{ position:'inner',formatter: "{b} : {c} \n({d}%)" },labelLine:{ show:false } } },
- data:[ {value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
- name:'500kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
- name:'220kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}} ]},
- { name:'配网', type:'pie', radius:[100, 140], x:'60%', width:'35%', funnelAlign:'left', max:1048,
- itemStyle:{ normal:{ label:{ formatter: "{b} : {c} \n({d}%)" } } },
- data:[{value:(utils.changeQ(data.PLON_DAOTA_110) +
- utils.changeQ(data.PLON_BIANXING_110) +
- utils.changeQ(data.DUANGAN_110) +
- utils.changeQ(data.DAOGAN_110) +
- utils.changeQ(data.DIANGAN_QIGNXIE_110)),
- name:'110kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_35) +
- utils.changeQ(data.PLON_BIANXING_35) +
- utils.changeQ(data.DUANGAN_35) +
- utils.changeQ(data.DAOGAN_35) +
- utils.changeQ(data.DIANGAN_QIGNXIE_35)),
- name:'35kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_10) +
- utils.changeQ(data.PLON_BIANXING_10) +
- utils.changeQ(data.DUANGAN_10) +
- utils.changeQ(data.DAOGAN_10) +
- utils.changeQ(data.DIANGAN_QIGNXIE_10)),
- name:'10kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.DAUNGAN_DIYA) +
- utils.changeQ(data.DAOGAN_DIYA) +
- utils.changeQ(data.QINGGAN_DIYA)),
- name:'低压',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}}]
- }
- ]; */
-
- sArr = [{ name:'设备受损统计', type:'pie', radius:"55%", x:'60%', width:'35%', funnelAlign:'left', max:1048,
- itemStyle:{ normal:{ label:{ formatter: "{b} : {c} ({d}%)" } } },
- data:[{value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
- name:'500kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
- name:'220kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_110) +
- utils.changeQ(data.PLON_BIANXING_110) +
- utils.changeQ(data.DUANGAN_110) +
- utils.changeQ(data.DAOGAN_110) +
- utils.changeQ(data.DIANGAN_QIGNXIE_110)),
- name:'110kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_35) +
- utils.changeQ(data.PLON_BIANXING_35) +
- utils.changeQ(data.DUANGAN_35) +
- utils.changeQ(data.DAOGAN_35) +
- utils.changeQ(data.DIANGAN_QIGNXIE_35)),
- name:'35kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_10) +
- utils.changeQ(data.PLON_BIANXING_10) +
- utils.changeQ(data.DUANGAN_10) +
- utils.changeQ(data.DAOGAN_10) +
- utils.changeQ(data.DIANGAN_QIGNXIE_10)),
- name:'10kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.DAUNGAN_DIYA) +
- utils.changeQ(data.DAOGAN_DIYA) +
- utils.changeQ(data.QINGGAN_DIYA)),
- name:'低压',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}}]
- }
- ];
-
-
- pageParam.opParams={
- //title:"截止:"+data["APPEAR_TIME"],//标题
- title:"起始时间:"+data["SEND_TIME"]+":00"+"\n截止时间:"+data["APPEAR_TIME"],//标题
- subtext:"设备受损总数:"+data["sum"]+"(基/根)",
- saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
- unit:"基/根",//单位
- leArr:["500kV","220kV","110kV","35kV","10kV","低压"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- chart=getEchart($("#i_page_chart"),getOption11,pageParam.opParams,chart);
- $(window).resize(function(){
- chart.resize();
- });
- //bindEvent();
- },"json");
- };
-
- /**
- *设置标题
- */
- function setTitle(){
- $("#i_page_head_title").find("h2").remove();
- if(pageParam.title=="广东电网有限责任公司"){
- pageParam.title="广东电网公司";
- }
- $("#i_page_head_title").append("<h2>"+pageParam.title+"主配网设备受损统计</h2>");
- }
- function bindEvent(){
- chart.on("click",function(params){
- //if(params.seriesName=="主网"){
- var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/equipment_stop_group_main_grid.html?"+encodeURI($.param(params.data.data));
- utils.openIframe(pathStr)
- //}else{
- //var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/equipment_stop_group_help_grid.html?"+encodeURI($.param(params.data.data));
- //utils.openIframe(pathStr)
- //}
-
- });
-
- }
- /*dwr推送人工数据方法 */
- function dwrData(number){
- if(0!=top.dataSourceState) return;
- if(number== pageParam.number){
- loadChart(pageParam);
- }
- }
- /*dwr推送系统数据方法 */
- function dwrSysData(number){
- if(1!=top.dataSourceState) return;
- //如果需要关联通知单,放开注释即可
- // if(number== pageParam.number){
- changeSysData(pageParam);
- // }
- }
-
- /**********************************************************************************************************/
-
- function changeSysData(number){
- pageParam.number=number;
- changeSysDataLoadChart(pageParam)
- }
- function changeSysDataLoadChart(jsonParam){
- setTitle();
- if("8F6F2D6B24494CB6B1F1E0931E7AF87D"!= jsonParam.compId){
- zeroChartIntoParam("本单位未提供系统数据源");
- return;
- }
- $.post("/nwyj/ws/SystemDataSourceChartServiceImpl/SystemDataSourceChartServiceImpl/getDaoGanReportDeptByMainAndHelpInfo",
- {compId:jsonParam.compId,startTime:jsonParam.startTime,endTime:jsonParam.endTime},function(result){
- if("FAILURE"==result.state){
- zeroChartIntoParam(result.rows);
- return;
- }
- if(result.rows.length==0){
- zeroChart();
- return;
- }
- removeNoData();
- 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 data=result.rows[0];
- var temp=utils.changeQ(data["main"]);
- sArr[0].data.push({name:"主网",value:temp,
- data:{
- number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- text: pageParam.title
- },
- itemStyle: {
- normal: {color: pageStyle[jsonParam.style]["chartColor"][0] }},
- number:jsonParam.number
- });
- temp=utils.changeQ(data["help"])
- sArr[0].data.push({name:"配网",value:temp,
- data:{
- number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- text: pageParam.title
- },
- itemStyle: {
- normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}},
- number:jsonParam.number
- });
- /* var date=new Date();
- su = new SearchUtil();
- var dateStr = su.getNowFormatDateTime(date); */
- /* sArr = [{ name:'主网', type:'pie',
- radius:[0, 70], x:'20%', width:'40%', funnelAlign:'right',
- itemStyle:{ normal:{ label:{ position:'inner',formatter: "{b} : {c} \n({d}%)" },labelLine:{ show:false } } },
- data:[ {value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
- name:'500kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
- name:'220kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}} ]},
- { name:'配网', type:'pie', radius:[100, 140], x:'60%', width:'35%', funnelAlign:'left', max:1048,
- itemStyle:{ normal:{ label:{ formatter: "{b} : {c} \n({d}%)" } } },
- data:[{value:(utils.changeQ(data.PLON_DAOTA_110) +
- utils.changeQ(data.PLON_BIANXING_110) +
- utils.changeQ(data.DUANGAN_110) +
- utils.changeQ(data.DAOGAN_110) +
- utils.changeQ(data.DIANGAN_QIGNXIE_110)),
- name:'110kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_35) +
- utils.changeQ(data.PLON_BIANXING_35) +
- utils.changeQ(data.DUANGAN_35) +
- utils.changeQ(data.DAOGAN_35) +
- utils.changeQ(data.DIANGAN_QIGNXIE_35)),
- name:'35kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_10) +
- utils.changeQ(data.PLON_BIANXING_10) +
- utils.changeQ(data.DUANGAN_10) +
- utils.changeQ(data.DAOGAN_10) +
- utils.changeQ(data.DIANGAN_QIGNXIE_10)),
- name:'10kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.DAUNGAN_DIYA) +
- utils.changeQ(data.DAOGAN_DIYA) +
- utils.changeQ(data.QINGGAN_DIYA)),
- name:'低压',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}} ]
- }
- ]; */
-
-
- sArr = [{ name:'设备受损统计', type:'pie', radius:"55%", x:'60%', width:'35%', funnelAlign:'left', max:1048,
- itemStyle:{ normal:{ label:{ formatter: "{b} : {c} ({d}%)" } } },
- data:[{value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
- name:'500kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
- name:'220kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"主网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_110) +
- utils.changeQ(data.PLON_BIANXING_110) +
- utils.changeQ(data.DUANGAN_110) +
- utils.changeQ(data.DAOGAN_110) +
- utils.changeQ(data.DIANGAN_QIGNXIE_110)),
- name:'110kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_35) +
- utils.changeQ(data.PLON_BIANXING_35) +
- utils.changeQ(data.DUANGAN_35) +
- utils.changeQ(data.DAOGAN_35) +
- utils.changeQ(data.DIANGAN_QIGNXIE_35)),
- name:'35kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.PLON_DAOTA_10) +
- utils.changeQ(data.PLON_BIANXING_10) +
- utils.changeQ(data.DUANGAN_10) +
- utils.changeQ(data.DAOGAN_10) +
- utils.changeQ(data.DIANGAN_QIGNXIE_10)),
- name:'10kV',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}},
- {value:(utils.changeQ(data.DAUNGAN_DIYA) +
- utils.changeQ(data.DAOGAN_DIYA) +
- utils.changeQ(data.QINGGAN_DIYA)),
- name:'低压',
- data:{ number:jsonParam.number,
- compId:jsonParam.compId,
- level:"配网",
- recordId:data["REPORT_ID"],
- text: pageParam.title}}]
- }
- ];
-
- pageParam.opParams={
- title:"截止时间:"+subDate(data["APPEAR_TIME"]),//标题
- subtext:"设备受损总数:"+data["sum"]+"(基/根)",
- saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
- unit:"基/根",//单位
- leArr:["500kV","220kV","110kV","35kV","10kV","低压"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- chart=getEchart($("#i_page_chart"),getOption11,pageParam.opParams,chart);
- setTitle();
- bindSysEvent();
- },"json");
- };
-
- function bindSysEvent(){
- chart.on("click",function(params){
- //if(params.data.name=="主网"){
- var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/sys_equipment_stop_group_main_grid.html?"+encodeURI($.param(params.data.data));
- utils.openIframe(pathStr)
- //}else{
- //var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/sys_equipment_stop_group_help_grid.html?"+encodeURI($.param(params.data.data));
- //utils.openIframe(pathStr)
- //}
-
- });
- $(window).resize(function(){
- chart.resize();
- });
- }
- function subDate(str){
- if(str==null || str==undefined) return "-";
- if(str.indexOf(".")>0){
- return str.substring(0,str.indexOf("."));
- }
- else{
- return str;
- }
- }
-
- </script>
- </body>
- </html>
|