7d081de0ce2576abafd8e6091744e92eb519944e.svn-base 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>设备受损016</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  9. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts.min.js"></script>
  10. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.min.js"></script>
  11. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/chart/pie.js"></script>
  12. <script type="text/javascript" src=" /nwyj/page/cockpit/cockpit_echart.js"></script>
  13. <!-- <script type="text/javascript" src=" /nwyj/page/cockpit/webgis/util.js"></script> -->
  14. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  15. <link rel="stylesheet" type="text/css" href=" /nwyj/css/cockpit/commom/ehcartPage.css" />
  16. <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
  17. <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
  18. <script type="text/javascript" src="/nwyj/scripts/cockpit/search/search_util.js" ></script>
  19. </head>
  20. <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);">
  21. <div id="i_page_main" class="c_page_main">
  22. <div id="i_page_head" class="c_page_head">
  23. <div id="i_page_head_title">
  24. </div>
  25. <div id="i_page_head_subtitle"></div>
  26. </div>
  27. <div id="i_page_chart" class="c_page_chart">
  28. </div>
  29. </div>
  30. <script type="text/javascript">
  31. var pageParam={};
  32. var chart=null;
  33. var utils=new Util();
  34. var searchUtil = new SearchUtil();
  35. $(function(){
  36. pageParam.style=utils.resolveUrl()["style"]||"style1";
  37. pageParam.title=utils.resolveUrl()["title"]||"广东电网";
  38. pageParam.number=utils.resolveUrl()["number"]||warnningnumber;
  39. pageParam.compId=utils.resolveUrl()["dept_id"]||11;
  40. pageParam.startTime=start;
  41. pageParam.endTime=end;
  42. init();
  43. });
  44. function init(){
  45. if(utils.resolveUrl().dataSourceState==0){
  46. loadChart(pageParam);
  47. }else{
  48. changeSysDataLoadChart(pageParam);
  49. }
  50. }
  51. function loadChart(jsonParam){
  52. pageParam.isalert=null;
  53. if(pageParam.number.split("|")[0]=="预警"){
  54. pageParam.isalert="0";
  55. }else{
  56. pageParam.isalert="1";
  57. }
  58. pageParam.number=pageParam.number.split("|")[1];
  59. setTitle();
  60. $.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){
  61. if(result.rows.length==0){
  62. zeroChart();
  63. return;
  64. }
  65. removeNoData();
  66. var sArr=[{type:"pie",name:"设备受损",data:[],
  67. radius : "55%",
  68. center: ["50%", "60%"],
  69. itemStyle: {
  70. normal: {borderWidth: 1,borderColor:"tomato",
  71. label : { show : true,
  72. position: "insideTop",
  73. textStyle: {fontSize: 14,fontStyle: "normal",fontWeight: "bold"},
  74. formatter: "{b} : {c} ({d}%)"
  75. }
  76. }
  77. }
  78. }];
  79. var xAxis=[];
  80. var data=result.rows[0];
  81. var temp=utils.changeQ(data["main"]);
  82. /* sArr[0].data.push({name:"主网",value:temp,
  83. data:{
  84. number:jsonParam.number,
  85. compId:jsonParam.compId,
  86. level:"主网",
  87. recordId:data["REPORT_ID"],
  88. text: pageParam.title
  89. },
  90. itemStyle: {
  91. normal: {color: pageStyle[jsonParam.style]["chartColor"][0] }},
  92. number:jsonParam.number
  93. });
  94. temp=utils.changeQ(data["help"])
  95. sArr[0].data.push({name:"配网",value:temp,
  96. data:{
  97. number:jsonParam.number,
  98. compId:jsonParam.compId,
  99. level:"配网",
  100. recordId:data["REPORT_ID"],
  101. text: pageParam.title
  102. },
  103. itemStyle: {
  104. normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}},
  105. number:jsonParam.number
  106. }); */
  107. /* sArr = [{ name:'主网', type:'pie',
  108. radius:[0, 70], x:'20%', width:'40%', funnelAlign:'right',
  109. itemStyle:{ normal:{ label:{ position:'inner',formatter: "{b} : {c} \n({d}%)" },labelLine:{ show:false } } },
  110. data:[ {value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
  111. name:'500kV',
  112. data:{ number:jsonParam.number,
  113. compId:jsonParam.compId,
  114. level:"主网",
  115. recordId:data["REPORT_ID"],
  116. text: pageParam.title}},
  117. {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
  118. name:'220kV',
  119. data:{ number:jsonParam.number,
  120. compId:jsonParam.compId,
  121. level:"主网",
  122. recordId:data["REPORT_ID"],
  123. text: pageParam.title}} ]},
  124. { name:'配网', type:'pie', radius:[100, 140], x:'60%', width:'35%', funnelAlign:'left', max:1048,
  125. itemStyle:{ normal:{ label:{ formatter: "{b} : {c} \n({d}%)" } } },
  126. data:[{value:(utils.changeQ(data.PLON_DAOTA_110) +
  127. utils.changeQ(data.PLON_BIANXING_110) +
  128. utils.changeQ(data.DUANGAN_110) +
  129. utils.changeQ(data.DAOGAN_110) +
  130. utils.changeQ(data.DIANGAN_QIGNXIE_110)),
  131. name:'110kV',
  132. data:{ number:jsonParam.number,
  133. compId:jsonParam.compId,
  134. level:"配网",
  135. recordId:data["REPORT_ID"],
  136. text: pageParam.title}},
  137. {value:(utils.changeQ(data.PLON_DAOTA_35) +
  138. utils.changeQ(data.PLON_BIANXING_35) +
  139. utils.changeQ(data.DUANGAN_35) +
  140. utils.changeQ(data.DAOGAN_35) +
  141. utils.changeQ(data.DIANGAN_QIGNXIE_35)),
  142. name:'35kV',
  143. data:{ number:jsonParam.number,
  144. compId:jsonParam.compId,
  145. level:"配网",
  146. recordId:data["REPORT_ID"],
  147. text: pageParam.title}},
  148. {value:(utils.changeQ(data.PLON_DAOTA_10) +
  149. utils.changeQ(data.PLON_BIANXING_10) +
  150. utils.changeQ(data.DUANGAN_10) +
  151. utils.changeQ(data.DAOGAN_10) +
  152. utils.changeQ(data.DIANGAN_QIGNXIE_10)),
  153. name:'10kV',
  154. data:{ number:jsonParam.number,
  155. compId:jsonParam.compId,
  156. level:"配网",
  157. recordId:data["REPORT_ID"],
  158. text: pageParam.title}},
  159. {value:(utils.changeQ(data.DAUNGAN_DIYA) +
  160. utils.changeQ(data.DAOGAN_DIYA) +
  161. utils.changeQ(data.QINGGAN_DIYA)),
  162. name:'低压',
  163. data:{ number:jsonParam.number,
  164. compId:jsonParam.compId,
  165. level:"配网",
  166. recordId:data["REPORT_ID"],
  167. text: pageParam.title}}]
  168. }
  169. ]; */
  170. sArr = [{ name:'设备受损统计', type:'pie', radius:"55%", x:'60%', width:'35%', funnelAlign:'left', max:1048,
  171. itemStyle:{ normal:{ label:{ formatter: "{b} : {c} ({d}%)" } } },
  172. data:[{value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
  173. name:'500kV',
  174. data:{ number:jsonParam.number,
  175. compId:jsonParam.compId,
  176. level:"主网",
  177. recordId:data["REPORT_ID"],
  178. text: pageParam.title}},
  179. {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
  180. name:'220kV',
  181. data:{ number:jsonParam.number,
  182. compId:jsonParam.compId,
  183. level:"主网",
  184. recordId:data["REPORT_ID"],
  185. text: pageParam.title}},
  186. {value:(utils.changeQ(data.PLON_DAOTA_110) +
  187. utils.changeQ(data.PLON_BIANXING_110) +
  188. utils.changeQ(data.DUANGAN_110) +
  189. utils.changeQ(data.DAOGAN_110) +
  190. utils.changeQ(data.DIANGAN_QIGNXIE_110)),
  191. name:'110kV',
  192. data:{ number:jsonParam.number,
  193. compId:jsonParam.compId,
  194. level:"配网",
  195. recordId:data["REPORT_ID"],
  196. text: pageParam.title}},
  197. {value:(utils.changeQ(data.PLON_DAOTA_35) +
  198. utils.changeQ(data.PLON_BIANXING_35) +
  199. utils.changeQ(data.DUANGAN_35) +
  200. utils.changeQ(data.DAOGAN_35) +
  201. utils.changeQ(data.DIANGAN_QIGNXIE_35)),
  202. name:'35kV',
  203. data:{ number:jsonParam.number,
  204. compId:jsonParam.compId,
  205. level:"配网",
  206. recordId:data["REPORT_ID"],
  207. text: pageParam.title}},
  208. {value:(utils.changeQ(data.PLON_DAOTA_10) +
  209. utils.changeQ(data.PLON_BIANXING_10) +
  210. utils.changeQ(data.DUANGAN_10) +
  211. utils.changeQ(data.DAOGAN_10) +
  212. utils.changeQ(data.DIANGAN_QIGNXIE_10)),
  213. name:'10kV',
  214. data:{ number:jsonParam.number,
  215. compId:jsonParam.compId,
  216. level:"配网",
  217. recordId:data["REPORT_ID"],
  218. text: pageParam.title}},
  219. {value:(utils.changeQ(data.DAUNGAN_DIYA) +
  220. utils.changeQ(data.DAOGAN_DIYA) +
  221. utils.changeQ(data.QINGGAN_DIYA)),
  222. name:'低压',
  223. data:{ number:jsonParam.number,
  224. compId:jsonParam.compId,
  225. level:"配网",
  226. recordId:data["REPORT_ID"],
  227. text: pageParam.title}}]
  228. }
  229. ];
  230. pageParam.opParams={
  231. //title:"截止:"+data["APPEAR_TIME"],//标题
  232. title:"起始时间:"+data["SEND_TIME"]+":00"+"\n截止时间:"+data["APPEAR_TIME"],//标题
  233. subtext:"设备受损总数:"+data["sum"]+"(基/根)",
  234. saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
  235. unit:"基/根",//单位
  236. leArr:["500kV","220kV","110kV","35kV","10kV","低压"],//图例
  237. xAxis:xAxis,//x轴
  238. sArr:sArr//主数据
  239. };
  240. chart=getEchart($("#i_page_chart"),getOption11,pageParam.opParams,chart);
  241. $(window).resize(function(){
  242. chart.resize();
  243. });
  244. //bindEvent();
  245. },"json");
  246. };
  247. /**
  248. *设置标题
  249. */
  250. function setTitle(){
  251. $("#i_page_head_title").find("h2").remove();
  252. if(pageParam.title=="广东电网有限责任公司"){
  253. pageParam.title="广东电网公司";
  254. }
  255. $("#i_page_head_title").append("<h2>"+pageParam.title+"主配网设备受损统计</h2>");
  256. }
  257. function bindEvent(){
  258. chart.on("click",function(params){
  259. //if(params.seriesName=="主网"){
  260. var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/equipment_stop_group_main_grid.html?"+encodeURI($.param(params.data.data));
  261. utils.openIframe(pathStr)
  262. //}else{
  263. //var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/equipment_stop_group_help_grid.html?"+encodeURI($.param(params.data.data));
  264. //utils.openIframe(pathStr)
  265. //}
  266. });
  267. }
  268. /*dwr推送人工数据方法 */
  269. function dwrData(number){
  270. if(0!=top.dataSourceState) return;
  271. if(number== pageParam.number){
  272. loadChart(pageParam);
  273. }
  274. }
  275. /*dwr推送系统数据方法 */
  276. function dwrSysData(number){
  277. if(1!=top.dataSourceState) return;
  278. //如果需要关联通知单,放开注释即可
  279. // if(number== pageParam.number){
  280. changeSysData(pageParam);
  281. // }
  282. }
  283. /**********************************************************************************************************/
  284. function changeSysData(number){
  285. pageParam.number=number;
  286. changeSysDataLoadChart(pageParam)
  287. }
  288. function changeSysDataLoadChart(jsonParam){
  289. setTitle();
  290. if("8F6F2D6B24494CB6B1F1E0931E7AF87D"!= jsonParam.compId){
  291. zeroChartIntoParam("本单位未提供系统数据源");
  292. return;
  293. }
  294. $.post("/nwyj/ws/SystemDataSourceChartServiceImpl/SystemDataSourceChartServiceImpl/getDaoGanReportDeptByMainAndHelpInfo",
  295. {compId:jsonParam.compId,startTime:jsonParam.startTime,endTime:jsonParam.endTime},function(result){
  296. if("FAILURE"==result.state){
  297. zeroChartIntoParam(result.rows);
  298. return;
  299. }
  300. if(result.rows.length==0){
  301. zeroChart();
  302. return;
  303. }
  304. removeNoData();
  305. var sArr=[{type:"pie",name:"设备受损",data:[],
  306. radius : "55%",
  307. center: ["50%", "60%"],
  308. itemStyle: {
  309. normal: {borderWidth: 1,borderColor:"tomato",
  310. label : { show : true,
  311. position: "insideTop",
  312. textStyle: {fontSize: 14,fontStyle: "normal",fontWeight: "bold"},
  313. formatter: "{b} : {c} ({d}%)"
  314. }
  315. }
  316. }
  317. }];
  318. var xAxis=[];
  319. var data=result.rows[0];
  320. var temp=utils.changeQ(data["main"]);
  321. sArr[0].data.push({name:"主网",value:temp,
  322. data:{
  323. number:jsonParam.number,
  324. compId:jsonParam.compId,
  325. level:"主网",
  326. text: pageParam.title
  327. },
  328. itemStyle: {
  329. normal: {color: pageStyle[jsonParam.style]["chartColor"][0] }},
  330. number:jsonParam.number
  331. });
  332. temp=utils.changeQ(data["help"])
  333. sArr[0].data.push({name:"配网",value:temp,
  334. data:{
  335. number:jsonParam.number,
  336. compId:jsonParam.compId,
  337. level:"配网",
  338. text: pageParam.title
  339. },
  340. itemStyle: {
  341. normal: {color: pageStyle[jsonParam.style]["chartColor"][1]}},
  342. number:jsonParam.number
  343. });
  344. /* var date=new Date();
  345. su = new SearchUtil();
  346. var dateStr = su.getNowFormatDateTime(date); */
  347. /* sArr = [{ name:'主网', type:'pie',
  348. radius:[0, 70], x:'20%', width:'40%', funnelAlign:'right',
  349. itemStyle:{ normal:{ label:{ position:'inner',formatter: "{b} : {c} \n({d}%)" },labelLine:{ show:false } } },
  350. data:[ {value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
  351. name:'500kV',
  352. data:{ number:jsonParam.number,
  353. compId:jsonParam.compId,
  354. level:"配网",
  355. recordId:data["REPORT_ID"],
  356. text: pageParam.title}},
  357. {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
  358. name:'220kV',
  359. data:{ number:jsonParam.number,
  360. compId:jsonParam.compId,
  361. level:"配网",
  362. recordId:data["REPORT_ID"],
  363. text: pageParam.title}} ]},
  364. { name:'配网', type:'pie', radius:[100, 140], x:'60%', width:'35%', funnelAlign:'left', max:1048,
  365. itemStyle:{ normal:{ label:{ formatter: "{b} : {c} \n({d}%)" } } },
  366. data:[{value:(utils.changeQ(data.PLON_DAOTA_110) +
  367. utils.changeQ(data.PLON_BIANXING_110) +
  368. utils.changeQ(data.DUANGAN_110) +
  369. utils.changeQ(data.DAOGAN_110) +
  370. utils.changeQ(data.DIANGAN_QIGNXIE_110)),
  371. name:'110kV',
  372. data:{ number:jsonParam.number,
  373. compId:jsonParam.compId,
  374. level:"配网",
  375. recordId:data["REPORT_ID"],
  376. text: pageParam.title}},
  377. {value:(utils.changeQ(data.PLON_DAOTA_35) +
  378. utils.changeQ(data.PLON_BIANXING_35) +
  379. utils.changeQ(data.DUANGAN_35) +
  380. utils.changeQ(data.DAOGAN_35) +
  381. utils.changeQ(data.DIANGAN_QIGNXIE_35)),
  382. name:'35kV',
  383. data:{ number:jsonParam.number,
  384. compId:jsonParam.compId,
  385. level:"配网",
  386. recordId:data["REPORT_ID"],
  387. text: pageParam.title}},
  388. {value:(utils.changeQ(data.PLON_DAOTA_10) +
  389. utils.changeQ(data.PLON_BIANXING_10) +
  390. utils.changeQ(data.DUANGAN_10) +
  391. utils.changeQ(data.DAOGAN_10) +
  392. utils.changeQ(data.DIANGAN_QIGNXIE_10)),
  393. name:'10kV',
  394. data:{ number:jsonParam.number,
  395. compId:jsonParam.compId,
  396. level:"配网",
  397. recordId:data["REPORT_ID"],
  398. text: pageParam.title}},
  399. {value:(utils.changeQ(data.DAUNGAN_DIYA) +
  400. utils.changeQ(data.DAOGAN_DIYA) +
  401. utils.changeQ(data.QINGGAN_DIYA)),
  402. name:'低压',
  403. data:{ number:jsonParam.number,
  404. compId:jsonParam.compId,
  405. level:"配网",
  406. recordId:data["REPORT_ID"],
  407. text: pageParam.title}} ]
  408. }
  409. ]; */
  410. sArr = [{ name:'设备受损统计', type:'pie', radius:"55%", x:'60%', width:'35%', funnelAlign:'left', max:1048,
  411. itemStyle:{ normal:{ label:{ formatter: "{b} : {c} ({d}%)" } } },
  412. data:[{value:(utils.changeQ(data.PLON_DAOTA_500)+utils.changeQ(data.PLON_BIANXING_500)),
  413. name:'500kV',
  414. data:{ number:jsonParam.number,
  415. compId:jsonParam.compId,
  416. level:"主网",
  417. recordId:data["REPORT_ID"],
  418. text: pageParam.title}},
  419. {value:(utils.changeQ(data.PLON_DAOTA_220)+utils.changeQ(data.PLON_BIANXING_220)),
  420. name:'220kV',
  421. data:{ number:jsonParam.number,
  422. compId:jsonParam.compId,
  423. level:"主网",
  424. recordId:data["REPORT_ID"],
  425. text: pageParam.title}},
  426. {value:(utils.changeQ(data.PLON_DAOTA_110) +
  427. utils.changeQ(data.PLON_BIANXING_110) +
  428. utils.changeQ(data.DUANGAN_110) +
  429. utils.changeQ(data.DAOGAN_110) +
  430. utils.changeQ(data.DIANGAN_QIGNXIE_110)),
  431. name:'110kV',
  432. data:{ number:jsonParam.number,
  433. compId:jsonParam.compId,
  434. level:"配网",
  435. recordId:data["REPORT_ID"],
  436. text: pageParam.title}},
  437. {value:(utils.changeQ(data.PLON_DAOTA_35) +
  438. utils.changeQ(data.PLON_BIANXING_35) +
  439. utils.changeQ(data.DUANGAN_35) +
  440. utils.changeQ(data.DAOGAN_35) +
  441. utils.changeQ(data.DIANGAN_QIGNXIE_35)),
  442. name:'35kV',
  443. data:{ number:jsonParam.number,
  444. compId:jsonParam.compId,
  445. level:"配网",
  446. recordId:data["REPORT_ID"],
  447. text: pageParam.title}},
  448. {value:(utils.changeQ(data.PLON_DAOTA_10) +
  449. utils.changeQ(data.PLON_BIANXING_10) +
  450. utils.changeQ(data.DUANGAN_10) +
  451. utils.changeQ(data.DAOGAN_10) +
  452. utils.changeQ(data.DIANGAN_QIGNXIE_10)),
  453. name:'10kV',
  454. data:{ number:jsonParam.number,
  455. compId:jsonParam.compId,
  456. level:"配网",
  457. recordId:data["REPORT_ID"],
  458. text: pageParam.title}},
  459. {value:(utils.changeQ(data.DAUNGAN_DIYA) +
  460. utils.changeQ(data.DAOGAN_DIYA) +
  461. utils.changeQ(data.QINGGAN_DIYA)),
  462. name:'低压',
  463. data:{ number:jsonParam.number,
  464. compId:jsonParam.compId,
  465. level:"配网",
  466. recordId:data["REPORT_ID"],
  467. text: pageParam.title}}]
  468. }
  469. ];
  470. pageParam.opParams={
  471. title:"截止时间:"+subDate(data["APPEAR_TIME"]),//标题
  472. subtext:"设备受损总数:"+data["sum"]+"(基/根)",
  473. saveName:$("#i_page_head_title").find("h2").html()+searchUtil.getNowFormatDateTime(new Date),
  474. unit:"基/根",//单位
  475. leArr:["500kV","220kV","110kV","35kV","10kV","低压"],//图例
  476. xAxis:xAxis,//x轴
  477. sArr:sArr//主数据
  478. };
  479. chart=getEchart($("#i_page_chart"),getOption11,pageParam.opParams,chart);
  480. setTitle();
  481. bindSysEvent();
  482. },"json");
  483. };
  484. function bindSysEvent(){
  485. chart.on("click",function(params){
  486. //if(params.data.name=="主网"){
  487. var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/sys_equipment_stop_group_main_grid.html?"+encodeURI($.param(params.data.data));
  488. utils.openIframe(pathStr)
  489. //}else{
  490. //var pathStr=url["http_path"]+"page/cockpit/echart_maticView/equipment_loss/sys_equipment_stop_group_help_grid.html?"+encodeURI($.param(params.data.data));
  491. //utils.openIframe(pathStr)
  492. //}
  493. });
  494. $(window).resize(function(){
  495. chart.resize();
  496. });
  497. }
  498. function subDate(str){
  499. if(str==null || str==undefined) return "-";
  500. if(str.indexOf(".")>0){
  501. return str.substring(0,str.indexOf("."));
  502. }
  503. else{
  504. return str;
  505. }
  506. }
  507. </script>
  508. </body>
  509. </html>