4c92f29a6f9bbf604c3253751b0b17085d0ee3c8.svn-base 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. //var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  2. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  3. //数据表格
  4. var g;
  5. var myCols = [{
  6. display: '法律', name: 'law', width: "16%", align: 'center'
  7. },{
  8. display: '行政法规', name: 'administrationreg', width: "16%", align: 'center'
  9. },{
  10. display: '地方性法规', name: 'localreg', width: "16%", align: 'center'
  11. },{
  12. display: '行政规章', name: 'administrationrul', width: "16%", align: 'center'
  13. },{
  14. display: '地方行政规章', name: 'localrul', width: "16%", align: 'center'
  15. }];
  16. var columns = [{display : '所属单位',"name" : 'name',id : 'name',width : "10%",dept_id:'dept_id',align : 'center',render: addStatus},
  17. {display: '法律法规分类', columns: myCols, width: "80%"},
  18. {display: '合计', name: 'num', width: "10%", align: 'center'}
  19. ];
  20. var json ="";
  21. var loadData;
  22. //柱状图
  23. var option = {
  24. title : {
  25. text: '法律法规统计图',
  26. subtext: '/个'
  27. },
  28. tooltip : {
  29. trigger: 'axis'
  30. },
  31. legend: {
  32. y : 'bottom',
  33. data:['法律','行政法规','地方性法规','行政规章','地方行政规章']
  34. },
  35. toolbox: {
  36. show : true,
  37. feature : {
  38. mark : {show: true},
  39. dataView : {show: true, readOnly: false},
  40. magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
  41. restore : {show: true},
  42. saveAsImage : {show: true}
  43. }
  44. },
  45. calculable : true,
  46. xAxis : [
  47. {
  48. type : 'category',
  49. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
  50. }
  51. ],
  52. yAxis : [
  53. {
  54. type : 'value'
  55. }
  56. ],
  57. series : [
  58. {
  59. name:'法律',
  60. type:'bar',
  61. data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
  62. },
  63. {
  64. name:'行政法规',
  65. type:'bar',
  66. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
  67. },
  68. {
  69. name:'地方性法规',
  70. type:'bar',
  71. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
  72. },
  73. {
  74. name:'行政规章',
  75. type:'bar',
  76. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
  77. },
  78. {
  79. name:'地方行政规章',
  80. type:'bar',
  81. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
  82. }
  83. ]
  84. };
  85. function changeBarOption(data){
  86. var legendData=[];
  87. var seriesData=[];
  88. var data1=[];
  89. var data2=[];
  90. var data3=[];
  91. var data4=[];
  92. var data5=[];
  93. for(var i=0;i<data.rows.length-1;i++){
  94. //alert(data.rows[i].name);
  95. legendData[i]=data.rows[i].name;
  96. data1[i]=data.rows[i].law;
  97. data2[i]=data.rows[i].administrationreg;
  98. data3[i]=data.rows[i].localreg;
  99. data4[i]=data.rows[i].administrationrul;
  100. data5[i]=data.rows[i].localrul;
  101. }
  102. var series1={ name:'法律',
  103. type:'bar',
  104. data:data1
  105. };
  106. var series2={ name:'行政法规',
  107. type:'bar',
  108. data:data2
  109. };
  110. var series3={ name:'地方性法规',
  111. type:'bar',
  112. data:data3
  113. };
  114. var series4={ name:'行政规章',
  115. type:'bar',
  116. data:data4
  117. };
  118. var series5={ name:'地方行政规章',
  119. type:'bar',
  120. data:data5
  121. };
  122. seriesData=[series1,series2,series3,series4,series5];
  123. option.xAxis[0].data=legendData;
  124. option.series=seriesData;
  125. }
  126. function changeBarOption2(data){
  127. alert(JSON.stringify(data));
  128. var legendData=[];
  129. var seriesData=[];
  130. var data1=[];
  131. var data2=[];
  132. var data3=[];
  133. var data4=[];
  134. var data5=[];
  135. for(var i=0;i<data.rows.length-1;i++){
  136. //alert(data.rows[i].name);
  137. legendData[i]=data.rows[i].name;
  138. data1[i]=data.rows[i].law;
  139. data2[i]=data.rows[i].administrationreg;
  140. data3[i]=data.rows[i].localreg;
  141. data4[i]=data.rows[i].administrationrul;
  142. data5[i]=data.rows[i].localrul;
  143. }
  144. var series1={ name:'法律',
  145. type:'bar',
  146. data:data1
  147. };
  148. var series2={ name:'行政法规',
  149. type:'bar',
  150. data:data2
  151. };
  152. var series3={ name:'地方性法规',
  153. type:'bar',
  154. data:data3
  155. };
  156. var series4={ name:'行政规章',
  157. type:'bar',
  158. data:data4
  159. };
  160. var series5={ name:'地方行政规章',
  161. type:'bar',
  162. data:data5
  163. };
  164. //seriesData=[series1,series2,series3,series4,series5];
  165. option.legend.data=$("#CLASSES_243").attr("relText").split(",");
  166. var getInput=$("#CLASSES_243").attr("relText").split(",");
  167. var j=0;
  168. if($.inArray('法律',getInput)!=-1){
  169. seriesData[j]=series1;
  170. j++;
  171. }
  172. if($.inArray('行政法规',getInput)!=-1){
  173. seriesData[j]=series2;
  174. j++;
  175. }
  176. if($.inArray('地方性法规',getInput)!=-1){
  177. seriesData[j]=series3;
  178. j++;
  179. }
  180. if($.inArray('行政规章',getInput)!=-1){
  181. seriesData[j]=series4;
  182. j++;
  183. }
  184. if($.inArray('地方行政规章',getInput)!=-1){
  185. seriesData[j]=series5;
  186. j++;
  187. }
  188. option.xAxis[0].data=legendData;
  189. option.series=seriesData;
  190. }
  191. //折线图option1
  192. var option1 = {
  193. title : {
  194. text: '法律法规统计图',
  195. subtext: '/个'
  196. },
  197. tooltip : {
  198. trigger: 'axis'
  199. },
  200. legend: {
  201. y:'bottom',
  202. data:['法律','行政法规','地方性法规','行政规章','地方行政规章']
  203. },
  204. toolbox: {
  205. show : true,
  206. feature : {
  207. mark : {show: true},
  208. dataView : {show: false, readOnly: false},
  209. magicType : {show: false, type: ['line', 'bar', 'stack', 'tiled']},
  210. restore : {show: true},
  211. saveAsImage : {show: true}
  212. }
  213. },
  214. calculable : true,
  215. xAxis : [
  216. {
  217. type : 'category',
  218. boundaryGap : false,
  219. data : ['总体预案','专项预案','现场处置方案','部门预案']
  220. }
  221. ],
  222. yAxis : [
  223. {
  224. type : 'value'
  225. }
  226. ],
  227. series : [
  228. {
  229. name:'法律',
  230. type:'line',
  231. data:[20, 30, 50,40]
  232. },
  233. {
  234. name:'行政法规',
  235. type:'line',
  236. data:[10, 18, 19, 24]
  237. },
  238. {
  239. name:'地方性法规',
  240. type:'line',
  241. data:[15, 22, 20, 15]
  242. },
  243. {
  244. name:'行政规章',
  245. type:'line',
  246. data:[15, 22, 20, 15]
  247. },
  248. {
  249. name:'地方行政规章',
  250. type:'line',
  251. data:[15, 22, 20, 15]
  252. }
  253. ]
  254. };
  255. function changeLineOption(data){
  256. var legendData=[];
  257. var seriesData=[];
  258. var data1=[];
  259. var data2=[];
  260. var data3=[];
  261. var data4=[];
  262. var data5=[];
  263. for(var i=0;i<data.rows.length-1;i++){
  264. legendData[i]=data.rows[i].name;
  265. data1[i]=data.rows[i].law;
  266. data2[i]=data.rows[i].administrationreg;
  267. data3[i]=data.rows[i].localreg;
  268. data4[i]=data.rows[i].administrationrul;
  269. data5[i]=data.rows[i].localrul;
  270. }
  271. var series1={ name:'法律',
  272. type:'line',
  273. data:data1
  274. };
  275. var series2={ name:'行政法规',
  276. type:'line',
  277. data:data2
  278. };
  279. var series3={ name:'地方性法规',
  280. type:'line',
  281. data:data3
  282. };
  283. var series4={ name:'行政规章',
  284. type:'line',
  285. data:data4
  286. };
  287. var series5={ name:'地方行政规章',
  288. type:'line',
  289. data:data5
  290. };
  291. seriesData=[series1,series2,series3,series4,series5];
  292. option1.xAxis[0].data=legendData;
  293. option1.series=seriesData;
  294. }
  295. function changeLineOption2(data){
  296. var legendData=[];
  297. var seriesData=[];
  298. var data1=[];
  299. var data2=[];
  300. var data3=[];
  301. var data4=[];
  302. var data5=[];
  303. for(var i=0;i<data.rows.length-1;i++){
  304. //alert(data.rows[i].name);
  305. legendData[i]=data.rows[i].name;
  306. data1[i]=data.rows[i].law;
  307. data2[i]=data.rows[i].administrationreg;
  308. data3[i]=data.rows[i].localreg;
  309. data4[i]=data.rows[i].administrationrul;
  310. data5[i]=data.rows[i].localrul;
  311. }
  312. var series1={ name:'法律',
  313. type:'line',
  314. data:data1
  315. };
  316. var series2={ name:'行政法规',
  317. type:'line',
  318. data:data2
  319. };
  320. var series3={ name:'地方性法规',
  321. type:'line',
  322. data:data3
  323. };
  324. var series4={ name:'行政规章',
  325. type:'line',
  326. data:data4
  327. };
  328. var series5={ name:'地方行政规章',
  329. type:'line',
  330. data:data5
  331. };
  332. option1.legend.data=$("#CLASSES_243").attr("relText").split(",");
  333. var getInput=$("#CLASSES_243").attr("relText").split(",");
  334. var j=0;
  335. if($.inArray('法律',getInput)!=-1){
  336. seriesData[j]=series1;
  337. j++;
  338. }
  339. if($.inArray('行政法规',getInput)!=-1){
  340. seriesData[j]=series2;
  341. j++;
  342. }
  343. if($.inArray('地方性法规',getInput)!=-1){
  344. seriesData[j]=series3;
  345. j++;
  346. }
  347. if($.inArray('行政规章',getInput)!=-1){
  348. seriesData[j]=series4;
  349. j++;
  350. }
  351. if($.inArray('地方行政规章',getInput)!=-1){
  352. seriesData[j]=series5;
  353. j++;
  354. }
  355. //seriesData=[series1,series2,series3,series4,series5];
  356. option1.xAxis[0].data=legendData;
  357. option1.series=seriesData;
  358. }
  359. //饼图option2
  360. var option2 = {
  361. title : {
  362. text: '法律法规统计图',
  363. subtext: '/条'
  364. },
  365. tooltip : {
  366. trigger: 'item',
  367. formatter: "{a} <br/>{b} : {c} ({d}%)"
  368. },
  369. legend: {
  370. y : 'bottom',
  371. data:['法律','行政法规','地方性法规','行政规章','地方行政规章']
  372. },
  373. toolbox: {
  374. show : true,
  375. feature : {
  376. mark : {show: true},
  377. dataView : {show: false, readOnly: false},
  378. magicType : {
  379. show: false,
  380. type: ['pie', 'funnel'],
  381. option: {
  382. funnel: {
  383. x: '25%',
  384. width: '50%',
  385. funnelAlign: 'left',
  386. max: 1548
  387. }
  388. }
  389. },
  390. restore : {show: true},
  391. saveAsImage : {show: true}
  392. }
  393. },
  394. calculable : true,
  395. series : [
  396. {
  397. name:'法律法规类型',
  398. type:'pie',
  399. radius : '55%',
  400. center: ['50%', '55%'],
  401. data:[
  402. {value:335, name:'法律'},
  403. {value:310, name:'行政法规'},
  404. {value:234, name:'地方性法规'},
  405. {value:135, name:'行政规章'},
  406. {value:135, name:'地方行政规章'}
  407. ]
  408. }
  409. ]
  410. };
  411. function changePieOption3(data){
  412. //option2.legend.data=['总体预案','专项预案','现场处置方案','部门预案'];
  413. option2.legend.data=$("#CLASSES_243").attr("relText").split(",");
  414. var getInput=$("#CLASSES_243").attr("relText").split(",");
  415. var index=data.rows.length-1;
  416. var seriesJson=[];
  417. var j=0;
  418. if($.inArray('法律',getInput)!=-1){
  419. var json={value:data.rows[index]["law"],name:'法律'};
  420. seriesJson[j]=json;
  421. j++;
  422. }
  423. if($.inArray('行政法规',getInput)!=-1){
  424. var json={value:data.rows[index]["administrationreg"],name:'行政法规'};
  425. seriesJson[j]=json;
  426. j++;
  427. }
  428. if($.inArray('地方性法规',getInput)!=-1){
  429. var json={value:data.rows[index]["localreg"],name:'地方性法规'};
  430. seriesJson[j]=json;
  431. j++;
  432. }
  433. if($.inArray('行政规章',getInput)!=-1){
  434. var json={value:data.rows[index]["administrationrul"],name:'行政规章'};
  435. seriesJson[j]=json;
  436. j++;
  437. }
  438. if($.inArray('地方行政规章',getInput)!=-1){
  439. var json={value:data.rows[index]["localrul"],name:'地方行政规章'};
  440. seriesJson[j]=json;
  441. j++;
  442. }
  443. option2.series[0].data=seriesJson;
  444. }
  445. function changePieOption2(data){
  446. /*************************************************** 初始化解析饼图数据 start**********************************************************/
  447. //option2.legend.data=['总体预案','专项预案','现场处置方案','部门预案'];
  448. var index=data.rows.length-1;
  449. var seriesJson=[];
  450. var j=0;
  451. if(data.rows[index]["law"]!=undefined){
  452. var json={value:data.rows[index]["law"],name:'法律'};
  453. seriesJson[j]=json;
  454. j++;
  455. }
  456. if(data.rows[index]["administrationreg"]!=undefined){
  457. var json={value:data.rows[index]["administrationreg"],name:'行政法规'};
  458. seriesJson[j]=json;
  459. j++;
  460. }
  461. if(data.rows[index]["localreg"]!=undefined){
  462. var json={value:data.rows[index]["localreg"],name:'地方性法规'};
  463. seriesJson[j]=json;
  464. j++;
  465. }
  466. if(data.rows[index]["administrationrul"]!=undefined){
  467. var json={value:data.rows[index]["administrationrul"],name:'行政规章'};
  468. seriesJson[j]=json;
  469. j++;
  470. }
  471. if(data.rows[index]["localrul"]!=undefined){
  472. var json={value:data.rows[index]["localrul"],name:'地方行政规章'};
  473. seriesJson[j]=json;
  474. j++;
  475. }
  476. option2.series[0].data=seriesJson;
  477. /*************************************************** 初始化解析饼图数据 end **********************************************************/
  478. }
  479. //初始化方法
  480. $(function(){
  481. $("body").eq(0).showLoading();
  482. $.post($.pathname()+ "/ws/LAWSPOLL/LawsService/getLaws",{id : deptName},function (data){
  483. json = data;
  484. //给表格数据赋值
  485. loadData= data;
  486. //初始化表格
  487. initCompletes(json);
  488. $("body").eq(0).hideLoading();
  489. changeBarOption(data);
  490. changeLineOption(data);
  491. changePieOption2(data);
  492. var myChart1 = echarts.init(document.getElementById('main1'));
  493. myChart1.setOption(option);
  494. $(".basicTab").bind('actived',function(e,i){
  495. if(i==0){
  496. /***************************************** 加载柱状图 *********************************************************/
  497. var myChart1 = echarts.init(document.getElementById('main1'));
  498. myChart1.setOption(option);
  499. // initmyGraphic(data);
  500. }else if(i == 1){
  501. /***************************************** 加载折线图 *********************************************************/
  502. var myChart5 = echarts.init(document.getElementById('main2'));
  503. myChart5.setOption(option1);
  504. }else if(i==2){
  505. /***************************************** 加载饼图 *********************************************************/
  506. var myChart2 = echarts.init(document.getElementById('main3'));
  507. myChart2.setOption(option2);
  508. }
  509. });
  510. /***************************************** 加载图表 End *********************************************************/
  511. },"json" );
  512. });
  513. //发送请求,从后台获取数据
  514. function getNewValue(){
  515. //发布日期
  516. var pushStartTime = $('#beginTime1').val();
  517. var pushEndTime = $('#endTime1').val();
  518. //实施日期
  519. var pushStartTime1 = $('#beginTime2').val();
  520. var pushEndTime1 = $('#endTime2').val();
  521. //状态
  522. var level = $('#STATE_243').attr("relValue");
  523. //分类
  524. var chunengType = $('#CLASSES_243').attr("relValue");
  525. //取所属单位
  526. var units = $('#UNITE_243').val();
  527. //状态
  528. var tempLevel = null;
  529. if(level.length>0){
  530. var temp = level.split(",");
  531. var tempLevel1="";
  532. for(var i=0; i<temp.length; i++){
  533. tempLevel1 +="'"+ temp[i] + "',";
  534. }
  535. tempLevel = tempLevel1.substring(0,tempLevel1.length-1);
  536. }
  537. //分类
  538. var temp1 = chunengType.split(",");
  539. var tempChunengType = "";
  540. for(var i=0; i<temp1.length; i++){
  541. tempChunengType+=temp1[i] + ",";
  542. }
  543. //分类转换
  544. var temp2 = tempChunengType.split(",");
  545. var valueType1 = "";
  546. for(var i=0; i<temp2.length; i++){
  547. if(temp2[i]=="law"){
  548. valueType1+= "'" + "1" +"'" +",";
  549. }
  550. if(temp2[i]=="administrationreg"){
  551. valueType1+= "'" + "2" +"'" +",";
  552. }
  553. if(temp2[i]=="localreg"){
  554. valueType1+= "'" + "3" +"'" +",";
  555. }
  556. if(temp2[i]=="administrationrul"){
  557. valueType1+= "'" + "4" +"'" +",";
  558. }
  559. if(temp2[i]=="localrul"){
  560. valueType1+= "'" + "5" +"'" +",";
  561. }
  562. }
  563. var valueType = null;
  564. if(chunengType.length>0){
  565. valueType = valueType1.substring(0,valueType1.length-1);
  566. }
  567. //单位整理
  568. var leng = units.length;
  569. var deptId = null;
  570. if(leng>0){
  571. var deptIdsTemp = units.split(",");
  572. var arrFF = "";
  573. for(var i=0; i<deptIdsTemp.length; i++){
  574. arrFF+="'"+deptIdsTemp[i]+"'"+",";
  575. }
  576. deptId = arrFF.substring(0,arrFF.length-1);
  577. }
  578. /*alert("发布时间:"+pushStartTime+"~"+pushEndTime);
  579. alert("实施时间:"+pushStartTime1+"~"+pushEndTime1);
  580. alert("状态:" + tempLevel);
  581. alert("分类:" + valueType);
  582. alert("单位:"+deptId);*/
  583. $.post($.pathname()+ "/ws/LAWSPOLL/LawsService/getLaws",
  584. {id : deptName,StartTime:pushStartTime,EndTime:pushEndTime,StartTime1:pushStartTime1,EndTime1:pushEndTime1,tempLevel:tempLevel,valueType:valueType,deptId:deptId},
  585. function (data){
  586. json = data;
  587. //给表格数据赋值
  588. loadData= data;
  589. //初始化表格
  590. initCompletes(json);
  591. changeBarOption(data);
  592. changeLineOption(data);
  593. changePieOption2(data);
  594. var myChart1 = echarts.init(document.getElementById('main1'));
  595. myChart1.setOption(option);
  596. $(".basicTab").bind('actived',function(e,i){
  597. if(i==0){
  598. /***************************************** 加载柱状图 *********************************************************/
  599. var myChart1 = echarts.init(document.getElementById('main1'));
  600. myChart1.setOption(option);
  601. // initmyGraphic(data);
  602. }else if(i == 1){
  603. /***************************************** 加载折线图 *********************************************************/
  604. var myChart5 = echarts.init(document.getElementById('main2'));
  605. myChart5.setOption(option1);
  606. }else if(i==2){
  607. /***************************************** 加载饼图 *********************************************************/
  608. var myChart2 = echarts.init(document.getElementById('main3'));
  609. myChart2.setOption(option2);
  610. }
  611. });
  612. $(".basicTab").render();
  613. },"json" );
  614. }
  615. //点击统计按钮触发的事件
  616. function getCount(){
  617. getNewValue();
  618. //状态
  619. var level = $('#STATE_243').attr("relValue");
  620. //分类
  621. var chunengType = $('#CLASSES_243').attr("relValue");
  622. //取所属单位
  623. var units = $('#UNITE_243').val();
  624. var column = level + "," + chunengType + "," + units;
  625. /*var temp = column.split(",");
  626. var column1 = "";
  627. for(var i=0; i<temp.length; i++){
  628. column1+=temp[i]+ ",";
  629. }
  630. */
  631. if(chunengType==""){
  632. chunengType =",";
  633. }
  634. //所属单位
  635. var url=$.pathname()+ "/ws/Amyjyan/AmyjyanCount/getEditColumns";
  636. $.ajax({
  637. url : url,
  638. type : 'post',
  639. timeout : 15000,
  640. async : false,
  641. data : {
  642. name : "EMC_AM_LAWS_REGULATIONS",column:chunengType
  643. },
  644. dataType : 'text',
  645. success : function(data) {
  646. columns=eval('('+ data+')');
  647. //给表格数据赋值
  648. loadData= eval('('+ data+')');
  649. //初始化表格
  650. initCompletes(json);
  651. },
  652. error : function(e) {
  653. $.messager.alert('查询表头失败!', '访问服务失败!', 'error');
  654. }
  655. });
  656. }
  657. function initCompletes(json){
  658. g = $("#maingrid").quiGrid({
  659. columns: columns,
  660. data:json,
  661. rownumbers : true,
  662. usePager : false
  663. });
  664. //重设高度
  665. $(parent.document.body).find("iframe").height($(window.document.body).height()+30);
  666. $(top.document.body).find("iframe").height($(window.document.body).height()+30);
  667. /*重新绑定父页面事件方法*/
  668. //绑定点击时样式变化事件
  669. $(parent.document.body).find(".leftnav").live("click",parent.checkedCurrent);
  670. //定期报送组点击事件
  671. $(parent.document.body).find(".baosong").live("click",parent.changebaosong);
  672. //定期维护组点击事件
  673. $(parent.document.body).find(".weihu").live("click",parent.changeweihu);
  674. $(parent.document.body).find(".weihu1").live("click",parent.changeweihu1);
  675. /*重新绑定父页面事件方法*/
  676. }
  677. function addStatus(rowdata, rowindex, value, column){
  678. if("总计"==rowdata.name || deptName==rowdata.dept_id){
  679. return value;
  680. }else{
  681. var comp_id='"'+rowdata.dept_id+'"';
  682. var name = '"'+value+'"';
  683. return "<a href='javascript:newHtml("+comp_id+","+name+")'>" + value +" </a>";
  684. }
  685. }
  686. function newHtml(comp_id,name){
  687. if(name=="总计"){
  688. return;
  689. }else if(deptName==comp_id){
  690. return;
  691. }else{
  692. // window.open("/nwyj/page/business/am/fileManager/laws/laws_poll1.jsp?"+comp_id);
  693. $.indexOpenNextWindow("/nwyj/page/business/am/fileManager/laws/laws_poll1.jsp?"+comp_id);
  694. }
  695. }
  696. //返回
  697. function goBack() {
  698. window.location.href="laws.jsp";
  699. }
  700. //打印
  701. function print(){
  702. //alert(1111);
  703. $("#maingrid").jqprint();
  704. }
  705. //重置
  706. function resetSearch(){
  707. document.location.reload();
  708. }
  709. function export_report() {
  710. var sql = {
  711. "report_type" : "falv",
  712. "json" : JSON.stringify(g.getData())
  713. };
  714. excelExport(undefined, sql, "法律法规信息统计 ", ['dept_id', 'isParent', 'open'], "法律法规信息统计 ", 'rcpoll');
  715. }
  716. $.messager=top.Dialog;