123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>重要用户统计</title>
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/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-->
- <!--grid组件start-->
- <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
- <!--grid组件end-->
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
-
- <link rel="stylesheet" type="text/css" href="/nwyj/css/cockpit/charTitle.css">
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
- <script type="text/javascript" src="/nwyj/page/cockpit/webgis/util.js"></script>
-
-
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
-
- <script type="text/javascript" src="/nwyj/scripts/amResource/zhongyaoyonghu.js"></script>
-
- <style type="text/css">
- #i_page_hed{color: white;font-size: 18px;font-family: "微软雅黑";font-weight: bold;}
- .c_index_iframe_content{position: absolute;top:50%;left: 50%;width: 1000px;height: 500px;
- margin-left: -500px;margin-top: -250px;display: inline-block;background-color: #ffffff}
- .c_index_detail_iframe{width: 100%;height: 100%;display: inline-block;background-color: transparent;border: none;background-color: #ffffff}
- .c_page_grid_content{overflow-x: hidden;}
- /*grid start */
- .l-grid-row-cell-inner{padding-left: 0px;}
-
- .l-grid-body{ overflow-x: hidden; }
- .c_page_hed { background-color: inherit; }
- .c_alink{ font-size: 14px; font-family: "微软雅黑"; color:#ffffff; }
- .l-selected .l-grid-row-cell, .l-selected { background: #08094c; }
- .l-panel * { border-color: #2c334f; color: #ffffff; }
-
- </style>
- </head>
-
- <body>
- <div id="i_page_hed" class="c_page_hed">
- </div>
- <div id="i_page_grid_content" class="c_page_grid_content">
- <div id="i_page_grid" class="c_page_grid"></div>
- </div>
- <script type="text/javascript">
- /*
- var utils=new Util();
- var grid=null;
- var urlParams=utils.resolveUrl();
- var comeName=urlParams["dept_name"];
- var dept_id1=urlParams["dept_id"];
-
- var params=utils.resolveUrl();
-
-
- var loadParams = {
- id : dept_id1
- };
-
- // var oneCols = [ {display : '特级用户',name : 'tjcustomerNum',width : "15%",align : 'center',render:showMsg},
- // {display : '一级用户',name : 'yjcustomerNum',width : "15%",align : 'center',render:showMsg},
- // {display : '二级用户',name : 'erjicustomerNum',width : "15%",align : 'center',render:showMsg},
- // {display : '合计',name : 'zyyhNum',width : "15%",align : 'center',render:showMsg} ];
-
-
- var columns=[{display : '所属单位',"name" : 'name',id : 'name',width : "20%",dept_id:'dept_id',align : 'center',},
- {display : '重要用户数量',columns :
- [ {display : '特级用户',name : 'tjcustomerNum',width : "14%",align : 'center',render:showMsg},
- {display : '一级用户',name : 'yjcustomerNum',width : "14%",align : 'center',render:showMsg},
- {display : '二级用户',name : 'erjicustomerNum',width : "15%",align : 'center',render:showMsg},
- {display : '合计',name : 'zyyhNum',width : "10%",align : 'center',render:showMsg}
- ]
- },
- {display : '重点关注用户',name : 'zdgzcustomerNum',width : "15%",align : 'center',render:showMsg},
- {display : '总合计',name : 'zTotal',align : 'center',width : "10%"}
- ]
-
-
- var options={
- columns:columns,
- url:"/nwyj/ws/customerHuiZong/customerHuiZongService/getCustomerInfo",
- params:loadParams,
- usePager:false,
- method: "post",
- width:"99.8%",
- usePager : false,
- isScroll: true,
- percentWidthMode : false,
- alternatingRow: false,
- rowAttrRender: function(rowdata, rowindex, rowid){
- return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
- }
- };
- $(function(){
- grid=$("#i_page_grid").quiGrid(options);
- setTitle();
- close();
- $(window).resize(function(){
- grid=$("#i_page_grid").quiGrid(options);
- });
- });
- function setTitle(){
- if(comeName=="广东电网有限责任公司"){
- comeName="广东电网公司";
- }
- $("#i_page_hed").text(comeName+"用户统计");
- }
-
-
- function showMsg(rowdata,rowindex,value,column){
- return '<a href="javascript:void(0)" style="color:#fff;" '
- + 'onclick=bindEvent("'
- + rowdata.dept_id //取这一行所属单位ID
- + '",'+'"'+column.name+ '",'+'"'+value+'")>'+value+'</a>';
-
- }
- function bindEvent(rowdata,rowindex,value,column){
-
- var type = "";
- if(rowindex=="tjcustomerNum"){
- type = "1";
- }else if(rowindex=="yjcustomerNum"){
- type = "2";
- }else if(rowindex=="erjicustomerNum"){
- type = "3";
- }else if(rowindex=="zdgzcustomerNum"){
- type = "4";
- }
- var pathStr=url["http_path"]+"page/cockpit/echart_maticView/amResource/zhongyaoyonghuTable.html?"+rowdata+"?" + type;
- utils.openIframe(pathStr);
-
- }
- //自适应
- $(window).resize(function(){
- grid=$("#i_page_grid").quiGrid(options);
- });
- */
-
- </script>
- </body>
- </html>
|