2c3dd570d4dcba0cc8b159a222c911ee37f63d89.svn-base 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>重要用户统计</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  8. <!--框架必需start-->
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  13. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <!--grid组件start-->
  18. <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
  19. <!--grid组件end-->
  20. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  21. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
  22. <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/charTitle.css">
  23. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  24. <script type="text/javascript" src="/nwyj/page/cockpit/webgis/util.js"></script>
  25. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  26. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
  27. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  28. <script type="text/javascript" src="/nwyj/scripts/amResource/zhongyaoyonghu.js"></script>
  29. <style type="text/css">
  30. #i_page_hed{color: white;font-size: 18px;font-family: "微软雅黑";font-weight: bold;}
  31. .c_index_iframe_content{position: absolute;top:50%;left: 50%;width: 1000px;height: 500px;
  32. margin-left: -500px;margin-top: -250px;display: inline-block;background-color: #ffffff}
  33. .c_index_detail_iframe{width: 100%;height: 100%;display: inline-block;background-color: transparent;border: none;background-color: #ffffff}
  34. .c_page_grid_content{overflow-x: hidden;}
  35. /*grid start */
  36. .l-grid-row-cell-inner{padding-left: 0px;}
  37. .l-grid-body{ overflow-x: hidden; }
  38. .c_page_hed { background-color: inherit; }
  39. .c_alink{ font-size: 14px; font-family: "微软雅黑"; color:#ffffff; }
  40. .l-selected .l-grid-row-cell, .l-selected { background: #08094c; }
  41. .l-panel * { border-color: #2c334f; color: #ffffff; }
  42. </style>
  43. </head>
  44. <body>
  45. <div id="i_page_hed" class="c_page_hed">
  46. </div>
  47. <div id="i_page_grid_content" class="c_page_grid_content">
  48. <div id="i_page_grid" class="c_page_grid"></div>
  49. </div>
  50. <script type="text/javascript">
  51. /*
  52. var utils=new Util();
  53. var grid=null;
  54. var urlParams=utils.resolveUrl();
  55. var comeName=urlParams["dept_name"];
  56. var dept_id1=urlParams["dept_id"];
  57. var params=utils.resolveUrl();
  58. var loadParams = {
  59. id : dept_id1
  60. };
  61. // var oneCols = [ {display : '特级用户',name : 'tjcustomerNum',width : "15%",align : 'center',render:showMsg},
  62. // {display : '一级用户',name : 'yjcustomerNum',width : "15%",align : 'center',render:showMsg},
  63. // {display : '二级用户',name : 'erjicustomerNum',width : "15%",align : 'center',render:showMsg},
  64. // {display : '合计',name : 'zyyhNum',width : "15%",align : 'center',render:showMsg} ];
  65. var columns=[{display : '所属单位',"name" : 'name',id : 'name',width : "20%",dept_id:'dept_id',align : 'center',},
  66. {display : '重要用户数量',columns :
  67. [ {display : '特级用户',name : 'tjcustomerNum',width : "14%",align : 'center',render:showMsg},
  68. {display : '一级用户',name : 'yjcustomerNum',width : "14%",align : 'center',render:showMsg},
  69. {display : '二级用户',name : 'erjicustomerNum',width : "15%",align : 'center',render:showMsg},
  70. {display : '合计',name : 'zyyhNum',width : "10%",align : 'center',render:showMsg}
  71. ]
  72. },
  73. {display : '重点关注用户',name : 'zdgzcustomerNum',width : "15%",align : 'center',render:showMsg},
  74. {display : '总合计',name : 'zTotal',align : 'center',width : "10%"}
  75. ]
  76. var options={
  77. columns:columns,
  78. url:"/nwyj/ws/customerHuiZong/customerHuiZongService/getCustomerInfo",
  79. params:loadParams,
  80. usePager:false,
  81. method: "post",
  82. width:"99.8%",
  83. usePager : false,
  84. isScroll: true,
  85. percentWidthMode : false,
  86. alternatingRow: false,
  87. rowAttrRender: function(rowdata, rowindex, rowid){
  88. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  89. }
  90. };
  91. $(function(){
  92. grid=$("#i_page_grid").quiGrid(options);
  93. setTitle();
  94. close();
  95. $(window).resize(function(){
  96. grid=$("#i_page_grid").quiGrid(options);
  97. });
  98. });
  99. function setTitle(){
  100. if(comeName=="广东电网有限责任公司"){
  101. comeName="广东电网公司";
  102. }
  103. $("#i_page_hed").text(comeName+"用户统计");
  104. }
  105. function showMsg(rowdata,rowindex,value,column){
  106. return '<a href="javascript:void(0)" style="color:#fff;" '
  107. + 'onclick=bindEvent("'
  108. + rowdata.dept_id //取这一行所属单位ID
  109. + '",'+'"'+column.name+ '",'+'"'+value+'")>'+value+'</a>';
  110. }
  111. function bindEvent(rowdata,rowindex,value,column){
  112. var type = "";
  113. if(rowindex=="tjcustomerNum"){
  114. type = "1";
  115. }else if(rowindex=="yjcustomerNum"){
  116. type = "2";
  117. }else if(rowindex=="erjicustomerNum"){
  118. type = "3";
  119. }else if(rowindex=="zdgzcustomerNum"){
  120. type = "4";
  121. }
  122. var pathStr=url["http_path"]+"page/cockpit/echart_maticView/amResource/zhongyaoyonghuTable.html?"+rowdata+"?" + type;
  123. utils.openIframe(pathStr);
  124. }
  125. //自适应
  126. $(window).resize(function(){
  127. grid=$("#i_page_grid").quiGrid(options);
  128. });
  129. */
  130. </script>
  131. </body>
  132. </html>