main_index_iframe.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  6. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  7. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  8. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/nwyj/css/main_index.css" />
  10. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/userClickNum.js"></script>
  11. <script type="text/javascript" src='/nwyj/scripts/business/em/report/addDo.js'></script>
  12. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/main_index_iframe.js"></script>
  13. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/drag/dragSort.js"></script>
  14. <script type="text/javascript">
  15. var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  16. var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  17. var comp_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  18. var real_name = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  19. var corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  20. var rolenames = top.com.sinosoft.lz.system.user.LoginInfo.getRolenames();
  21. var logindate = top.com.sinosoft.lz.system.user.LoginInfo.getLogin_date();
  22. var logintime = top.com.sinosoft.lz.system.user.LoginInfo.getLogin_time();
  23. var dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  24. var deptnames = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  25. var parent_ids = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  26. var pcorp_ids = top.com.sinosoft.lz.system.user.LoginInfo.getPcorp_ids();
  27. var saphruserid = top.com.sinosoft.lz.system.user.LoginInfo.getSaphruserid();
  28. var dept_level = getThing($.pathname() + "/ws/xianlutingyun/XianlutingyunService/getDeptLevel", {"comp_id" : comp_id}, "text");
  29. var user_menu_data = [{
  30. fd_id:"11111",
  31. li_id:"index_left_2",
  32. title:"预警与响应",
  33. module_fun:"getAlertResponseData",
  34. ul_id:"left_list"
  35. },{
  36. fd_id:"11111",
  37. li_id:"index_left_3",
  38. title:"专业系统集成",
  39. module_fun:"getUrlData",
  40. ul_id:"left_list"
  41. },{
  42. fd_id:"11111",
  43. li_id:"index_right_9",
  44. title:"预警/响应情况",
  45. module_fun:"getIndexNotice",
  46. ul_id:"right_list"
  47. },{
  48. fd_id:"11111",
  49. li_id:"index_right_6",
  50. title:"公告",
  51. module_fun:"getGongGaoData",
  52. ul_id:"right_list"
  53. },{
  54. fd_id:"11111",
  55. li_id:"index_right_4",
  56. title:"待办",
  57. module_fun:"getdaibanData",
  58. ul_id:"right_list"
  59. }];
  60. $(window).resize(function() {
  61. resetpageWidth();
  62. });
  63. function resetpageWidth(){
  64. if(document.getElementById("left_list").style.display != "none"){
  65. var bodyWidth = $(window.document.body).width();
  66. var rigthWidth = bodyWidth - 360;
  67. $("#right_list").width(rigthWidth);
  68. $("#right_list .li_cont").width(rigthWidth - 2);
  69. }else{
  70. var bodyWidth = $(window.document.body).width();
  71. $("#right_list").width(bodyWidth);
  72. $("#right_list .li_cont").width(bodyWidth - 3);
  73. }
  74. }
  75. $(function(){
  76. //getIndexNotice("","","","");
  77. /* 置顶图标固定位置 */
  78. $(top.window).scroll( function() {
  79. var _thisScroll = $(this);
  80. var scroH = _thisScroll.scrollTop();
  81. if(scroH>200){
  82. $(".fixItem").css({"top":scroH+200+"px"});
  83. $("#toTop").show();
  84. }else{
  85. $(".fixItem").css({"top":scroH+200+"px"});
  86. $("#toTop").hide();
  87. }
  88. scroH = null;
  89. _thisScroll = null;
  90. });
  91. /* 置顶图标固定位置 */
  92. //初始化左右模块框
  93. var rigthWidth = $(window.document.body).width() - 360;
  94. $("#main-index-div").append('<ul class="ul_cont" id="left_list" style="margin-left:10px; width:330px;float:left;"></ul><ul class="ul_cont" id="right_list" style="width:'+rigthWidth+'px;margin-left:350px;"></ul>');
  95. //过滤掉没有配置公司的用户
  96. if(comp_id==null||comp_id==""){
  97. top.Dialog.alert("此用户未设置公司,请找相关负责人配置公司!");
  98. return;
  99. }
  100. //设置高度
  101. resetpageheight();
  102. //initLiCont(user_menu_data,0);
  103. //取用户初始数据
  104. $.ajax({
  105. url : $.pathname() +'/ws/moduleobj/getModuleByUserId/',
  106. type : 'post',
  107. data : {
  108. user_id:user_id
  109. },
  110. dataType : 'json',
  111. async:false,
  112. success : function(data) {
  113. //console.log(data);
  114. if(data.state == "ok"&&data.length == 0){//如果为空,则初始话默认数据
  115. if("超高压输电公司"==corp_names){
  116. var resourseData = {
  117. fd_id:"11111",
  118. li_id:"index_right_1",
  119. title:"资源分布图",
  120. module_fun:"getResourceData",
  121. ul_id:"right_list"
  122. };
  123. user_menu_data.push(resourseData);
  124. }
  125. initLiCont(user_menu_data,0);
  126. setRunModuleFun(user_menu_data);
  127. }else{//加载内容
  128. initLiCont (data.resultData,1);
  129. setRunModuleFun(data.resultData);
  130. }
  131. },
  132. error : function(e) {
  133. try{
  134. top.Dialog.alert('访问服务失败!');
  135. }catch(e){
  136. }
  137. }
  138. });
  139. });
  140. /**初始化左右li框架
  141. *idxType 分0、其他
  142. *0、代表用户没有模块数据 其他、代表用户有模块数据
  143. */
  144. function initLiCont (userModuleData,idxType) {
  145. //var funArraylist = [];
  146. //console.log(userModuleData);
  147. for(var i=0;i < userModuleData.length;i++){
  148. var data = userModuleData[i];
  149. var moduleFun = trim(data.module_fun);
  150. var ul_id = trim(data.ul_id);
  151. var li_id = trim(data.li_id);
  152. var li_title = trim(data.title);
  153. var module_url = trim(data.module_url);
  154. var moduleWidth = "";
  155. var moduleHeight = "";
  156. var $cont = $("#"+ul_id).last();
  157. var liWidth = $cont.width()-2;
  158. //加载模块初始话数据
  159. //moduleData += (li_id+"|"+(i<10?'0'+i:i)+"|0,");
  160. var lihtml = ('<li class="shedu_cont li_cont" id="'+li_id+'" style="width:'+ liWidth +'px;">'
  161. + '<div class="content_title"><span class="title_text">'+li_title+'</span></div>'
  162. + '<div class = "content_btn" style="display: none;" >'
  163. + '<span class="freshing freshimg1" title="刷新" onclick="moduleFresh(\''+li_id+'\',\''+module_url+'\',\''+moduleFun+'\',\''+moduleWidth+'\',\''+moduleHeight+'\');" id="freshing'+li_id+'" ></span>'
  164. + '<span class="closeimg cont_close1 " title="删除" ></span>'
  165. + '</div>'
  166. + '<div class="content_cont" id="cont'+li_id+'" style="min-height:58px">'
  167. + '<div class="idxModule_content"></div>'
  168. + '<div class="idxModule-loading-bg" style="display: block;"></div>'
  169. + '<div class="idxModule-loading-box" style="display: block;"><span>正在加载...</span></div>'
  170. + '</div>'
  171. +'</li>');
  172. $cont.append(lihtml);
  173. var $liList = $cont.find(".li_cont").last();
  174. //储存数据
  175. $liList.data("li_id",li_id);
  176. $liList.data("module_url",module_url);
  177. $liList.data("module_fun",moduleFun);
  178. //加载函数,加载内容
  179. //runSelectFun(li_id,module_url,moduleFun,moduleWidth,moduleHeight);
  180. /* var jsFun = idxFunJson[moduleFun];
  181. jsFun(li_id,module_url,moduleWidth,moduleHeight);
  182. jsFun = null; */
  183. liList = null;
  184. $liList = null;
  185. $cont = null;
  186. }
  187. //设置模块标题事件
  188. setTitleFun();
  189. //储存用户模块为空时候初始值信息
  190. var moduleData = "";
  191. $(".li_cont").each(function(item, elm) {
  192. moduleData += trim($(elm).data("li_id"))+"|"+(item<10?'0'+item:item)+"|0,";
  193. });
  194. $("input[name=listSortOrder]").val(moduleData);
  195. //当新用户没有模块数据时,向服务器写入初始数据
  196. if(idxType==0){
  197. setTimeout(function(){
  198. setModuleData(moduleData,0);
  199. },100);
  200. }
  201. //moduleData=null;
  202. /*块拖拽 */
  203. $("#right_list ,#left_list").dragSort({
  204. itemSelector: ".li_cont",
  205. dragSelector: ".content_title",
  206. dragBetween: false,
  207. dragEnd: saveOrder,
  208. placeHolderTemplate: "<li class='placeHolder'><div></div></li>"
  209. });
  210. }
  211. /**
  212. * 为框架加载数据
  213. */
  214. function setRunModuleFun(moduData){
  215. for(var i=0;i<moduData.length;i++){
  216. var data = moduData[i];
  217. runSelectFun(trim(data.li_id),trim(data.module_url),trim(data.module_fun),"","");
  218. if("getStrendIframeData"==trim(data.module_fun)||"getResourceData"==trim(data.module_fun)||"getNwyjModuleData"==trim(data.module_fun)||"getGZXTModuleData"==trim(data.module_fun)){
  219. //if("right_list"==trim(data.ul_id)){
  220. setFullScreen(trim(data.li_id));
  221. }
  222. data = null;
  223. }
  224. }
  225. /**
  226. * 配置函数
  227. */
  228. function runSelectFun(idx,url,moduleFun,moduleWidth,moduleHeight){
  229. switch (moduleFun) {
  230. case "getUserData": getUserData(idx,url,moduleWidth,moduleHeight); break;
  231. case "getResourceData": getResourceData(idx,url,moduleWidth,moduleHeight); break;
  232. case "getdaibanData": getdaibanData(idx,url,moduleWidth,moduleHeight); break;
  233. case "getAlertResponseData":getAlertResponseData(idx,url,moduleWidth,moduleHeight);break;
  234. case "getUrlData": getUrlData(idx,url,moduleWidth,moduleHeight); break;
  235. case "getWorkMenuData": getWorkMenuData(idx,url,moduleWidth,moduleHeight);break;
  236. case "loadDuty": loadDuty(idx,url,moduleWidth,moduleHeight); break;
  237. case "getGongGaoData": getGongGaoData(idx,url,moduleWidth,moduleHeight); break;
  238. case "getStrendIframeData": getStrendIframeData(idx,url,moduleWidth,moduleHeight); break;
  239. case "getImportentUserOutageStrend":getImportentUserOutageStrend(idx,url,moduleWidth,moduleHeight);break;
  240. case "getLineTripSumStrend":getLineTripSumStrend(idx,url,moduleWidth,moduleHeight); break;
  241. case "getNwyjModuleData": getNwyjModuleData(idx,url,moduleWidth,moduleHeight); break;
  242. case "getGZXTModuleData": getGZXTModuleData(idx,url,moduleWidth,moduleHeight); break;
  243. case "getAccessoryData": getAccessoryData(idx,url,moduleWidth,moduleHeight); break;
  244. case "getIndexNotice": getIndexNotice(idx,url,moduleWidth,moduleHeight); break;
  245. }
  246. }
  247. /**
  248. * 模块刷新
  249. */
  250. function moduleFresh(idx,url,moduleFun,moduleWidth,moduleHeight){
  251. $("#cont"+idx).find(".idxModule_content").last().html("");
  252. showLoading(idx);
  253. setTimeout(function(){
  254. if(moduleFun=="loadDuty"){
  255. $(".changeDate").eq(1).click();
  256. } else if(moduleFun=="getIndexNotice"){
  257. $(".r9_tab_span").eq(0).click();
  258. }else{
  259. runSelectFun(idx,url,moduleFun,moduleWidth,moduleHeight);
  260. }
  261. },10);
  262. }
  263. /**
  264. * 隐藏加载动画
  265. */
  266. function hideLoading(idx){
  267. $("#cont"+idx).find(".idxModule-loading-box").css("display","none");
  268. $("#cont"+idx).find(".idxModule-loading-bg").css("display","none");
  269. }
  270. /**
  271. * 显示加载动画
  272. */
  273. function showLoading(idx){
  274. $("#cont"+idx).find(".idxModule-loading-box").css("display","block");
  275. $("#cont"+idx).find(".idxModule-loading-bg").css("display","block");
  276. }
  277. /**
  278. * 设置模块标题事件
  279. */
  280. function setTitleFun(){
  281. $(".closeimg").bind("click",function(){
  282. var title_li_id = $(this).parent().parent().attr("id");
  283. delectModule(title_li_id);
  284. title_li_id=null;
  285. });
  286. /*模块区域监听方法 */
  287. $(".li_cont").bind("mouseover",function(){
  288. $(this).find(".content_btn").show();
  289. });
  290. $(".li_cont").bind("mouseout",function(){
  291. $(this).find(".content_btn").hide();
  292. });
  293. }
  294. /**
  295. * 右侧个别模块放大功能
  296. */
  297. function setFullScreen(idx){
  298. //添加按钮功能
  299. var $content = $("#"+idx).find(".content_btn").last();
  300. var $fullBtn = $('<span class="full-text-span2" title="放大" ></span>');
  301. $fullBtn.prependTo($content);
  302. $fullBtn.data("fd_id",idx);
  303. $fullBtn.data("flagData",0);
  304. //添加点击事件
  305. $fullBtn.bind("click",function(){
  306. var bodyWidth = $(window.document.body).width();
  307. var $self = $(this);
  308. var liidx = $self.data("fd_id");
  309. if($self.data("flagData")==0){//放大
  310. $self.removeClass("full-text-span2").addClass("full-text-span4");
  311. var liheight = $("#"+liidx).height();
  312. $("#right_list").css({"margin-left":"0px","height":liheight+20,"position":"relative"});
  313. $("#left_list").hide();
  314. $("#"+liidx).siblings().hide();
  315. //重置高度
  316. $(window.document.body).height(liheight+10);
  317. $(top.parent.document.body).find("#frmright").css("height",liheight+20);
  318. $self.data("flagData",1);
  319. $self.attr("title","缩小");
  320. $self = null;
  321. }else{//缩小
  322. $self.removeClass("full-text-span4").addClass("full-text-span2");
  323. //$("#right_list").css({"margin-left":"350px","width":rigthWidth1+"px","height":"","position":""});
  324. $("#right_list").css({"margin-left":"350px","height":"","position":""});
  325. $("#left_list").show();
  326. $("#"+liidx).siblings().show();
  327. $self.data("flagData",0);
  328. $self.attr("title","放大");
  329. //重置高度
  330. resetpageheight();
  331. var position = $("#"+liidx).position();
  332. top.window.scrollTo(0, position.top+70);
  333. $self = null;
  334. }
  335. resetpageWidth();
  336. });
  337. $content = null;
  338. $fullBtn = null;
  339. }
  340. //删除模块数据
  341. function delectModule(li_id){
  342. li_id = trim(li_id);
  343. var $dom = $("#"+li_id);
  344. $.ajax({
  345. url : $.pathname() +'/ws/moduleobj/delectModult/',
  346. type : 'post',
  347. data : {
  348. user_id:user_id,
  349. li_id:li_id
  350. },
  351. dataType : 'text',
  352. async:false,
  353. success : function(data) {
  354. if(data=="error"){
  355. top.Dialog.alert('修改数据失败!');
  356. }else{
  357. $("#right_list").css({"margin-left":"350px","height":"","position":""});
  358. $("#left_list").show();
  359. $("#"+li_id).siblings().show();
  360. $dom.remove();
  361. resetpageheight();
  362. }
  363. $dom = null;
  364. },
  365. error : function(e) {
  366. try{
  367. top.Dialog.alert('访问服务失败!');
  368. }catch(e){
  369. }
  370. $dom = null;
  371. }
  372. });
  373. }
  374. //高度处理
  375. function resetpageheight(){
  376. var leftHeight = $("#left_list").height();
  377. var rightHeight = $("#right_list").height()
  378. var height = document.getElementById("left_list").style.display == "none"||leftHeight<rightHeight?rightHeight:leftHeight;
  379. $(window.document.body).height(height);
  380. $(parent.document.body).find("#frmright").css("height",height+20);
  381. leftHeight = null;
  382. rightHeight = null;
  383. height = null;
  384. }
  385. //排序的方法
  386. function saveOrder() {
  387. var sortData = "";
  388. var resultData = "";
  389. var historyData = $("input[name=listSortOrder]").val();
  390. $(".li_cont").each(function(item, elm) {
  391. //排序module
  392. sortData += trim($(elm).data("li_id"))+"|"+(item<10?'0'+item:item)+"|0,";
  393. });
  394. //当顺序有变动时,向服务器写数据
  395. if (sortData != historyData) {
  396. var histArr = historyData.split(",");
  397. var currArr = sortData.split(",");
  398. for(var i=0;i<currArr.length-1;i++){
  399. if(histArr[i]!=currArr[i]){
  400. resultData += currArr[i]+",";
  401. }
  402. }
  403. //console.log(resultData);
  404. //console.log(sortData);
  405. //console.log(historyData);
  406. //将排序的数据保存到服务器,100毫秒后异步执行;
  407. setTimeout(function(){
  408. setModuleData(resultData,2);
  409. },100);
  410. }
  411. //保存此次模块顺序
  412. $("input[name=listSortOrder]").val(sortData);
  413. sortData=null;
  414. //resultData=null;
  415. historyData=null;
  416. };
  417. /*判断menuId_arr中是否有menuid*/
  418. /* function isIndexContainer (parent,child){
  419. if(parent.indexOf(child)>-1){
  420. return true;
  421. }
  422. return false;
  423. } */
  424. //创建选择模块弹框
  425. function openDialog(){
  426. var diag = new top.Dialog();
  427. diag.Title = "所有模块";
  428. diag.ShowMaxButton=true;
  429. diag.ShowMinButton=false;
  430. diag.Width= 730;
  431. diag.Height=350;
  432. diag.ButtonAlign="center";
  433. diag.Drag=true;
  434. //点击确定按钮的监听方法
  435. diag.OKEvent = function(){
  436. var inputValue = diag.innerFrame.contentWindow.getDateToParent();
  437. var currentData = inputValue.current;
  438. var beforeData = inputValue.before;
  439. var modulelist = "";
  440. //排序计数
  441. var sort = 0;
  442. //解析需要删除的数据
  443. for(var j=0;j<beforeData.length;j++){
  444. modulelist = beforeData[j]+"|"+(sort<10?'0'+sort:sort)+"|1,"+modulelist;
  445. sort++;
  446. }
  447. //解析需要存入数据
  448. for(var i=0;i<currentData.length;i++){
  449. modulelist = currentData[i]+"|"+(sort<10?'0'+sort:sort)+"|0,"+modulelist;
  450. sort++;
  451. }
  452. //向服务器写入需要改变的数据
  453. setModuleData(modulelist,1);
  454. diag.close();
  455. inputValue = null;
  456. modulelist = null;
  457. sort = null;
  458. };
  459. diag.URL = "/nwyj/page/all_module.jsp";
  460. diag.ShowButtonRow=true;
  461. diag.show();
  462. }
  463. /**
  464. * 修改用户的模块信息
  465. * idxType的值有 0,1,其他,
  466. 0、代表用户没有数据时,初始数据
  467. 1、从左右模块中选择的数据
  468. 其他、排序的数据
  469. */
  470. function setModuleData (modulelist,idxType){
  471. $.ajax({
  472. url : $.pathname() +'/ws/moduleobj/addModuleByUserId/',
  473. type : 'post',
  474. //async:false,
  475. data : {
  476. user_id:user_id,
  477. list_data:modulelist
  478. },
  479. dataType : 'text',
  480. success : function(data) {
  481. if(data=="error"){
  482. top.Dialog.alert('修改数据失败!');
  483. }else{
  484. if(idxType==0){//当没有数据时,初始数据
  485. //$.messager.show(0,"您还没有选择任何模块信息,系统已经初始化了一个模块!");
  486. }else if(idxType==1){//从左右模块中选择的数据
  487. window.location.reload();
  488. }else{//排序的数据
  489. resetpageheight();
  490. }
  491. }
  492. },
  493. error : function(e) {
  494. top.Dialog.alert('查询失败!');
  495. }
  496. });
  497. }
  498. function openQuestion(){
  499. var diag = new top.Dialog();
  500. diag.Title = "我的帮助";
  501. /* diag.Width= 730;
  502. diag.Height=390; */
  503. diag.Width = 510;
  504. diag.Height = 390;
  505. diag.Drag=true;
  506. diag.URL = "/nwyj/page/system/questionHuiZong/questionHuiZong_Add.jsp?diag="+diag;
  507. diag.show();
  508. diag.CancelEvent = function(){
  509. diag.close();
  510. diag=null;
  511. };
  512. }
  513. /**测试Excel导出*/
  514. function exportclick(){
  515. var params = {
  516. "flag":"dept_flag"
  517. };
  518. //excelExport("",sql,"导出组织机构","","组织机构表","report");
  519. $.ajax({
  520. url :$.pathname() + '/ws/excel/ExcelService/CreateReportToExcelByClassId',
  521. type : 'post',
  522. timeout : 150000,
  523. data : params,
  524. async:false,
  525. dataType : 'text',
  526. success : function(data){
  527. var url = $.pathname() +"/page/common/getExcel.jsp?exportContent="
  528. + data + "&destFileName=" + encodeURI(encodeURI("组织机构表"));
  529. window.open(url);
  530. },
  531. error : function(e){
  532. top.Dialog.alert("导出Excel失败");
  533. }
  534. });
  535. }
  536. function openMsgBtn(){
  537. //blankopenNext("/nwyj/page/system/message/SendMsg.html");
  538. windowOpenNext("/nwyj/page/system/sms/addMsg.html");
  539. }
  540. /* function openMsgBtn1(){
  541. windowOpenNext("/nwyj/page/system/departmentXls/departmentXls.jsp");
  542. } */
  543. //删除左右两端的空格
  544. function trim(str){
  545. if(str!=null){
  546.   return str.replace(/(^\s*)|(\s*$)/g, "");
  547. }
  548. return str;
  549. }
  550. </script>
  551. </head>
  552. <body>
  553. <div class="fixItem" id="idxfixItem">
  554. <div id="toTop" style="display: none;" onclick="script:top.window.scrollTo(0,0);">
  555. <!-- <a href="#indexTop"><img src="/nwyj/images/index/to_top.png" /></a> -->
  556. <a href="javascript:;"><img src="/nwyj/images/index/to_top.png" /></a>
  557. </div>
  558. <div id="" onclick="openDialog();">
  559. <a href="javascript:;"><img src="/nwyj/images/index/add_div.png" /></a>
  560. <span class="floating_left">自定义组件</span>
  561. </div>
  562. <div id="" onclick="openQuestion();">
  563. <a href="javascript:;"><img src="/nwyj/images/index/que_img.png" /></a>
  564. <span class="floating_left">BUG/提问</span>
  565. </div>
  566. <div id="" onclick="openMsgBtn();">
  567. <a href="javascript:;"><img src="/nwyj/images/index/fix_msg.png" /></a>
  568. <span class="floating_left">发送短信</span>
  569. </div>
  570. <!-- <div id="" onclick="exportclick();">
  571. <a href="javascript:;"><img src="/nwyj/images/index/fix_msg.png" /></a>
  572. <span class="floating_left">测试</span>
  573. </div> -->
  574. </div>
  575. <div class="module-content" id="main-index-div">
  576. <!-- <ul id="left_list" class="ul_cont">
  577. <li class="shedu_cont li_cont" >
  578. <div class="content_title"><span class="title_text">测试模块</span></div>
  579. <div class="content_btn" style="display: none;" >
  580. <span class="freshing freshimg1" title="刷新" onclick="moduleFresh();" ></span>
  581. <span class="closeimg cont_close1 " title="删除" ></span>
  582. </div>
  583. <div class="content_cont" style="min-height:200px">
  584. <div class="idxModule_content"></div>
  585. <div class="idxModule-loading-bg" style="display: block;"></div>
  586. <div class="idxModule-loading-box" style="display: block;"><span>正在加载...</span></div>
  587. </div>
  588. </li>
  589. </ul>
  590. <ul id="right_list" class="ul_cont">
  591. </ul> -->
  592. <input name="listSortOrder" type="hidden" />
  593. </div>
  594. </body>
  595. </html>