123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>应急简报</title>
-
- <meta name="keywords" content="keyword1,keyword2,keyword3">
- <meta name="description" content="this is my page">
- <meta name="content-type" content="text/html; charset=UTF-8">
- <script type="text/javascript" src="/nwyj/page/cockpit/context.js"></script>
- <!--框架必需start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <script type="text/javascript" src="/nwyj/page/cockpit/webgis/util.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/chartPage.css">
- <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/charTitle.css">
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
- <style type="text/css">
- *{
- margin: 0px;
- padding: 0px;
- font-size: 20px;
- line-height:1.4em;
- font-family:"微软雅黑", "宋体", arial;
- }
- body,html{
- background-color:#192735;
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- h2._head{
- font-size:30px;
- color: #e2ae05;
- text-align: center;
- }
- ._new_span{
- font-size:20px;
- }
- ._new_ul{
- margin: 0px 20px;
- list-style: none;
- }
- ._new_li{
- margin:20px 0px;
- padding: 2px 30px;
- height:30px;
- line-height:30px;
- list-style:none;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- color:#ffffff;
- background-image: url("/nwyj/images/cockpit/char/specil_report.png");
- background-position:0;
- background-repeat: no-repeat;
- /* background-attachment: fixed; */
- }
- ._new_li_div{
- height:35px;
- line-height:35px;
- }
- ._icon_special{
- }
- ._fn_click{
- color: #eca606
- }
- ._fn_enter{
- color: #e55606
- }
- ._error{
- font-size: 14px;
- color:#ffffff;
- text-align: center;
- }
- </style>
- </head>
-
- <body>
- <div id="main_content"></div>
- <div id="choose_content">
- <h2>单位:</h2>
- <div id="compTree" class="selectTree _left_margin" selWidth="280" asyncMode="true" ></div></br>
- <h2 class="_center"><span class="_query_command">查询</span></h2>
- </div>
- <script type="text/javascript">
- //图表用参数
- // dept_id//user_id//user_name//dept_name
- var utils=new Util();
-
- var urlParams=utils.resolveUrl();
- var comId=urlParams["dept_id"];
- //查询条件配置参数
- var deptUrl=path+"ws/orgInDeptService/OrgInDeptService/getDeptRootById";
-
- function init(){
- // 添加额外属性主要用于最初的初始节点
- $("#compTree").attr('params', '{"deptId":"'+urlParams["dept_id"]+'"}');
- // 异步加载请求地址
- $("#compTree").attr('url', deptUrl);
- $.post(deptUrl, {"id" : urlParams["dept_id"]}, function(data) {$("#compTree").data("data", data);$("#compTree").render();}, "json");
- $("._query_command").on("click",query);
-
-
- }
- function query(){
- comId=$("#compTree").data("selectedNode").id;
- showNewList(comId);
- }
- $(function(){
- init()
- showNewList(comId);
- });
-
- //创建新闻列表
- function showNewList(comId){
- var xy_numb = $(top.document.body).find("#i_index_select_xiangyingtongzhidan").text();//获取当前响应编号
- $.post(path+"ws/NewServiceImpl/NewService/getNewsInfo",{"compId" : comId,"type":4},function(result){
- console.log("===="+JSON.stringify(result));
- if(result.state=="FAILURE") throw new Error("查询失败");
- $("#main_content").empty();
- if(result.rows.length>0){
- createList($("#main_content"),result,openNew)
- }else{
- $("#main_content").append("<p class='_error'>该部门目前未发布应急工作简报</p>");
- }
- },"json");
- }
-
- //创建列表
- function createList($maincon,paramsData,fn_click){
- $h2=$("<div class='jsc_chartitle'>应急简报<span class='_data_span'>(截止"+paramsData.rows["0"]["UPDATEDATE"]+")</span></div>")
- $div=$("<div class='_new_div'></div>");
- $ul=$("<ul class='_new_ul'></ul>");
- for(var index=0;index<paramsData.rows.length;index++){
- $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>");
- $ul.find("li").last().data("liData",paramsData.rows[index]).on("click",function(){
- fn_click($(this).data("liData")["FD_OBJECTID"]);
- });
- }
- $div.append($ul);
- $maincon.append($h2).append($div);
- adaptHeight($maincon,$(window).height());
- enterLeaveClick($maincon);
- }
- $(window).resize(function(){
- adaptHeight($("#main_content"),$(window).height());
- });
- //绑定列表事件
- function openNew(objectId){
- window.open("/nwyj/page/business/em/response/report/reportInput1/detailReportInput.jsp?fd_id="+objectId, "查看应急工作简报");
- }
- //点击在线阅读
- </script>
- </body>
- </html>
|