12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>设备受损019</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/page/cockpit/echarts-2.2.7/build/dist/echarts-all.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/src/chart/gauge.js"></script>
- <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
- <!-- <script type="text/javascript" src="/nwyj/scripts/cockpit/echarts/echatsPulic.js"></script> -->
- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.js"></script>
-
- <style type="text/css">
- html,body {width: 100%;height: 100%;}
- .c_common{width: 100%;height: 100%;display: inline-block;}
- </style>
- </head>
- <body>
- <div id="i_equipment_loss_guage" class="c_equipment_loss_guage_bar c_common"></div>
- <script type="text/javascript">
-
- $(function(){
- equipmentLossGuageeInit();
- });
-
- function equipmentLossGuageeInit(){
- $.post("/nwyj/ws/ChartServiceImpl/ChartServiceImpl/getChildDataOrSelfByWarnningNumber",{name:"getRecodeSumData",number:"防风防汛-F-2016-5",viewName:"REPORT_LINE_DAOGAN_VIEW"},function(result){
- if(result.rows.length==0){
- zeroChart();
- return;
- }
-
-
- var sArr=[{
- name:"恢复率",
- type:"gague",
- detail : {formatter:"{value}%"},
- data:[]
- }];
- var xAxis=[];
- var data=result.rows[0];
- var sum=changeQ(data["PLON_DAOTA_500"])+changeQ(data["PLON_BIANXING_500"])+changeQ(data["PLON_DAOTA_200"])+changeQ(data["PLON_BIANXING_200"])+changeQ(data["PLON_DAOTA_110"])+
- changeQ(data["PLON_BIANXING_110"])+changeQ(data["DUANGAN_110"])+changeQ(data["DAOGAN_110"])+changeQ(data["DIANGAN_QIGNXIE_110"])+changeQ(data["PLON_DAOTA_35"])+
- changeQ(data["PLON_BIANXING_35"])+changeQ(data["DUANGAN_35"])+changeQ(data["DAOGAN_35"])+changeQ(data["DIANGAN_QIGNXIE_35"]);
- var un=changeQ(data["PLON_DAOTA_10"])+changeQ(data["PLON_BIANXING_10"])+changeQ(data["DUANGAN_10"])+changeQ(data["DAOGAN_10"])+changeQ(data["DIANGAN_QIGNXIE_10"])+
- changeQ(data["DAUNGAN_DIYA"])+changeQ(data["DAOGAN_DIYA"])+changeQ(data["QINGGAN_DIYA"]);
-
- sArr[0].data.push({name:"回复率",value:(1-un/sum)*100});
- opParams={
- title:"广东",//标题
- unit:"",//单位
- leArr:["恢复率"],//图例
- xAxis:xAxis,//x轴
- sArr:sArr//主数据
- };
- // alert(JSON.stringify(opParams));
- equipmentLossGuageChart=getEchart($("#i_equipment_loss_guage"),getOption,opParams,null);
- $(window).resize(function(){
- equipmentLossGuageChart.resize();
- });
- },"json");
- }
-
- </script>
- </body>
- </html>
|