e56402bb27a4def9267347a8dc846db8e9537728.svn-base 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>详细信息</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/cockpit/cockpitIndex/context.js"></script>
  8. <!--框架必需start-->
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  13. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <!--grid组件start-->
  18. <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
  19. <!--grid组件end-->
  20. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  21. <!-- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css"> -->
  22. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  23. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
  24. </head>
  25. <body >
  26. <div id="i_page_hed" class="c_page_hed" >
  27. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  28. <div id="i_page_grid_content" class="c_page_grid_content">
  29. <div id="i_page_grid" class="c_page_grid"></div>
  30. </div>
  31. <!-- <style>
  32. .c_page_hed{
  33. background-color: #08094C
  34. }
  35. .item_a{
  36. color: #ffffff;
  37. }
  38. </style> -->
  39. <script type="text/javascript">
  40. var utils=new Util();
  41. var grid=null;
  42. //var comp_id = "11";
  43. var culum = null;
  44. var params=utils.resolveUrl();
  45. //console.log(params);
  46. //params = { dept_name: "本单位所有", is_huizong: "true", dept_id: "11", name: "蓝色预警", is_alert: "0", level: "38" };
  47. //console.log(window.screen.width);
  48. function getGridcolumns(arg){
  49. //EARLY_WARNING_AREA_NAME,EARLY_WARNING_NAME,EARLY_WARNING_ID,RELEASE_RELIEVE_DATE
  50. var column = null;
  51. if(arg=="0"){
  52. culum = "CURRENT_EW_LEVEL";
  53. column=[
  54. { display: "发布单位", name: "DEPT_NAME", align: "center",width:"10%"},
  55. { display: "预警名称", name: "EARLY_WARNING_NAME", align: "center",width:"20%"},
  56. { display: "预警编号", name: "EARLY_WARNING_ID", align: "center",width:"10%" },
  57. { display: "预警范围", showTitle:true,name: "EARLY_WARNING_AREA_NAME", align: "center",width:"32%" },
  58. { display: "发布时间", name: "RELEASE_RELIEVE_DATE", align: "center",width:"14%" },
  59. { display: "状态", name: "IS_SEND", align: "center",width:"13%" }];
  60. }
  61. if(arg=="1"){
  62. culum = "CURRENT_ER_LEVEL";
  63. column=[
  64. { display: "发布单位", name: "DEPT_NAME", align: "center",width:"10%"},
  65. { display: "响应名称", name: "EARLY_WARNING_NAME", align: "center",width:"20%"},
  66. { display: "响应编号", name: "EARLY_WARNING_ID", align: "center",width:"10%" },
  67. { display: "响应范围",showTitle:true, name: "EARLY_WARNING_AREA_NAME", align: "center",width:"32%"},
  68. { display: "发布时间", name: "RELEASE_RELIEVE_DATE", align: "center",width:"14%" },
  69. { display: "状态", name: "IS_SEND", align: "center",width:"13%" }];
  70. }
  71. return column;
  72. }
  73. var columns = getGridcolumns(params.is_alert);
  74. var options={
  75. columns:columns,
  76. url:"/nwyj/ws/cockpit/CockpitService/queryCompDitaildata",
  77. params: [{name:"comp",value:params.dept_id},
  78. {name:"is_alert",value:params.is_alert},
  79. {name:"is_huizong",value:params.is_huizong},
  80. {name:"culum",value:culum},
  81. {name:"level",value:params.level}],
  82. pageSize:10,
  83. usePager:false,
  84. percentWidthMode:true,
  85. height:"100%",
  86. method: "post",
  87. width:"100%",
  88. //usePager : false,
  89. //isScroll: true,
  90. //percentWidthMode : false,
  91. alternatingRow: false,
  92. rowAttrRender: function(rowdata, rowindex, rowid){
  93. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  94. }
  95. };
  96. $(function(){
  97. grid=$("#i_page_grid").quiGrid(options);
  98. //bindEvent();
  99. setTitle();
  100. close();
  101. });
  102. function setTitle(){
  103. $("#i_page_hed").text(params.dept_name+params.name+"详细信息");
  104. }
  105. </script>
  106. </body>
  107. </html>