1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head style="overflow-y: hidden;">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="renderer" content="ie-stand" />
- <!-- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> -->
- <!-- <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1"/> -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><!-- 与网公司统一 -->
- <!-- webkit|ie-comp|ie-stand -->
- <!-- content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用极速模式,兼容模式,IE模式打开 -->
- <title>贵州电网应急指挥平台</title>
- <link rel="Shortcut Icon" href="/nwyj/images/favicon.ico" />
- <!--框架必需start-->
- <link href="/nwyj/css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <!-- 扩展工具js -->
- <!--取消无法登陆 start -->
- <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.nomin.js"></script>
- <!--取消无法登陆 end -->
-
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <!--获取登陆的用户信息 start -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/user/LoginInfo.js"></script>
- <!--获取登陆的用户信息 end -->
- <!--去掉主页面菜单不显示 start -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/userClickNum.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/init.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/menunwyj.js"></script>
- <script type="text/javascript" src='/nwyj/scripts/business/em/report/addDo.js'></script>
-
- <!--去掉主页面菜单不显示 end -->
-
- <!--jquerUI start -->
- <script src="/nwyj/scripts/jquery-ui-1.10.4.min.js"></script>
- <script src="/nwyj/scripts/jquery.mousewheel.min.js"></script>
- <script src="/nwyj/scripts/jquery.mCustomScrollbar.js"></script>
- <!--jquerUI end -->
-
- <!--框架必需start-->
- <!-- 重复注释开始 start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <!-- 重复注释结束 end -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/css/import_basic.css" />
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style1.css" rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
- positionTarget="positionContent" selInputHeight="32"
- selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
- defaultFileInputWidth="200" defaultGridHeaderHeight="34"
- defaultGridRowHeight="38" defaultFontSize="14" defaultPageSelWidth="55"
- defaultFilterItemHeight="32" dialogWidthFix="0"
- defaultSelItemHeight="32" defaultFontFamily="微软雅黑" />
- <link href="/nwyj/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" />
- <!--框架必需end-->
- <!--弹出式提示框start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <!--弹出式提示框end-->
- <!--日期start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!--日期end-->
- <!-- dwr 实现消息推送功能-->
- <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
- <script type='text/javascript' src='/nwyj/dwr/util.js'></script>
- <!--弹窗 start -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗 end -->
- <!--加载中开始-->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/loading/loading.js"></script>
- <link href="/nwyj/scripts/freamwork/com/sinosoft/system/loading/loading.css" rel="stylesheet" type="text/css"/>
- <!--加载中结束-->
- <!--动态选项卡start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/dynamicTab.js"></script>
- <!--动态选项卡end-->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/userClickNum.js"></script>
- <style type="text/css">
- /*全局样式*/
- * {
- margin: 0;
- padding: 0;
-
- }
- .frameWork_body {
- font-family: "宋体", "微软雅黑", arial;
- width: 100%;
- height: 100%;
- margin: 0 auto;
- }
- html{
- width: 100%;
- height: 100%;
-
- }
- body{
- width: 100%;
- height: 100%;
- }
- .content {
- margin: 0 auto;
- width: 100%;
- background : #f2f2f2;
- /* background: url("/nwyj/images/index/bg1.png") no-repeat;
- background-size:100% auto;
- background-size:auto 100%; */
- /* filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/nwyj/images/index/bg1.png',sizingMethod='scale');
- background-repeat: no-repeat;
- background-positon: 100%, 100%;
- font: normal 12px tahoma, arial, verdana, sans-serif;
- margin: 0;
- padding: 0;
- border: 0 none;
- overflow: hidden;
- height: 100%; */
- }
- a,a:link,a:visited {
- text-decoration: none;
- color: #000;
- }
- img {
- border: 0;
- }
- h4 {
- margin-top: 10px;
- margin-left: 5px;
- }
- hr {
- margin-bottom: 10px;
- height: 1px;
- border: none;
- border-top: 1px dashed #666;
- }
- /*头部样式*/
- .header {
- width: 100%;
- height: 110px;
- margin: 0 auto;
- position: relative;
- top: 0;
- }
- /*头部背景*/
- .header_bg {
- width: 100%;
- height: 77px;
- background: url(/nwyj/images/index/Top1.jpg) repeat-x;
- }
- /*头部logo*/
- .logo {
- display: block;
- position: absolute;
- top: 15px;
- left: 1.5%;
- width: 387px;
- height: 44px;
- }
- /*头部用户角色显示块*/
- .hg {
- position: absolute;
- display: block;
- top: 10px;
- right: 1.5%;
- text-align: right;
- }
- ._user_message div{
- height:30px;
- line-height: 30px;
- display: inline-block;
- }
- .exit_button{
- cursor:pointer;
- }
- ._user_message div span{
- color:#fff;
- }
- .hg .userAndTime img{
- vertical-align: text-bottom;
- }
- /*导航栏*/
- .nav_menu {
- width: 100%;
- height: 40px;
- background: #3f639f;
- position: relative;
- margin: 0 auto;
- }
- .nav_menu .nav_box {
- position: absolute;
- width: 100%;
- background: #FFF;
- overflow: hidden;
- height: 0;
- filter: alpha(opacity=0);
- opacity: 0;
- border-bottom: 2px solid #074c52;
- }
- /*搜索框块*/
- .search_bo {
- /*font-family:"宋体","微软雅黑";*/
- display: block;
- position: absolute;
- top: 82px;
- right:0.3%;
- z-index: 50;
- border:none;
- }
- /*搜索框*/
- .search_bo div{
- display: inline-block;
- border:none;
- }
- .search_bo .search_in {
- width: 140px;
- height: 25px;
- line-height: 25px;
- border-radius: 15px;/*
- background: rgba(255, 255, 255, 0.5);
- -pie-background :rgba(255, 255, 255, 0.5); */
- padding-left: 10px;
- padding-right:25px;
- behavior: url(/nwyj/scripts/freamwork/com/sinosoft/system/right/PIE.htc);/*搜索框圆角,但是会影响到半透明效果*/
- }
- /*搜索框中放大镜图标*/
- .search_img {
- position: relative;
- top: 2px;
- left: -30px;
- width: 12px;
- z-index: 800;
- }
- .search_img img {
- width: 18px;
- height: 18px;
- }
- /*导航栏菜单列表*/
- .nav .list {
- list-style-type: none;
- margin-left: 1.4%;
- width:98.6%;
- height:100%;
- }
- /*所有的导航栏菜单样式*/
- .nav .list li {
- float: left;
- height: 101.5%;
- width: 10%;
- line-height: 40px;
- }
- .nowCurrent,.nowCurrent1{
- background-color : #0f4a8b;
- }
- /*二三级菜单块*/
- .nav .list li .yj_menu_hover {
- float: left;
- display: block;
- color: #fff;
- width: 100%;
- text-align: center;
- }
- /*导航栏菜单图标*/
- .yj_menu_hover img {
- width: 16px;
- height: 16px;
- position: relative;
- top: 3px;
- }
- .yj_menu_hover span {
- margin-left: 5px;
- }
- .hover_cont {
- display: none;
- position: absolute;
- left:1.5%;
- border: 1px solid #ccc;
- border-top: 0;
- width:97%;
- background: #fff;
- filter:progid:DXImageTransform.Microsoft.Shadow(direction=120,strength=4);/*兼容ie*/
- -moz-box-shadow: 1px 4px 18px;/*兼容firefox*/
- -webkit-box-shadow: 1px 4px 18px;/*兼容safari或chrome*/
- box-shadow:1px 4px 18px;/*兼容opera或ie9*/
- z-index: 1000;
- }
- .hover_cont .nav_cont {
- padding: 3px 3px 30px;
- }
- .hover_cont .nav_li {
- border-bottom: 1px solid #ccc;
- display: inline-block;
- margin: 0 10px;
- padding: 4px 0 5px 0;
- width: 98%;
- }
- .hover_cont .nav_li_l {
- position:absolute;
- width: 120px;
- display:inline-block;
- vertical-align:top;
- color: #666;
- margin-top:7px;
- padding-left: 10px;
- text-align: center;
-
- }
- .fas{
- width:100%;
- display: inline-block;
-
- }
- .hover_cont .nav_li_r {
- display: inline-block;;
- font-family: "宋体";
- margin-left: 130px;
- }
- .verticalLine{
- position:absolute;
- margin-left:-10px;
- display:inline-block;
- color:#ccc;
- }
- .hover_cont .nav_li_r a {
- display: inline-block;
- margin: 10px 5px;
- color: #0066CC;
- height: 25px;
- line-height: 25px;
- text-decoration: none; */
- }
- .daiban {
- background-color: #f00;
- border-radius: 25px;
- height: 20px;
- line-height:20px;
- left: 58%;
- position: absolute;
- top: 0;
- width: 20px;
- behavior: url(/nwyj/scripts/freamwork/com/sinosoft/system/right/PIE.htc);
- }
- .nodaiban {
- display: none;
- }
- .daibanshu {
- /* height: 8px;
- line-height: 13px; */
- display: block;
- color: #FFF;
- text-align: center;
- /* margin: 2px; */
- font-size: 12px;
- }
- .sys_msg {
- width: 310px;
- height: 175px;
- background: #f7f7f7;
- position: relative;
- top: -177px;
- left: 1052px;
- display: none;
- }
- .sys_msg .sys_msg_title {
- width: 100.5%;
- height: 30px;
- line-height: 30px;
- border-radius: 3px;
- background: url("/nwyj/images/index/index_bg.png") repeat-x;
- color: #fff;
- }
- .sys_msg_title a {
- position: absolute;
- left: 280px;
- width: 25px;
- height: 25px;
- margin-top: 2px;
- line-height: 35px;
- text-align: center;
- }
- .sys_msg_title a:hover {
- background: #fff;
- }
- .sys_msg_title a img {
- width: 20px;
- height: 20px;
- }
- .sys_msg_cont ul {
- list-style-type: none;
- margin-left: 10px;
- }
- .sys_msg_cont ul li {
- margin-top: 5px;
- }
- .sys_msg_cont ul li img {
- margin: 0 10px 0 0;
- width: 16px;
- height: 16px;
- }
- /*hxb 2015-09-11 add*/
- /* .mainPage {
- margin: 0 auto;
- width: 100%;
- height: 545px;
- background: url("../images/index/bg.png") no-repeat;
- background-size: 100% 100%;
- } */
- .currPosition{
- width:100%;
- height:40px;
- line-height:40px;
- background: #fff;
- display: none;
- position:relative;
- border-bottom: 1px solid #cdcaca;
- }
- .positionMsg{
- position:absolute;
- text-align: left;
- margin-left: 1.5%;
- color:#22296E;
- }
- .positionMsg div{
- float: left;
- }
- #positionTitle1{
- font-weight: bold;
- font-size: 16px;
- padding-left: 30px;
- margin-left: 0px;
- color:#000;
- }
- .positionTab{
- padding: 0 20px;
- margin-left: 10px;
- cursor: pointer;
- color:#7d7d7d;
- }
- .positionTab:hover{
- background-color: #3c95c8;
- color:#fff;
- }
- .positionTabCurrent{
- color:#0196e8;
- border-bottom: 3px solid #006cff;
- }
- .clear{
- clear:both;
- }
- .changeYQ{position:absolute;right:10px;display: inline-block;text-align: right;}
- .setTabBtn{
- cursor: pointer;
- width: 100%;
- color: #787878;
- font-size: 14px;
- font-family: '微软雅黑';}
- .tablistcon{
- margin-top: -10px;
- right: 3px;
- display: none;
- padding: 5px;
- border: 1px solid #cdcaca;
- background: white;
- filter:progid:DXImageTransform.Microsoft.Shadow(direction=150,strength=5,color=#999999);/*兼容ie*/
- -moz-box-shadow: 1px 3px 6px #999999;/*兼容firefox*/
- -webkit-box-shadow: 1px 3px 6px #999999;/*兼容safari或chrome*/
- box-shadow:1px 3px 6px #999999;/*兼容opera或ie9*/
- }
- .tablistcon .tablistcon_div{border-bottom: 1px solid #cdcaca;}
- .tablistcon ul{list-style: none;}
- .tablistcon ul li{
- list-style: none;
- height: 30px;
- line-height: 30px;
- text-align: left;
- min-width: 150px;
- font-family: '微软雅黑';
- cursor:pointer;}
- .tablistcon ul li .tabselect{color:#787878;font-size: 12px;padding-left: 20px;}
- .tablistcon .tab_setbtn{
- height: 20px;
- line-height: 20px;
- background-color: #6a6868;
- border-radius: 2px;
- width: 68px;
- /* margin-top: 5px; */
- margin: 0 auto;
- margin-top: 5px;
- font-size: 12px;
- color: white;
- text-align: center;
- cursor:pointer;
- font-family: '微软雅黑';}
-
- .tab_selected {
- border: 0;
- background-image: url(/nwyj/scripts/qui/libs/images/icons/checkbox2.png);
- background-repeat: no-repeat;
- background-position: 0 50%;
- _background-position: 0 50%;
- }
- .tab_noselect {
- border: 0;
- background-image: url(/nwyj/scripts/qui/libs/images/icons/checkbox1.png);
- background-repeat: no-repeat;
- background-position: 0 50%;
- _background-position: 0 50%;
- }
- .positionTabParent {
- position: relative;
- }
- .positionTabChild {
- clear: both;
- text-align: center;
- margin-left: 0px;
- padding: 0 20px;
- }
- .chlid_con {
- position: absolute;
- display: none;
- top: 35px;
- background-color: #fff;
- border: 1px solid #ccc;
- left: 0px;
- text-align: center;
- }
- .main_index_tab{
- width:100%;
- height:40px;
- background: #fff;
- display: none;
- position:relative;
- border-bottom: 1px solid #cdcaca;
- }
- div.main_index_closeimg{
- top: 10px;
- right: 10px;
- position: absolute;
- border: 0px none;
- width: 19px;
- height: 19px;
- display: inline-block;
- z-index: 99;
- }
- .aresphref{
- color: #848484;
- display:inline-block;
- position: relative;
- }
- .aresphref b{
- font-weight:normal;
- margin-left: 30px;
- display: inline-block;
- height: 24px;
- line-height: 24px;
- }
- .aresphref u{
- position: absolute;
- top:0px;
- display: inline-block;
- background: url(/nwyj/images/index/idx_main/alert_icon.png) no-repeat;
- width: 28px;
- height: 24px;
- }
- .aresphref b:hover{
- color: blue;
- cursor:pointer;
- text-decoration: underline;
- }
- </style>
- </head>
- <!-- <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);" > -->
- <body onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true); dwr.engine.setOrdered(true) ;dwr.engine.setAsync(true);">
- <div class="frameWork_body">
-
- <div class="header">
- <div class="header_bg"></div>
- <!--logo图片-->
- <div class="logo" id="logo">
- <a href="javascript:;"><img src="/nwyj/images/index/logo.png"/></a>
- </div>
- <div class="hg">
- <div class="userAndTime">
- <div class="_user_message">
- <!-- 欢迎xxx -->
- <div >
- <span id="showuser_span"></span>
- </div>
- <!-- 刷新按钮 -->
- <span class="exit_button" id="fress_button" title="刷新" onclick='javascript:fressSys();'>
- <img style="width:17px;" src="/nwyj/images/framework/fressIcon.png">
- </span>
- <!-- 退出按钮 -->
- <span class="exit_button" id="exit_button" title="退出" onclick='javascript:exitSys();'>
- <img src="/nwyj/images/index/exit1.png">
- </span>
- </div>
- <!--显示当前时间-->
- <div class="time" id="time"></div>
- </div>
- </div>
-
- <!--导航栏-->
- <div class="nav_menu">
- <div class="nav" id="mainNav">
- <!--菜单列表-->
- <ul class="list" id="list">
-
- </ul>
- <div class="clear"></div>
- </div>
- <div class="nav_box" id="navbox" style="height:0px;opacity:0;overflow:hidden;">
-
- </div>
- </div>
- <div class="search_bo" id="search_bo">
- <div>
- <input type="text" value="请输入关键字" class="search_in" id="search_in"/>
- </div>
- <div class="search_img" id="search_img" >
- <a href="javascript:;">
- <img src="/nwyj/images/index/searchBtn.png">
- </a>
- </div>
- </div>
-
- </div>
- <!-- 内容部分 -->
- <div class="content"
- style="margin:0 auto;text-align:center; left: 0px; top:7px; bottom: 0px; position:relative; right: 0px; background-color: #f1f1f1;index:0"
- id="map">
- <div id="main_index_fixed" class="main_index_tab" style="display: none;"></div>
- <div id="main_index_tab" class="main_index_tab"><div id="main_index_tab_cont"></div><div id="main_index_closeimg" class="main_index_closeimg cont_close1 " style="display: none;" ></div></div>
- <div id="currPosition" class="currPosition"><div class="positionMsg" id="positionMsg"><div id="positionTitle1"></div></div></div>
- <div class="activeTabDiv">
- <div id="active_tab_menu"></div>
- <div id="active_page"></div>
- </div>
-
- <!-- <span class="icon_fullscreen" id="fullSrceen" hideNav="true">开启全屏</span> -->
- <IFRAME allowTransparency="true" width="99%" scrolling="no" frameBorder="0" id="frmright" name="frmright" src="" allowTransparency="true" ></IFRAME>
- </div>
- <!-- 右下角弹窗 系统消息等 -->
- <div class="sys_msg" id="sys_msg">
- <div class="sys_msg_title">
- 信息提示<a href="javascript:;" id="close_sys_msg"><img
- src="/nwyj/images/index/delete.png"></a>
- </div>
- <div class="sys_msg_cont" id="sys_msg_cont">
- <form>
- <ul>
- <li><img src="/nwyj/images/index/biaozhu.png"><a><span>防风防汛-F-2015-0905</span></a></li>
- </ul>
- </form>
- </div>
- </div>
-
- </div>
- <script type="text/javascript" >
- var option = $.getLoadingCSS(1);
- activeTab = null;//声明动态选项卡对象
- $(function(){
- /*点击节点时隐藏当前位置的设置内容框*/
- $(document).live('click',function(e){
- var e = e || window.event; //浏览器兼容性
- var elem = e.target || e.srcElement;
- while (elem) { //循环判断至跟节点,防止点击的是div子元素
- if (elem.id && elem.id=='tablistcon') {
- return;
- }
- elem = elem.parentNode;
- }
-
- $('#tablistcon').css('display','none'); //点击的不是div或其子元素
- });
-
-
- //显示加载等待
- frameWorkShowLoading();
- //设置页面最小高度
- //$("#frmright").css("min-height",$(window.document.body).height()-160);
- $("#frmright").css("min-height",$(window.document.body).height()-116);
- $(top.window).scroll( function() {
- var _thisScroll = $(this);
- var scroH = _thisScroll.scrollTop();
- if(scroH>120){
- if(document.getElementById("main_index_tab").style.display=="block"){
- $("#main_index_fixed").show();
- }
- $("#main_index_tab").css({"top":"0px","left": "0px","position":"fixed","line-height":"40px"});
- }else{
- $("#main_index_fixed").hide();
- $("#main_index_tab").css({"position":"relative","line-height":""});
- }
- scroH = null;
- _thisScroll = null;
- });
- //滚动隐藏日历
- hiddenWaterPicker();
- $("html").css({"overflow":"scroll","overflow":"-Scroll","overflow-y":"auto"});
- //当前位置处,链接文字绑定事件
- $(".positionTab").live("click",function(){
- $("#frmright").show();
- $("#active_page iframe").hide();
-
- if($(this).hasClass("positionTabParent")){//若有子页签
- var childCon = $(this).find(".chlid_con");
- childCon.toggle();
- }else{
- var imgclass = $("#positionTitle1").data("imgclass");
- var thisSrc = $(this).data("src");
- var frmSrc = $("#frmright").attr("src");
- //前一个页面时预警(响应)通知单页面的某个子页签,当前页面也是预警(响应)通知单页面的子页签时,不改变iframe的src值,只改变通知单的查询条件,重置通知单列表表格的数据
- if(frmSrc.indexOf("Warning.jsp")>-1 && thisSrc.indexOf("Warning.jsp")>-1 &&
- ((frmSrc.indexOf("yj_")>-1 && thisSrc.indexOf("yj_")>-1)||(frmSrc.indexOf("xy_")>-1 && thisSrc.indexOf("xy_")>-1))){
- var zt = thisSrc.split("?")[1].split("_")[1];
- top.document.getElementById("frmright").contentWindow.selectCompResetGrid(null,null,null,thisSrc,zt);
-
- }else{
- $("#frmright").attr("src",thisSrc);
- }
- if(thisSrc.indexOf("Warning.jsp")>-1){//重置表头按钮权限
- var zt = thisSrc.split("?")[1].split("_")[1];
- if(typeof top.document.getElementById("frmright").contentWindow.chongZhiQuanXian != "undefined")
- top.document.getElementById("frmright").contentWindow.chongZhiQuanXian(zt);
-
- }
- $(".positionTabCurrent").removeClass("positionTabCurrent");
- $(this).addClass("positionTabCurrent");
- }
- })
- /* $(".chlid_con").live("mouseleave",function(){
- $(this).hide();
- }); */
- $(".positionTabParent").live("mouseleave",function(){
- $(this).find(".chlid_con").hide();
- });
- var preUrl = "";
- //iframe绑定onload事件
- $('#frmright').on('load',function(){
-
- $("#active_tab_menu").empty();
- $("#active_page").empty();
- activeTab = null;
- $("#frmright").show();
-
- /*点击节点时隐藏当前位置的设置内容框*/
- $(document.getElementById("frmright").contentWindow.document).live("click", function(e){
- $(top.document.body).find('#tablistcon').css('display','none'); //点击的不是div或其子元素
- });
-
- //当iframe页面加载完成后取消加载页面
- $("#map").indexLoading(option).hide();
- //$("#map").css("height","");
- //var imgclass = $("#positionTitle1").attr("class");
-
- var frmsrc = $(this).attr("src").split("?")[0];
- lockAlter(preUrl,frmsrc);
- //alert(preUrl+"==="+frmsrc);
- preUrl = $(this).attr("src");
- if(frmsrc == "/nwyj/page/business/em/response/emergencyResponse/WarningReleaseMatter.jsp" ){
- $("#currPosition .changeYQ").remove();
- var data = [{"menuData":{"imgClass":"/nwyj/images/index/idx_em/idx_em_resp_tongzhidan.png","menu_id":"40301","menu_name":"响应通知单管理"}},{"tabData":[{"YQ_ID":"xytzd_xytzd","FD_OBJECTID":"1190002586658624700","UPDATEDATE":null,"current":"true","YQ_SRC":"/nwyj/page/business/em/response/emergencyResponse/Warning.jsp","YQ_CDNAME":"响应通知单管理","YO_CDID":"40301","YQ_SORT":"0","YQ_NAME":"响应通知单管理","IS_DEL":null},{"YQ_ID":"xytzd_lscx","FD_OBJECTID":"1190002586658624800","UPDATEDATE":null,"YQ_SRC":"/nwyj/page/business/em/response/emergencyResponse/WarningHistory.jsp","YQ_CDNAME":"响应通知单管理","YO_CDID":"40301","YQ_SORT":"1","YQ_NAME":"响应通知单历史查询","IS_DEL":null}]}]
- tabPosition(data[1].tabData,"40301","idx_em_resp_tongzhidan");
-
- }else{
- getAndChangeTab(frmsrc);
- }
- //通知单从统计页签转到其他页签时,重置表格按钮权限
- var thisSrc = $(".positionTabCurrent").attr("data-src");
- if(thisSrc && thisSrc.indexOf("Warning.jsp")>-1 && thisSrc.indexOf("?")>-1&& thisSrc.indexOf("_")>-1){//重置表头按钮权限
- var zt = thisSrc.split("?")[1].split("_")[1];
- if(typeof top.document.getElementById("frmright").contentWindow.chongZhiQuanXian != "undefined")
- top.document.getElementById("frmright").contentWindow.chongZhiQuanXian(zt);
-
- }else if(frmsrc && frmsrc.indexOf("Warning.jsp")>-1){
- var zt = "dangqian";
- top.document.getElementById("frmright").contentWindow.selectCompResetGrid(null,null,null,frmsrc,zt);
- if(typeof top.document.getElementById("frmright").contentWindow.chongZhiQuanXian != "undefined")
- top.document.getElementById("frmright").contentWindow.chongZhiQuanXian(zt);
- }
- window.scrollTo(0, 0);
- });
- })
-
- //显示加载等待
- function frameWorkShowLoading(){
- //$("#map").css("height",$(window.document.body).height()-125);
- $("#map").indexLoading(option).show();
- }
- /**
- * 刷新
- */
- function fressSys(){
- var mainurl = $("#frmright").attr("src");
- //alert(mainurl);
- frameWorkShowLoading();
- $("#frmright").attr("src", mainurl);
- }
-
- function hiddenWaterPicker(){
- $(top.document).find("body").get(0).onmousewheel=function(){
- $(".c_wdate").hide();
- }
- }
-
- //每次跳转页面时,判断是否为“菜单”页,如果是,则改变当前位置的显示
- function getAndChangeTab(frmsrc){
- var pos_menuid = $("#positionMsg #positionTitle1").data("menuid");
- //alert(pos_menuid)
- var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- $.ajax({
- url : $.pathname() + '/ws/sys/SysCustomMenuService/getMenuInfoByUrl',
- type : 'post',
- data : {frmsrc:frmsrc,userId:user_id},
- dataType : 'text',
- success : function(data) {
- if(data!=""){
- data = eval('('+data+')');
- var menuId = "";
- var imgclass = "";
- //alert(pos_menuid != data[0].menuData.menu_id)
- if(data[0].menuData!={} && data[0].menuData.menu_id!="" && pos_menuid != data[0].menuData.menu_id){
- menuId = data[0].menuData.menu_id;
- imgclass = data[0].menuData.imgClass;
- imgclass = imgclass.substring(imgclass.lastIndexOf("/")+1,imgclass.indexOf(".png"))
- var menuName3 = data[0].menuData.menu_name;
- $("#positionMsg").html("<div id='positionTitle1' class='"+imgclass+"'>"+menuName3+"</div>");
- $("#positionMsg #positionTitle1").data("menuid",menuId).data("imgclass",imgclass);
- if(parseInt(menuId)>10){
- $("#currPosition").show();
- }
- }
- if((menuId!="" && parseInt(menuId)>10)){
- $("#currPosition").show();
- $("#currPosition .changeYQ").hide();
- }else if(menuId==2 || menuId==7){
- $("#currPosition").hide();
- }
- if(data.length>1 && data[1].tabData.length>0 && menuId.length>0){
-
- $("#currPosition .changeYQ").remove();
- var curSrc = tabPosition(data[1].tabData,menuId,imgclass);
- /* menuUri = curSrc!="" && curSrc!=undefined?curSrc:menuUri;
- var frmUrl = $("#frmright").attr("src");
- frmUrl = frmUrl.split("?")[0];
- if(menuUri != frmUrl){
- $("#frmright").attr("src",menuUri+"?menu_id="+menuId+"&&imgclass="+imgclass);
- }
- */
- }
- /* data = data.substring(data.lastIndexOf("/")+1,data.indexOf(".png"))
- $("#positionTitle1").attr("class",data);
- $("#currPosition").show(); */
-
- }
- },
- error : function(e) {
- $.messager.alert('访问服务失败!', 'error');
- }
- });
- }
-
- //跳转页面的时候给修改页面解锁
- function lockAlter(preUrl,frmsrc){
- var altUrl='/nwyj/page/business/em/report/alterReportRequire.html';
- var altUrl2 ='/nwyj/page/business/em/report/reportDept/alterReportRequire.html';
- var altUrl1='/nwyj/page/business/em/report/Report_Alter.html';
- var preUrl1=preUrl.split("?")[0];
- if(preUrl1==altUrl||preUrl1==altUrl2){
- var fd_id=preUrl.split("?")[1];
- updateOperate($.pathname() + "/ws/xianlutingyun/XianlutingyunService/updateStat",{fd_id:fd_id,check:"",table:'report_schedule'});
- }else if(preUrl1==altUrl1&&frmsrc.split("?")!=altUrl1){
- var fd_id=preUrl.split("?")[3];
- updateOperate($.pathname() + "/ws/xianlutingyun/XianlutingyunService/updateStat",{fd_id:fd_id,check:"",table:'report_records'});
- }
- }
-
- //消息推送用到的方法
- function sendMessage(msg){
- $("#message").show();
- $(".boxContent").html("");
- $.messager.lays(310,175);
- //msg = "<a href=\"javascript:void(0)\" onclick=\"openZ('/nwyj/page/business/public/FileEMInfo.jsp')\">ceshi</a>"
- $.messager.show(0,msg,"stay");
- $(".boxContent").html(msg);
- $("#message").css("position","fixed");
- //$.messager.show(0,msg);
- }
-
- function openZ(url){
- window.parent.parent.document.getElementById("frmright").setAttribute("src", url);
- $("#message_close").click();
- $("#message").hide();
- }
-
-
- function getDbMsg(msg){
- $("#daibanshu").text(msg);
- }
-
- function receiveMessage(){
- alert("已接收信息");
- }
-
-
- function openY(data){
-
- $("#frmright").attr("src",data);
- $(".messager-body").window('close');
- }
- // function dwrUpdateWarning(){
- // alert("通知单发布后,调用成功!")
- // }
-
- //记录选项卡个数
- var index = 0;
- //创建动态选项卡容器
- function createActiveTab(title,url){
- index++;
- if(activeTab){//如果有选项卡
- activeTab.add( {
- id :"tab_index"+index,
- title :title,
- url :url,
- isClosed :true
- });
- }else{
-
- $("#active_tab_menu").empty();
- $("#active_page").empty();
- $("#frmright").hide();
- activeTab = new TabView( {
- containerId :"active_tab_menu",
- pageid :"active_page",
- cid :"active_tab",
- position :"top"
- });
- index = 0;
- activeTab.add( {
- id :"tab_index"+index,
- title :title,
- url :url,
- isClosed :true
- });
- }
- //关闭标签事件
- $("body").bind("dynamicTabClose",function(e,tabId){
- //如果最后一个选项卡都关闭了
- if($("#active_page").find("iframe").length==0){
- $("#active_tab_menu").empty();
- $("#active_page").empty();
- activeTab = null;
- $("#frmright").show();
- if(typeof document.getElementById("frmright").contentWindow.setHight != "undefined"){//重置子页面高度
- document.getElementById("frmright").contentWindow.setHight();
- }
- }
- })
- //标签激活事件
- $("body").bind("dynamicTabActived",function(e,tabId){
- if(typeof document.getElementById("page_"+tabId).contentWindow.setHight != "undefined"){//重置子页面高度
- document.getElementById("page_"+tabId).contentWindow.setHight();
- }
- $("#frmright").hide();
-
- })
- }
- //手动调用方法关闭某动态选项卡,用途:某页面完成业务后跳转到主页面时
- function closeActive(url){
- if(activeTab){
- var id = "";
- var $ifrm = $("#active_page iframe");
- //通过循环查找到处于显示状态的选项卡id,获取序号拼成选项卡id
- for (var i = 0; i < $ifrm.length; i++) {
- if($ifrm.eq(i).css("display")!="none"){
- var iframe_id = $ifrm.eq(i).attr("id");
- var index = iframe_id.substring(iframe_id.length-2);
- id = "tab_index"+index;
- }
- }
- //关闭该选项卡
- activeTab.close(id);
- //隐藏其他选项卡
- $("#active_page iframe").hide();
- //主页面的iframe路径赋值
- $("#frmright").attr("src",url);
- $("#frmright").show();
- }
- }
- </script>
- </body>
- </html>
|