ec14377bdb6c985ad3dd36d10e07427b7651878d.svn-base 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>应急简报</title>
  5. <meta name="keywords" content="keyword1,keyword2,keyword3">
  6. <meta name="description" content="this is my page">
  7. <meta name="content-type" content="text/html; charset=UTF-8">
  8. <script type="text/javascript" src="/nwyj/page/cockpit/context.js"></script>
  9. <!--框架必需start-->
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  13. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  14. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  15. <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
  16. <link rel="stylesheet" type="text/css" id="customSkin"/>
  17. <!--框架必需end-->
  18. <!--树组件start-->
  19. <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
  20. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  21. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
  22. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
  23. <!--树组件end-->
  24. <script type="text/javascript" src="/nwyj/page/cockpit/webgis/util.js"></script>
  25. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/chartPage.css">
  26. <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/charTitle.css">
  27. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  28. <style type="text/css">
  29. *{
  30. margin: 0px;
  31. padding: 0px;
  32. font-size: 20px;
  33. line-height:1.4em;
  34. font-family:"微软雅黑", "宋体", arial;
  35. }
  36. body,html{
  37. background-color:#192735;
  38. width: 100%;
  39. height: 100%;
  40. overflow: hidden;
  41. }
  42. h2._head{
  43. font-size:30px;
  44. color: #e2ae05;
  45. text-align: center;
  46. }
  47. ._new_span{
  48. font-size:20px;
  49. }
  50. ._new_ul{
  51. margin: 0px 20px;
  52. list-style: none;
  53. }
  54. ._new_li{
  55. margin:20px 0px;
  56. padding: 2px 30px;
  57. height:30px;
  58. line-height:30px;
  59. list-style:none;
  60. white-space: nowrap;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. color:#ffffff;
  64. background-image: url("/nwyj/images/cockpit/char/specil_report.png");
  65. background-position:0;
  66. background-repeat: no-repeat;
  67. /* background-attachment: fixed; */
  68. }
  69. ._new_li_div{
  70. height:35px;
  71. line-height:35px;
  72. }
  73. ._icon_special{
  74. }
  75. ._fn_click{
  76. color: #eca606
  77. }
  78. ._fn_enter{
  79. color: #e55606
  80. }
  81. ._error{
  82. font-size: 14px;
  83. color:#ffffff;
  84. text-align: center;
  85. }
  86. </style>
  87. </head>
  88. <body>
  89. <div id="main_content"></div>
  90. <div id="choose_content">
  91. <h2>单位:</h2>
  92. <div id="compTree" class="selectTree _left_margin" selWidth="280" asyncMode="true" ></div></br>
  93. <h2 class="_center"><span class="_query_command">查询</span></h2>
  94. </div>
  95. <script type="text/javascript">
  96. //图表用参数
  97. // dept_id//user_id//user_name//dept_name
  98. var utils=new Util();
  99. var urlParams=utils.resolveUrl();
  100. var comId=urlParams["dept_id"];
  101. //查询条件配置参数
  102. var deptUrl=path+"ws/orgInDeptService/OrgInDeptService/getDeptRootById";
  103. function init(){
  104. // 添加额外属性主要用于最初的初始节点
  105. $("#compTree").attr('params', '{"deptId":"'+urlParams["dept_id"]+'"}');
  106. // 异步加载请求地址
  107. $("#compTree").attr('url', deptUrl);
  108. $.post(deptUrl, {"id" : urlParams["dept_id"]}, function(data) {$("#compTree").data("data", data);$("#compTree").render();}, "json");
  109. $("._query_command").on("click",query);
  110. }
  111. function query(){
  112. comId=$("#compTree").data("selectedNode").id;
  113. showNewList(comId);
  114. }
  115. $(function(){
  116. init()
  117. showNewList(comId);
  118. });
  119. //创建新闻列表
  120. function showNewList(comId){
  121. var xy_numb = $(top.document.body).find("#i_index_select_xiangyingtongzhidan").text();//获取当前响应编号
  122. $.post(path+"ws/NewServiceImpl/NewService/getNewsInfo",{"compId" : comId,"type":4},function(result){
  123. console.log("===="+JSON.stringify(result));
  124. if(result.state=="FAILURE") throw new Error("查询失败");
  125. $("#main_content").empty();
  126. if(result.rows.length>0){
  127. createList($("#main_content"),result,openNew)
  128. }else{
  129. $("#main_content").append("<p class='_error'>该部门目前未发布应急工作简报</p>");
  130. }
  131. },"json");
  132. }
  133. //创建列表
  134. function createList($maincon,paramsData,fn_click){
  135. $h2=$("<div class='jsc_chartitle'>应急简报<span class='_data_span'>(截止"+paramsData.rows["0"]["UPDATEDATE"]+")</span></div>")
  136. $div=$("<div class='_new_div'></div>");
  137. $ul=$("<ul class='_new_ul'></ul>");
  138. for(var index=0;index<paramsData.rows.length;index++){
  139. $ul.append("<li class='_new_li _icon_special'><div class='_new_li_div'>"+paramsData.rows[index]["REPORT_NAME"]+"("+paramsData.rows[index]["INPUT_DATE"]+")"+"</div></li>");
  140. $ul.find("li").last().data("liData",paramsData.rows[index]).on("click",function(){
  141. fn_click($(this).data("liData")["FD_OBJECTID"]);
  142. });
  143. }
  144. $div.append($ul);
  145. $maincon.append($h2).append($div);
  146. adaptHeight($maincon,$(window).height());
  147. enterLeaveClick($maincon);
  148. }
  149. $(window).resize(function(){
  150. adaptHeight($("#main_content"),$(window).height());
  151. });
  152. //绑定列表事件
  153. function openNew(objectId){
  154. window.open("/nwyj/page/business/em/response/report/reportInput1/detailReportInput.jsp?fd_id="+objectId, "查看应急工作简报");
  155. }
  156. //点击在线阅读
  157. </script>
  158. </body>
  159. </html>