0e804e8880b0105b47b460dcfd54d54eab9dbadb.svn-base 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. ResultShow = function() {
  2. /** 定义变量* */
  3. var _this = this;
  4. _this.listGrid = null;// 数据列表
  5. _this.jiChuZhunBeiPingGuZhiBiao = [];
  6. _this.zhuanXiangYingJiZhunBeiPingZhiBiao = [];
  7. _this.yingJiShiJianZhengGaiQingKuangPingGuZhiBiao = [];
  8. _this.yingJiChuZhiHouPingGuZhiBiao = [];
  9. _this.listGridScore = null;
  10. /* _this.listGrid1 = null;// 数据列表
  11. */
  12. function goback(){
  13. $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/evaluate/score/Score.jsp");
  14. }
  15. function isShowPingGu(){
  16. var params = {
  17. classid : '375',
  18. objectID : fd_id
  19. };
  20. $.ajax({
  21. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  22. type : 'post',
  23. data : params,
  24. dataType : 'json',
  25. async :false,
  26. success : function(data){
  27. var trunk_id = data.TRUNK_ID_375;
  28. $(".pingGuType").hide();
  29. if(trunk_id != null && trunk_id != ""){
  30. trunk_id = trunk_id.split(',');
  31. for(var i =0;i < trunk_id.length;i++){
  32. $("#"+trunk_id[i]+"").show();
  33. }
  34. }
  35. setHight();
  36. },
  37. error : function(e){
  38. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  39. }
  40. });
  41. }
  42. function getColumnar($id,$twoId,title,data,gradeId,companyId){
  43. $id.highcharts({
  44. chart: {
  45. type: 'column'
  46. },
  47. title: {
  48. text: title
  49. },
  50. xAxis: {
  51. categories: [
  52. 'S=0',
  53. '1≤s<2',
  54. '2≤S<3',
  55. 'S=3'
  56. ],
  57. crosshair: true
  58. },
  59. yAxis: {
  60. min: 0,
  61. title: {
  62. text: ''
  63. }
  64. },
  65. tooltip: {
  66. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  67. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  68. '<td style="padding:0"><b>{point.y:.2f} %</b></td></tr>',
  69. footerFormat: '</table>',
  70. shared: true,
  71. useHTML: true
  72. },
  73. plotOptions: {
  74. series : {
  75. point : {
  76. events : {
  77. click : function(e) {
  78. var color = e.point.series.color;
  79. var title = e.point.series.name;
  80. var level = title.substr(title.indexOf('=')+2,3);
  81. var categories = ['S=0','1≤s<2','2≤S<3','S=3'];
  82. var scoreGrade = e.point.x;
  83. $.ajax({
  84. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeTwoId',
  85. type : 'post',
  86. async : true,
  87. data :{
  88. gradeId:gradeId,
  89. companyId:companyId,
  90. level:level,
  91. score:scoreGrade
  92. },
  93. dataType : 'json',
  94. success : function(data) {
  95. getTwoColumnar($twoId,title,JSON.parse(data.name),JSON.parse(data.data),categories[scoreGrade],color);
  96. }
  97. });
  98. }
  99. }
  100. }
  101. },
  102. column: {
  103. pointPadding: 0.2,
  104. borderWidth: 0
  105. }
  106. },
  107. series: data
  108. });
  109. setHight();
  110. }
  111. function getTwoColumnar($id,title,categories,data,scoregrade,color){
  112. $id.highcharts({
  113. chart: {
  114. type: 'column'
  115. },
  116. title: {
  117. text: title
  118. },
  119. xAxis: {
  120. categories:categories,
  121. crosshair: true
  122. },
  123. yAxis: {
  124. min: 0,
  125. title: {
  126. text: ''
  127. }
  128. },
  129. tooltip: {
  130. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  131. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  132. '<td style="padding:0"><b>{point.y:.2f} %</b></td></tr>',
  133. footerFormat: '</table>',
  134. shared: true,
  135. useHTML: true
  136. },
  137. plotOptions: {
  138. column: {
  139. pointPadding: 0.2,
  140. borderWidth: 0
  141. }
  142. },
  143. series: [ {
  144. name : scoregrade,
  145. color : color,
  146. data : data
  147. } ]
  148. });
  149. setHight();
  150. };
  151. function getRadarGraph($id,categories,series){
  152. $id.highcharts({
  153. chart: {
  154. polar: true,
  155. type: 'line'
  156. },
  157. title: {
  158. text: '',
  159. x: -80
  160. },
  161. pane: {
  162. size: '80%'
  163. },
  164. xAxis: {
  165. categories:categories,
  166. tickmarkPlacement: 'on',
  167. lineWidth: 0
  168. },
  169. yAxis: {
  170. gridLineInterpolation: 'polygon',
  171. lineWidth: 0,
  172. min: 0
  173. },
  174. tooltip: {
  175. shared: true,
  176. pointFormat: '<span style="color:{series.color}">{series.name}: <b>{point.y:,.2f}%</b><br/>'
  177. },
  178. legend: {
  179. align: 'right',
  180. verticalAlign: 'top',
  181. y: 70,
  182. layout: 'vertical'
  183. },
  184. series:series
  185. });
  186. setHight();
  187. };
  188. function getLineGraph($id,series){
  189. $id.highcharts({
  190. title: {
  191. text: '',
  192. x: -20 //center
  193. },
  194. subtitle: {
  195. text: '',
  196. x: -20
  197. },
  198. xAxis: {
  199. categories:[
  200. 'S=0',
  201. '1≤s<2',
  202. '2≤S<3',
  203. 'S=3'
  204. ],
  205. },
  206. yAxis: {
  207. title: {
  208. text: ''
  209. },
  210. plotLines: [{
  211. value: 0,
  212. width: 1,
  213. color: '#808080'
  214. }]
  215. },
  216. tooltip: {
  217. shared: true,
  218. pointFormat: '<span style="color:{series.color}">{series.name}: <b>{point.y:,.2f}%</b><br/>'
  219. },
  220. legend: {
  221. layout: 'vertical',
  222. align: 'right',
  223. verticalAlign: 'middle',
  224. borderWidth: 0
  225. },
  226. series: series
  227. });
  228. setHight();
  229. }
  230. //各局得分比例和得分值
  231. function getEachScoreValue($dataScore,$dataValue,gradeId,companys,trunkId){
  232. var cols = [{display : '得分率',name : 'LEVEL',showTitle:true,width : "20%"}];
  233. var cols1 = [{display : '得分值',name : 'LEVEL',showTitle:true,width : "20%"}];
  234. companys = companys.split(',');
  235. var len = companys.length;
  236. var height = 580;
  237. for(var i = 0;i< len;i++){
  238. var company = companys[i].split('$');
  239. company = {display : company[1],name :'a'+company[0]+'$',width : "13%"}
  240. cols.push(company);
  241. cols1.push(company);
  242. height += 720;
  243. }
  244. $('.targetType').height(height+'px');
  245. _this.loadParams = {
  246. gradeId:gradeId,
  247. trunkId:trunkId
  248. };
  249. _this.listGrid = $dataScore.quiGrid({
  250. columns: cols,
  251. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeId',
  252. params: _this.loadParams,
  253. async:false,
  254. width:'1024',
  255. usePager: false
  256. });
  257. _this.listGrid = $dataValue.quiGrid({
  258. columns: cols1,
  259. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeTotalId',
  260. params: _this.loadParams,
  261. async:false,
  262. width:'1024',
  263. usePager: false
  264. });
  265. setHight();
  266. }
  267. return {
  268. init : function() {
  269. //显示有评估的指标
  270. isShowPingGu();
  271. //////////////////////////各局整体得分率比较///////////////////////////////////////////
  272. var gradeId = $("#gradeId").val();
  273. var resultTrunk1 = $("#resultTrunk").val();
  274. getEachScoreValue($("#dataGrid"),$("#dataGridScore"),gradeId,resultTrunk1,'');
  275. var resultTrunk = resultTrunk1.split(',');
  276. var len = resultTrunk.length;
  277. //////////////////////////各局整体得分率比较///////////////////////////////////////////
  278. //////////////////////////应急基础准备评估指标////////////////////////////////////////
  279. if($("#372144723048972500000106100000").css('display') == 'block'){
  280. var fieldsetdata = "<fieldset style='border-color:#999999;'><legend>各局应急基础准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='jiChuZhunBeiPingGuZhiBiaoScore'></div></div><br/>" +
  281. "<div class='padding_right5 padding_left5'><div id='jiChuZhunBeiPingGuZhiBiaoValue'></div></div>" +
  282. "<table width='100%'><tr><td width='50%'><div id='radarGraphContainer1' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td>" +
  283. "<td width='50%'><div id='lineGraphContainer1' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td></tr></table></fieldset>"
  284. $("#jiChuZhunBeiPingGuZhiBiaoDataDiv").append(fieldsetdata);
  285. getEachScoreValue($("#jiChuZhunBeiPingGuZhiBiaoScore"),$("#jiChuZhunBeiPingGuZhiBiaoValue"),gradeId,resultTrunk1,'372144723048972500000106100000');
  286. var jiChuZhunBeiPingGuZhiBiaoColumns = [{display : '得分率',name : 'LEVEL',align : 'center',width : "20%"},
  287. {display : '应急组织体系',name : 'zhuZhiTiXi',align : 'center',width : "18%"},
  288. {display : '预案体系',name : 'yuAnTiXi',align : 'center',width : "18%"},
  289. {display : '应急保障体系',name : 'baoZhengTiXi',align : 'center',width : "18%"},
  290. {display : '运转机制',name : 'yunZhuanJiZhi',align : 'center',width : "18%"}
  291. ];
  292. var radarData = [];
  293. var lineData = [];
  294. var categories = '';
  295. ///动态加载公司对应的dataGrid
  296. for(var i = 0;i< len;i++){
  297. var trunk = resultTrunk[i].split('$');
  298. var fieldset = "<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"应急基础准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='jiChuZhunBeiPingGuZhiBiao"+i+"'></div>"+
  299. "<table width='100%'><tr><td width='50%'><div id='jiChuZhunBeiPingGuZhiBiaoContainer"+i+"' style='min-width: 580px; height: 300px; margin: 0 auto;'></div></td>"+
  300. "<td width='50%'><div id='jiChuZhunBeiPingGuZhiBiaoTwoContainer"+i+"' style='min-width: 580px; height: 300px; margin: 0 auto;'></div></td></tr></table></fieldset>"
  301. $("#jiChuZhunBeiPingGuZhiBiaoDataDiv").append(fieldset);
  302. _this.jiChuZhunBeiPingGuZhiBiaoloadParams = {
  303. gradeId:gradeId,
  304. companyId:trunk[0],
  305. trunkId:'372144723048972500000106100000'
  306. }
  307. var $id = $('#jiChuZhunBeiPingGuZhiBiao'+i+'');
  308. var $container = $('#jiChuZhunBeiPingGuZhiBiaoContainer'+i+'');
  309. var $twoContainer = $('#jiChuZhunBeiPingGuZhiBiaoTwoContainer'+i+'');
  310. var title = trunk[1]+"应急基础准备评估指标得分情况";
  311. var dataJiChu = "";
  312. $.ajax({
  313. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeLevelOneTotal',
  314. type : 'post',
  315. async : false,
  316. data :_this.jiChuZhunBeiPingGuZhiBiaoloadParams,
  317. dataType : 'json',
  318. success : function(data) {
  319. dataJiChu = data;
  320. }
  321. });
  322. _this.jiChuZhunBeiPingGuZhiBiao[i] = $($id).quiGrid({
  323. columns: jiChuZhunBeiPingGuZhiBiaoColumns,
  324. data:JSON.parse(dataJiChu.result),
  325. width:'1000',
  326. isScroll:true,
  327. usePager: false
  328. });
  329. //获得雷达图数据
  330. var radar = {name:trunk[1],data:dataJiChu.radarGraph, pointPlacement: 'on'};
  331. radarData.push(radar);
  332. categories = dataJiChu.radarCategories;
  333. //获得线图数据
  334. var line = {name:trunk[1],data:dataJiChu.radarGraph}
  335. lineData.push(line);
  336. getColumnar($container,$twoContainer,title,dataJiChu.returnListGraph,gradeId,trunk[0]);
  337. }
  338. //添加雷达图与线图
  339. var $radarId = $('#radarGraphContainer1');
  340. var $lineId = $('#lineGraphContainer1');
  341. getRadarGraph($radarId,categories,radarData);
  342. getLineGraph($lineId,lineData);
  343. }
  344. //////////////////////////应急基础准备评估指标////////////////////////////////////////
  345. //////////////////////////专项应急准备评估指标////////////////////////////////////////
  346. if($("#372144723051042300000107100000").css('display') == 'block'){
  347. var fieldsetdata = "<fieldset style='border-color:#999999;'><legend>各局应急基础准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='zhuanXiangYingJiZhunBeiPingZhiBiaoScore'></div></div><br/>" +
  348. "<div class='padding_right5 padding_left5'><div id='zhuanXiangYingJiZhunBeiPingZhiBiaoValue'></div></div>" +
  349. "<table width='100%'><tr><td width='50%'><div id='radarGraphContainer2' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td>" +
  350. "<td width='50%'><div id='lineGraphContainer2' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td></tr></table></fieldset>"
  351. $("#zhuanXiangYingJiZhunBeiPingZhiBiaoDataDiv").append(fieldsetdata);
  352. getEachScoreValue($("#zhuanXiangYingJiZhunBeiPingZhiBiaoScore"),$("#zhuanXiangYingJiZhunBeiPingZhiBiaoValue"),gradeId,resultTrunk1,'372144723051042300000107100000');
  353. var zhuanXiangYingJiZhunBeiPingZhiBiaoColumns = [{display : '得分率',name : 'LEVEL',align : 'center',width : "20%"},
  354. {display : '防风防汛应急准备',name : 'FFFXYJZB',align : 'center',width : "25%"},
  355. {display : '地震应急准备',name : 'DZYJZB',align : 'center',width : "25%"},
  356. {display : '防冰应急准备',name : 'FBYJZB',align : 'center',width : "25%"}
  357. ];
  358. var radarData = [];
  359. var lineData = [];
  360. var categories = '';
  361. ///动态加载公司对应的dataGrid
  362. for(var i = 0;i< len;i++){
  363. var trunk = resultTrunk[i].split('$');
  364. var fieldset = "<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"专项应急准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='zhuanXiangYingJiZhunBeiPingZhiBiao"+i+"'></div>"+
  365. "<table width='100%'><tr><td width='50%'><div id='zhuanXiangYingJiZhunBeiPingZhiBiaoContainer"+i+"' style='min-width: 580px; height: 300px; margin: 0 auto;'></div></td>"+
  366. "<td width='50%'><div id='zhuanXiangYingJiZhunBeiPingZhiBiaoTwoContainer"+i+"' style='min-width: 580px; height: 300px; margin: 0 auto;'></div></td></tr></table></fieldset>"
  367. $("#zhuanXiangYingJiZhunBeiPingZhiBiaoDataDiv").append(fieldset);
  368. //$("#zhuanXiangYingJiZhunBeiPingZhiBiaoDataDiv").append("<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"专项应急准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='zhuanXiangYingJiZhunBeiPingZhiBiao"+i+"'></div></div></fieldset>");
  369. _this.zhuanXiangYingJiZhunBeiPingZhiBiaoloadParams = {
  370. gradeId:gradeId,
  371. companyId:trunk[0],
  372. trunkId:'372144723051042300000107100000'
  373. }
  374. var dataOne = "";
  375. $.ajax({
  376. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeLevelOneTotal',
  377. type : 'post',
  378. async : false,
  379. data :_this.zhuanXiangYingJiZhunBeiPingZhiBiaoloadParams,
  380. dataType : 'json',
  381. success : function(data) {
  382. dataOne = data;
  383. }
  384. });
  385. var $id = $('#zhuanXiangYingJiZhunBeiPingZhiBiao'+i+'');
  386. var $container = $('#zhuanXiangYingJiZhunBeiPingZhiBiaoContainer'+i+'');
  387. var $twoContainer = $('#zhuanXiangYingJiZhunBeiPingZhiBiaoTwoContainer'+i+'');
  388. var title = trunk[1]+"专项应急准备评估指标";
  389. _this.zhuanXiangYingJiZhunBeiPingZhiBiao[i] = $($id).quiGrid({
  390. columns: zhuanXiangYingJiZhunBeiPingZhiBiaoColumns,
  391. data:JSON.parse(dataOne.result),
  392. width:'1000',
  393. isScroll:true,
  394. usePager: false
  395. });
  396. //获得雷达图数据
  397. var radar = {name:trunk[1],data:dataOne.radarGraph, pointPlacement: 'on'};
  398. radarData.push(radar);
  399. categories = dataOne.radarCategories;
  400. //获得线图数据
  401. var line = {name:trunk[1],data:dataOne.radarGraph}
  402. lineData.push(line);
  403. getColumnar($container,$twoContainer,title,dataOne.returnListGraph,gradeId,trunk[0]);
  404. }
  405. //添加雷达图与线图
  406. var $radarId = $('#radarGraphContainer2');
  407. var $lineId = $('#lineGraphContainer2');
  408. getRadarGraph($radarId,categories,radarData);
  409. getLineGraph($lineId,lineData);
  410. }
  411. //////////////////////////专项应急准备评估指标////////////////////////////////////////
  412. //////////////////////////应急事件整改情况评估指标////////////////////////////////////////
  413. if($("#372144723053579800000108100000").css('display') == 'block'){
  414. var fieldsetdata = "<fieldset style='border-color:#999999;'><legend>各局应急基础准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoScore'></div></div><br/>" +
  415. "<div class='padding_right5 padding_left5'><div id='yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoValue'></div></div>" +
  416. "<table width='100%'><tr><td width='50%'><div id='radarGraphContainer3' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td>" +
  417. "<td width='50%'><div id='lineGraphContainer3' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td></tr></table></fieldset>"
  418. $("#yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoDataDiv").append(fieldsetdata);
  419. getEachScoreValue($("#yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoScore"),$("#yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoValue"),gradeId,resultTrunk1,'372144723053579800000108100000');
  420. var yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoColumns = [{display : '得分率',name : 'LEVEL',align : 'center',width : "20%"},
  421. {display : '总结评估工作的开展情况',name : 'ZJPGGZDKZQK',align : 'center',width : "25%"},
  422. {display : '整改计划制定情况',name : 'ZGJHZDQK',align : 'center',width : "25%"},
  423. {display : '整改计划执行情况',name : 'ZGJHZXQK',align : 'center',width : "25%"}
  424. ];
  425. var radarData = [];
  426. var lineData = [];
  427. var categories = '';
  428. ///动态加载公司对应的dataGrid
  429. for(var i = 0;i< len;i++){
  430. var trunk = resultTrunk[i].split('$');
  431. var fieldset = "<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"应急事件整改情况评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='yingJiShiJianZhengGaiQingKuangPingGuZhiBiao"+i+"'></div>"+
  432. "<table width='100%'><tr><td width='100%' colspan='2'><div align='center' id='yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoContainer"+i+"' style='min-width: 580px;width:87%; height: 300px; margin: 0 auto;'></div></td>"+
  433. "</tr></table></fieldset>"
  434. $("#yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoDataDiv").append(fieldset);
  435. //$("#yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoDataDiv").append("<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"应急事件整改情况评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='yingJiShiJianZhengGaiQingKuangPingGuZhiBiao"+i+"'></div></div></fieldset>");
  436. _this.yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoloadParams = {
  437. gradeId:gradeId,
  438. companyId:trunk[0],
  439. trunkId:'372144723053579800000108100000'
  440. }
  441. var dataOne = "";
  442. $.ajax({
  443. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeLevelOneTotal',
  444. type : 'post',
  445. async : false,
  446. data :_this.yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoloadParams,
  447. dataType : 'json',
  448. success : function(data) {
  449. dataOne = data;
  450. }
  451. });
  452. var $id = $('#yingJiShiJianZhengGaiQingKuangPingGuZhiBiao'+i+'');
  453. var $container = $('#yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoContainer'+i+'');
  454. var $twoContainer = $('#zhuanXiangYingJiZhunBeiPingZhiBiaoTwoContainer'+i+'');
  455. var title = trunk[1]+"应急事件整改情况评估指标";
  456. _this.jiChuZhunBeiPingGuZhiBiao[i] = $($id).quiGrid({
  457. columns: yingJiShiJianZhengGaiQingKuangPingGuZhiBiaoColumns,
  458. data:JSON.parse(dataOne.result),
  459. width:'1000',
  460. isScroll:true,
  461. usePager: false
  462. });
  463. //获得雷达图数据
  464. var radar = {name:trunk[1],data:dataOne.radarGraph, pointPlacement: 'on'};
  465. radarData.push(radar);
  466. categories = dataOne.radarCategories;
  467. //获得线图数据
  468. var line = {name:trunk[1],data:dataOne.radarGraph}
  469. lineData.push(line);
  470. getColumnar($container,$twoContainer,title,dataOne.returnListGraph,gradeId,trunk[0]);
  471. }
  472. //添加雷达图与线图
  473. var $radarId = $('#radarGraphContainer3');
  474. var $lineId = $('#lineGraphContainer3');
  475. getRadarGraph($radarId,categories,radarData);
  476. // getLineGraph($lineId,lineData);
  477. $("#zhuanXiangYingJiZhunBeiPingZhiBiaoDataDiv").height();
  478. }
  479. //////////////////////////应急事件整改情况评估指标////////////////////////////////////////
  480. //////////////////////////应急处置后评估指标////////////////////////////////////////
  481. if($("#372144723054636400000109100000").css('display') == 'block'){
  482. var fieldsetdata = "<fieldset style='border-color:#999999;'><legend>各局应急基础准备评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='yingJiChuZhiHouPingGuZhiBiaoScore'></div></div><br/>" +
  483. "<div class='padding_right5 padding_left5'><div id='yingJiChuZhiHouPingGuZhiBiaoValue'></div></div>" +
  484. "<table width='100%'><tr><td width='50%'><div id='radarGraphContainer4' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td>" +
  485. "<td width='50%'><div id='lineGraphContainer4' style='min-width: 600px; height: 300px; margin: 0 auto'></div></td></tr></table></fieldset>"
  486. $("#yingJiChuZhiHouPingGuZhiBiaoDataDiv").append(fieldsetdata);
  487. getEachScoreValue($("#yingJiChuZhiHouPingGuZhiBiaoScore"),$("#yingJiChuZhiHouPingGuZhiBiaoValue"),gradeId,resultTrunk1,'372144723054636400000109100000');
  488. var yingJiChuZhiHouPingGuZhiBiaoColumns = [{display : '得分率',name : 'LEVEL',align : 'center',width : "20%"},
  489. {display : '事前准备阶段',name : 'SQZBJD',align : 'center',width : "25%"},
  490. {display : '事中处置阶段',name : 'SZCZJD',align : 'center',width : "25%"},
  491. {display : '事后恢复阶段',name : 'SHHHJD',align : 'center',width : "25%"}
  492. ];
  493. var radarData = [];
  494. var lineData = [];
  495. var categories = '';
  496. ///动态加载公司对应的dataGrid
  497. for(var i = 0;i< len;i++){
  498. var trunk = resultTrunk[i].split('$');
  499. //$("#yingJiChuZhiHouPingGuZhiBiaoDataDiv").append("<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"应急处置后评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='yingJiChuZhiHouPingGuZhiBiao"+i+"'></div></div></fieldset>");
  500. var fieldset = "<fieldset style='border-color:#999999;'><legend>"+trunk[1]+"应急处置后评估指标得分情况:</legend><div class='padding_right5 padding_left5'><div id='yingJiChuZhiHouPingGuZhiBiao"+i+"'></div>"+
  501. "<table width='100%'><tr><td width='50%'><div id='yingJiChuZhiHouPingGuZhiBiaoContainer"+i+"' style='min-width: 580px; height: 300px; margin: 0 auto;'></div></td>"+
  502. "<td width='50%'><div id='yingJiChuZhiHouPingGuZhiBiaoTwoContainer"+i+"' style='min-width: 580px; height: 300px; margin: 0 auto;'></div></td></tr></table></fieldset>"
  503. $("#yingJiChuZhiHouPingGuZhiBiaoDataDiv").append(fieldset);
  504. _this.yingJiChuZhiHouPingGuZhiBiaoloadParams = {
  505. gradeId:gradeId,
  506. companyId:trunk[0],
  507. trunkId:'372144723054636400000109100000'
  508. }
  509. var dataOne = "";
  510. $.ajax({
  511. url :$.pathname() + '/ws/scoreGrade/ScoreGradeService/getScoreGradeLevelOneTotal',
  512. type : 'post',
  513. async : false,
  514. data :_this.yingJiChuZhiHouPingGuZhiBiaoloadParams,
  515. dataType : 'json',
  516. success : function(data) {
  517. dataOne = data;
  518. }
  519. });
  520. var $id = $('#yingJiChuZhiHouPingGuZhiBiao'+i+'');
  521. var $container = $('#yingJiChuZhiHouPingGuZhiBiaoContainer'+i+'');
  522. var $twoContainer = $('#yingJiChuZhiHouPingGuZhiBiaoTwoContainer'+i+'');
  523. var title = trunk[1]+"应急处置后评估指标";
  524. _this.yingJiChuZhiHouPingGuZhiBiao[i] = $($id).quiGrid({
  525. columns: yingJiChuZhiHouPingGuZhiBiaoColumns,
  526. data:JSON.parse(dataOne.result),
  527. width:'1000',
  528. isScroll:true,
  529. usePager: false
  530. });
  531. //获得雷达图数据
  532. var radar = {name:trunk[1],data:dataOne.radarGraph, pointPlacement: 'on'};
  533. radarData.push(radar);
  534. categories = dataOne.radarCategories;
  535. //获得线图数据
  536. var line = {name:trunk[1],data:dataOne.radarGraph}
  537. lineData.push(line);
  538. getColumnar($container,$twoContainer,title,dataOne.returnListGraph,gradeId,trunk[0]);
  539. }
  540. //添加雷达图与线图
  541. var $radarId = $('#radarGraphContainer4');
  542. var $lineId = $('#lineGraphContainer4');
  543. getRadarGraph($radarId,categories,radarData);
  544. getLineGraph($lineId,lineData);
  545. }
  546. //////////////////////////应急处置后评估指标////////////////////////////////////////
  547. //alert(len);
  548. //$(".targetType").height('1800px');
  549. $('#backback').bind('click',function(){
  550. goback();
  551. });
  552. setHight();
  553. }
  554. };
  555. }();
  556. $(function() {
  557. ResultShow.init();
  558. });