main_index11.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta name="renderer" content="ie-stand" />
  6. <!-- webkit|ie-comp|ie-stand -->
  7. <!-- content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用极速模式,兼容模式,IE模式打开 -->
  8. <title>首页</title>
  9. <link rel="Shortcut Icon" href="../images/favicon.ico" />
  10. <!--框架必需start-->
  11. <script type="text/javascript" src="../scripts/qui/libs/js/jquery.js"></script>
  12. <script type="text/javascript"
  13. src="../scripts/freamwork/com/sinosoft/system/user/LoginInfo.js"></script>
  14. <script src="../scripts/jquery-ui-1.10.4.min.js"></script>
  15. <script src="../scripts/jquery.mousewheel.min.js"></script>
  16. <script src="../scripts/jquery.mCustomScrollbar.js"></script>
  17. <!--框架必需start-->
  18. <script type="text/javascript"
  19. src="../scripts/qui/libs/js/language/cn.js"></script>
  20. <script type="text/javascript" src="../scripts/qui/libs/js/framework.js"></script>
  21. <script type="text/javascript" src="../scripts/qui/libs/js/main.js"></script>
  22. <link rel="stylesheet" type="text/css"
  23. href="../scripts/qui/libs/css/import_basic.css" />
  24. <link href="../scripts/qui/libs/skins/flatBlue/style.css"
  25. rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
  26. positionTarget="positionContent" selInputHeight="32"
  27. selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
  28. defaultFileInputWidth="200" defaultGridHeaderHeight="34"
  29. defaultGridRowHeight="38" defaultFontSize="14" defaultPageSelWidth="55"
  30. defaultFilterItemHeight="32" dialogWidthFix="0"
  31. defaultSelItemHeight="32" defaultFontFamily="微软雅黑" />
  32. <!--框架必需end-->
  33. <!-- 扩展工具js -->
  34. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  35. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  36. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  37. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
  38. <script type="text/javascript" src="/nwyj/scripts/commom/common/common.js"></script>
  39. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  40. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  41. <script type="text/javascript" src="../scripts/freamwork/com/sinosoft/system/right/main_index.js"></script>
  42. <script type="text/javascript" src="../scripts/setiframeheight.js"></script>
  43. <style type="text/css">
  44. /*全局样式*/
  45. * {
  46. margin: 0;
  47. padding: 0;
  48. }
  49. body {
  50. font-family:"宋体", "微软雅黑", arial;
  51. color: #333;
  52. width: 100%;
  53. margin:0 auto;
  54. height: 545px;
  55. background-color: transparent;
  56. }
  57. ._contentbackground{
  58. position: fixed;
  59. width: 100%;
  60. height:100%;
  61. z-index: -1;
  62. }
  63. ._contentbackground img{
  64. width: 100%;
  65. height:100%;
  66. }
  67. a,a:hover,a:link,a:visited {
  68. text-decoration: none;
  69. color:#666;
  70. }
  71. img {
  72. border: 0;
  73. }
  74. h4{
  75. margin-top:10px;
  76. margin-left: 5px;
  77. }
  78. hr{
  79. margin-bottom: 10px;
  80. height:1px;
  81. border:none;
  82. border-top:1px dashed #666;
  83. }
  84. .main_bg{
  85. margin: 0px auto 0 auto;
  86. width: 100%;
  87. color: #666;
  88. height:100%;
  89. }
  90. .left_area {
  91. width: 300px;
  92. /* height: 800px; */
  93. position: absolute;
  94. left: 0;
  95. top: 15px;
  96. }
  97. .right_area {
  98. height: 600px;
  99. position: absolute;
  100. right:0;
  101. top: 15px;
  102. }
  103. .work_options {
  104. position: relative;
  105. top: 10px;
  106. display: block;
  107. width: 300px;
  108. height: 55px;
  109. }
  110. .work_options a {
  111. float: left;
  112. }
  113. .work_button {
  114. position: relative;
  115. margin: 0 0 0 2px;
  116. width: 140px;
  117. height: 40px;
  118. line-height:42px;
  119. text-align: center;
  120. background: #f7f7f7;
  121. }
  122. .diy_area {
  123. width: 300px;
  124. height: 400px;
  125. display: block;
  126. position: relative;
  127. top: 30px;
  128. margin-left: 35px;
  129. }
  130. .more_nav {
  131. display: none;
  132. width: 1020px;
  133. position: absolute;
  134. top: 15px;
  135. /*background-color: rgba(24, 43, 222, 0.1);*/
  136. background-color:#f7f7f7;
  137. z-index: 8000;
  138. border: 1px solid #666;
  139. left: 10%;
  140. }
  141. .quick_nav,.quick_nav_more {
  142. float: left;
  143. /* width: 132px; */
  144. width: 100px;
  145. height: 85px;
  146. font-size: 12px;
  147. background-color: #f7f7f7;
  148. color: #666;
  149. text-align: center;
  150. border: 1px solid transparent;
  151. margin: 0 15px 6px 0;
  152. }
  153. .menu_data {
  154. display: none;
  155. }
  156. .quick_nav img,.quick_nav_more img {
  157. margin-top: 10px;
  158. width: 40px;
  159. height: 40px;
  160. }
  161. .quick_nav_more {
  162. margin: 5px 5px 5px 7px;
  163. height: 75px;
  164. }
  165. .quick_nav:HOVER,.quick_nav_more:HOVER {
  166. box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  167. rgba(0, 0, 0, 0.2);
  168. -webkit-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  169. rgba(0, 0, 0, 0.2);
  170. -moz-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  171. rgba(0, 0, 0, 0.2);
  172. -ms-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  173. rgba(0, 0, 0, 0.2);
  174. -o-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  175. rgba(0, 0, 0, 0.2);
  176. border: 1px solid #aaa;
  177. }
  178. .select_more {
  179. height: 85px;
  180. line-height: 85px;
  181. text-align: center;
  182. font-size: 20px;
  183. padding: auto;
  184. font-weight: bold
  185. }
  186. .handle_button_remove{
  187. width:16px;
  188. height:16px;
  189. position: absolute;
  190. top: -8px;
  191. right: 3px;
  192. }
  193. .handle_button_remove img{
  194. width: 16px;
  195. height:16px;
  196. }
  197. .handle_button_add {
  198. display: none;
  199. width: 100%;
  200. height: 22px;
  201. line-height:22px;
  202. background-color: #e1e0cd;
  203. position: relative;
  204. top:-40px;
  205. }
  206. .handle_button_add img {
  207. width: 15px;
  208. height: 15px;
  209. position: relative;
  210. top: -15px;
  211. }
  212. .options {
  213. width: 100%;
  214. height: 425px;
  215. position: relative;
  216. top: -10px;
  217. color: #666;
  218. }
  219. .more_title {
  220. width: 100%;
  221. height: 30px;
  222. line-height: 25px;
  223. font-size: 14px;
  224. background-color: #003c78;
  225. color: #fff;
  226. position: relative;
  227. top:-10px;
  228. }
  229. .more_title .close_more{
  230. position: relative;
  231. top: -23px;
  232. right: -998px;
  233. width: 25px;
  234. height:25px;
  235. color: #fff;
  236. }
  237. .close_more img{
  238. width:20px;
  239. height:20px;
  240. }
  241. .close_more img:HOVER{
  242. background-color: #fff;
  243. }
  244. .options_list{
  245. width:98%;
  246. padding:0 10px 10px 10px;
  247. }
  248. .quick_nav_name {
  249. white-space: nowrap;
  250. width: 100px;
  251. margin-top: 5px;
  252. overflow: hidden;
  253. position: relative;
  254. top: -12px;
  255. text-overflow: ellipsis;
  256. color: #666;
  257. }
  258. .nav_more_ytj{
  259. width:75px;
  260. height: 75px;
  261. margin: 0 10px 0 10px;
  262. position: relative;
  263. }
  264. .nav_more_ytj .quick_nav_name{
  265. width: 100%;
  266. margin-top:0;
  267. color:#8e5757;
  268. padding: 0 2px;
  269. }
  270. .nav_more_ytj a{
  271. height: 100%;
  272. width:100%;
  273. }
  274. .nav_more_all{
  275. width: 85px;
  276. }
  277. .nav_more_all .quick_nav_name{
  278. width: 85px;
  279. }
  280. .add_more{
  281. margin:5px 10px 0 10px;
  282. width: 75px;
  283. height: 75px;
  284. line-height:88px;
  285. position: relative;
  286. top: -4px;
  287. background-color: #fff;
  288. box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  289. rgba(0, 0, 0, 0.2);
  290. -webkit-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  291. rgba(0, 0, 0, 0.2);
  292. -moz-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  293. rgba(0, 0, 0, 0.2);
  294. -ms-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  295. rgba(0, 0, 0, 0.2);
  296. -o-box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.2), 1px 1px 4px
  297. rgba(0, 0, 0, 0.2);
  298. border: 1px solid #aaa;
  299. }
  300. .add_more img{
  301. width:25px;
  302. height: 25px;
  303. }
  304. .ytj{
  305. width:100%;
  306. height:85px;
  307. }
  308. .right1 {
  309. width: 425px;
  310. background-color: #f7f7f7;
  311. border-radius: 5px;
  312. margin: 0 0 10px 10px;
  313. height:260px;
  314. }
  315. .right2 {
  316. width: 205px;
  317. background-color: #f7f7f7;
  318. border-radius: 5px;
  319. margin: 0 0 10px 10px;
  320. }
  321. .right1 .right1_title {
  322. width: 99.5%;
  323. height: 25px;
  324. line-height: 25px;
  325. background-color: #003c78;
  326. color: #fff;
  327. padding: 2px 1px 5px 2px;
  328. }
  329. .right1 .right1_title div {
  330. float: left;
  331. margin-left: 10px;
  332. line-height: 200%;
  333. }
  334. .right1 .right1_title div img{
  335. vertical-align: sub;
  336. }
  337. .right1_title div a{
  338. float: right;
  339. color: #fff;
  340. margin-right: 5px;
  341. }
  342. .right1_title div a:hover{
  343. text-decoration: underline;
  344. }
  345. /* .right1 ul {
  346. margin: 10px 0 0 10px;
  347. } */
  348. .right1 ul li {
  349. height: 35px;
  350. width: 100%;
  351. line-height: 35px;
  352. }
  353. .right1 ul li div {
  354. display: inline-block;
  355. float:left;
  356. }
  357. .right_more_alert{
  358. position: absolute;
  359. right: 10px;
  360. }
  361. .liIndex{
  362. margin: 0 5px;
  363. font-weight: bold;
  364. vertical-align: top;
  365. }
  366. .liContent{
  367. cursor: pointer;
  368. width:315px;
  369. white-space: nowrap;
  370. overflow: hidden;
  371. text-overflow: ellipsis;
  372. }
  373. .liContent:hover{
  374. color:blue;
  375. text-decoration: underline;
  376. }
  377. .row0{
  378. background-color: #e3e8ee;
  379. }
  380. .newStyle{
  381. border: 0;
  382. background-image: url(/nwyj/images/index/new_03.png);
  383. background-repeat: no-repeat;
  384. background-position: 100% 50%;
  385. _background-position: 0 40%;
  386. padding: 0 78px 0 0;
  387. display:inline-block;
  388. white-space:nowrap;
  389. word-break: keep-all;
  390. word-wrap: normal;
  391. }
  392. .clear{
  393. clear: both;
  394. }
  395. </style>
  396. <script type="text/javascript">
  397. $(function(){
  398. var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();//用户id
  399. var dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();//部门id
  400. $.ajax({
  401. url : $.pathname() + '/ws/xianlutingyun/XianlutingyunService/getAlertList',
  402. type : "post",
  403. data : {"user_id":user_id,"dept_id":dept_id},
  404. dataType : "json",
  405. success : function(data) {
  406. createAlertMsgList(data);
  407. }
  408. });
  409. });
  410. //生产预警、响应通知单信息列表
  411. function createAlertMsgList(alertMsgJson){
  412. //容器
  413. var $rightCont = $("#right_area .right1");
  414. //title
  415. var $rightTitle = $('<div class="right1_title"><div><img src="../images/index/task_img.png"></div><div>预警和响应信息</div><div class="right_more_alert"><a href="javascript:;" id="right_more_btn">更多</a></div><div class="clear"></div></div>');
  416. var $ul = $('<div class="right1_content"><ul></ul></div>');
  417. var $clear = $('<div class="clear"></div>');
  418. if(alertMsgJson){
  419. for (var i = 0; i < alertMsgJson.length; i++) {
  420. var alertMsg = alertMsgJson[i];
  421. var text = alertMsg.TEXT;
  422. var isAlert = alertMsg.ISALERT;
  423. var isView = alertMsg.ISVIEW;
  424. var fdId = alertMsg.FDID;
  425. var rowindex = (i+1)%2;
  426. var $li = $('<li class="row'+rowindex+'"></li>');
  427. var $divindex = $('<div class="liIndex">'+(i+1)+'.</div>');
  428. var $msgCont;
  429. if(isView==0){//未看过
  430. $msgCont = $('<div class="liContent newStyle">'+text+'</div>');
  431. }else{
  432. $msgCont = $('<div class="liContent">'+text+'</div>');
  433. }
  434. $msgCont.data("data-isAlert",isAlert);
  435. $msgCont.data("data-fdId",fdId);
  436. $li.append($divindex).append($msgCont).append($clear);
  437. $ul.find("ul").append($li).append($clear);
  438. }
  439. }
  440. $rightCont.append($rightTitle).append($ul);
  441. //更多绑定点击事件,连接到预警通知单列表
  442. $("#right_more_btn").on("click",function(){
  443. $(top.document.body).find("#frmright").attr("src","/nwyj/page/business/em/alert/warning/Warning.jsp");
  444. });
  445. //liContent绑定点击事件
  446. $(".liContent").on("click",function(){
  447. var $self = $(this);
  448. var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();//用户id
  449. var isAlert = $self.data("data-isAlert");
  450. var fdId = $self.data("data-fdId");
  451. //去掉new
  452. if($self.hasClass("newStyle")){
  453. $self.removeClass("newStyle");
  454. }
  455. //修改数据,将该用户添加到中间表中,表示该已查看过该消息
  456. $.ajax({
  457. url : $.pathname() + '/ws/xianlutingyun/XianlutingyunService/updateAlert',
  458. type : "post",
  459. data : {"user_id":user_id,"fd_id":fdId},
  460. dataType : "json",
  461. success : function(data) {
  462. }
  463. });
  464. //链接到响应通知单查看页面
  465. if(isAlert==0){//是预警通知单,跳到预警通知单查看界面
  466. $(top.document.body).find("#frmright").attr("src","/nwyj/page/business/em/alert/warning/WarningView.jsp?fd_id="+fdId);
  467. }else if(isAlert==1){
  468. $(top.document.body).find("#frmright").attr("src","/nwyj/page/business/em/response/emergencyResponse/WarningView.jsp?fd_id="+fdId);
  469. }
  470. })
  471. }
  472. </script>
  473. </head>
  474. <body>
  475. <div class="_contentbackground"><img src="/nwyj/images/index/bg1.png"/></div>
  476. <div class="main_bg">
  477. <!-- 左侧区域 -->
  478. <div class="left_area" id="left_area">
  479. <!-- 选项 -->
  480. <div id="work_options" class="work_options">
  481. <!-- 个人工作台 -->
  482. <a id="diy_workbench" class="work_button">个人工作台</a>
  483. <!-- GIS综合展示 -->
  484. <a id="GIS_show" class="work_button">GIS综合展示</a>
  485. </div>
  486. <!-- 自定义菜单区域,个人工作台 -->
  487. <div id="diy_area" class="diy_area">
  488. <div>
  489. <a class="quick_nav select_more" id="select_more" title="编辑个人工作台">
  490. <img src="../images/index/icon_more.png"
  491. style="height: 22px; width: 22px;"/> <span>更多</span>
  492. </a>
  493. </div>
  494. </div>
  495. </div>
  496. <!-- 编辑个人工作台 -->
  497. <div class="more_nav" id="more_nav">
  498. <div class="more_title">
  499. <h4>&nbsp;编辑个人工作台</h4>
  500. <a id="close_more" class="close_more"><img title="关闭窗口" src="../images/index/delete.png"></a>
  501. </div>
  502. <div class="options">
  503. <div class="options_list" id="allMenu">
  504. <h4>所有菜单</h4>
  505. <!-- 虚线 -->
  506. <hr>
  507. </div>
  508. <div class="options_list">
  509. <br>
  510. <h4>工作台中菜单</h4>
  511. <hr>
  512. <div class="ytj" id="ytj">
  513. </div>
  514. </div>
  515. </div>
  516. </div>
  517. <!-- 右侧 区域-->
  518. <div id="right_area" class="right_area">
  519. <table>
  520. <tr>
  521. <td colspan="2">
  522. <div class="right1">
  523. </div>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td>
  528. <div class="right2">
  529. <img src="../images/nav/right5.png" />
  530. <div></div>
  531. </div>
  532. </td>
  533. <td>
  534. <div class="right2">
  535. <img src="../images/nav/right5.png" />
  536. <div></div>
  537. </div>
  538. </td>
  539. </tr>
  540. </table>
  541. </div>
  542. </div>
  543. </body>
  544. </html>