Przeglądaj źródła

关键词统计

miaofuhao 4 lat temu
rodzic
commit
aced431384

+ 204 - 0
WebUI/CallCenterWeb.UI/CommonHtml/PrintPreviewKeyWordsScope.html

@@ -0,0 +1,204 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <title>打印预览</title>
7
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+    <script src="../js/jquery.min.js?v=2.1.4"></script>
9
+	<script src="../Script/Common/huayi.load.js"></script>
10
+	<script src="../Script/Common/huayi.config.js"></script>
11
+    <script src="../js/jquery.cookie.js"></script>
12
+    <!--</METAHTTP-EQUIV="Pragma" CONTENT="no-cache">
13
+    </METAHTTP-EQUIV="Cache-Control" CONTENT="no-cache">
14
+    </METAHTTP-EQUIV="Expires" CONTENT="0">-->
15
+    <style>
16
+        #main1{
17
+            width: 788.8px;
18
+            margin: 0 auto;
19
+            -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
20
+            box-shadow: 1px 1px 9px 2px #D2D2D2;
21
+            background-color: #fff;
22
+		    padding: 30px 60px 80px 60px;
23
+        }
24
+        .alignC{
25
+            text-align: center;
26
+        }
27
+        .alignC h2{
28
+            font-family: "宋体";
29
+			font-weight: bold;
30
+		    font-size: 22pt;
31
+		    letter-spacing: -1px;
32
+        }
33
+		.headerAlign h3 div:nth-of-type(1){
34
+			font-size: 14pt;
35
+			padding-top: 20px;
36
+			text-align: left;
37
+			font-weight: normal;
38
+			margin-left: 48px;
39
+		}
40
+        #main1 table{
41
+            margin: 0 auto;
42
+            width: 600px;
43
+            border-collapse: collapse;
44
+            font-size: 13pt;
45
+            font-family: "仿宋";
46
+        }
47
+        #main1 table tr{ 
48
+        	min-height: 49px;
49
+        }
50
+        tbody td{
51
+        	min-width: 10%;
52
+        	padding: 6px 0 6px 0;
53
+        }
54
+        
55
+        .alignC .tableHead{
56
+    		font-weight: 600;	
57
+        }
58
+        
59
+        .btn{
60
+            margin-top: 4px;
61
+            margin-bottom: 4px ;
62
+            background: #00a1cb;
63
+ 		   	color: #fff;
64
+        }
65
+		.datehide{
66
+			display: none;
67
+		}
68
+	
69
+    </style>
70
+    
71
+    <style media="print">
72
+	   	/*设置打印样式 标题宋体加黑二号*/ 
73
+		.headerAlign h2{
74
+	        font-family: "宋体" !important;
75
+			font-weight: bold !important;
76
+		    font-size: 22pt !important;
77
+	    	letter-spacing: -1px !important;	
78
+		}
79
+		.headerAlign h3 div:nth-of-type(1){
80
+			font-size: 14pt !important;
81
+			font-family: "宋体" !important;
82
+			font-weight: normal !important;
83
+			margin-left: 108px !important;
84
+		}       	
85
+	    #main1{
86
+		    padding: 40px 0 0 0 !important;
87
+		}       	
88
+	    #main1 table{
89
+	        font-size: 13pt !important;
90
+	        font-family: "仿宋" !important;
91
+	        border-color: #000;
92
+	        color: #000;
93
+	        width: 600px !important;
94
+	        /*page-break-after:avoid !important;*/
95
+	    }
96
+		#main1 table tr{ 
97
+        	min-height: 49px;
98
+        }
99
+	    tbody td{
100
+			padding: 6px 0 6px 0 !important;
101
+		}
102
+	    @page {
103
+	    	size: A4 portrait;
104
+	    }
105
+	</style>
106
+    
107
+</head>
108
+
109
+<body>
110
+
111
+	<!--startprint1-->
112
+    <div id="main1">
113
+        <div class="alignC headerAlign">
114
+<br />
115
+            <h2 style="margin-bottom: 15px;">
116
+                12345政府服务热线关键词统计
117
+            </h2>
118
+            <h3>
119
+                <div>时间: 
120
+                	<span class="startTimeKW">-</span>
121
+                	<span class="datehide">至</span>
122
+                	<span class="endTimeKW datehide">-</span>
123
+                </div>
124
+            </h3>
125
+       		
126
+        </div>
127
+        <table class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">          
128
+            <tbody id="KeyWordsStatistics">
129
+                <!--关键词统计情况-->
130
+                <tr>
131
+                    <td width="40%" class="tableHead">
132
+                       	关键词
133
+                    </td>
134
+                    <td width="40%" class="tableHead">
135
+                       	统计数量
136
+                    </td>
137
+                    <td width="20%" class="tableHead">
138
+                       	排名
139
+                    </td>
140
+                </tr> 
141
+            </tbody>
142
+        </table>
143
+    </div><!--endprint1-->
144
+	<div class="alignC">
145
+	    <input type="button" value="打印" class="btn" id="printBtn1"/>
146
+	</div>
147
+	    
148
+	<script type="text/javascript">
149
+        var kWI = helper.request.queryString("kWIndex");
150
+        var kWdate = helper.request.queryString("Qdate");
151
+        console.log(kWdate);
152
+        $(document).ready(function(){
153
+            $.getJSON(huayi.config.callcenter_url + 'DataAnalysis/GetKeyReportNew', { 
154
+            	dateParty: kWdate, 
155
+            	"token": $.cookie("token") 
156
+            }, function (result) {
157
+                if (result.state.toLowerCase() == "success") {
158
+                	var content = result.data;
159
+                    if(content){
160
+                    	if(kWI==1){
161
+                    		if($('.datehide').show()){
162
+                    			$('.datehide').hide();                   			
163
+                    		}
164
+                    		$('#main1 .startTimeKW').html(content.ds);                    		
165
+                    	}
166
+                    	var keyReports = content.ds;
167
+	                    //日统计
168
+	                    for(var i = 0; i < keyReports.length; i++){
169
+	                    	//debugger;
170
+		                    var html = '<tr>'+
171
+		                    				'<td><span>'+ keyReports[i].keyname +'</span></td>'+
172
+		                    				'<td><span>'+ keyReports[i].count +'</span></td>'+
173
+		                    				'<td><span>'+ keyReports[i].sort +'</span></td>'+          
174
+		                				'</tr>';
175
+		                	$('#KeyWordsStatistics').append(html);	
176
+	                    }                   	
177
+                    }
178
+	            }
179
+            })
180
+       	}) 
181
+       
182
+       	/*打印*/
183
+		$(document).on('click','#printBtn1',{printPage: 1},preview);
184
+        function preview(e) {
185
+        	var oper = e.data.printPage;
186
+            if (oper < 5) {
187
+                bdhtml = window.document.body.innerHTML; //获取当前页的html代码
188
+                sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
189
+                eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
190
+                prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
191
+				print.portrait   =  true    ;//纵向打印
192
+                prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
193
+                window.document.body.innerHTML = prnhtml;
194
+                window.print();
195
+                window.document.body.innerHTML = bdhtml;
196
+            } else {
197
+                window.print();
198
+            }
199
+        }
200
+ 		
201
+    </script>
202
+</body>
203
+
204
+</html>

+ 187 - 0
WebUI/CallCenterWeb.UI/YeWu/keywordsStatisticsScope.html

@@ -0,0 +1,187 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <title>关键词统计</title>
7
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+    <script src="../Script/Common/huayi.load.js"></script>
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+    <link href="../css/WorkOrder/Search.css" rel="stylesheet">
12
+    <link href="../css/init.css" rel="stylesheet" />
13
+    <script src="../js/laydate/laydate.js"></script>
14
+    <script src="../My97DatePicker/WdatePicker.js"></script>
15
+    <style>
16
+        table td {
17
+            word-break: break-all;
18
+            word-wrap: break-word;
19
+        }
20
+
21
+        .ld-service li {
22
+            float: left;
23
+            font-size: 14px;
24
+            color: #000;
25
+            padding: 5px 15px;
26
+            cursor: pointer;
27
+            border-bottom: 1px solid #ccc;
28
+        }
29
+
30
+        .cr-click {
31
+            border: 1px solid #ccc;
32
+            background-color: #fff;
33
+            border-bottom: none !important;
34
+            border-bottom-left-radius: 5px;
35
+            border-bottom-right-radius: 5px;
36
+        }
37
+
38
+        .Shows {
39
+            display: block !important;
40
+        }
41
+
42
+        .complain {
43
+            display: none;
44
+        }
45
+		
46
+		.toolLeft input{
47
+			width: 200px;
48
+		}
49
+        th {
50
+            padding: 5px;
51
+            text-align: center;
52
+        }
53
+
54
+        td {
55
+            padding: 5px;
56
+        }
57
+
58
+        .Borders {
59
+            border: 1px solid #d7d7d7;
60
+        }
61
+        .cx {
62
+            display: block;
63
+        }
64
+        .daoHang{
65
+        	margin-bottom: 15px;
66
+        }
67
+        .keyMargin{
68
+        	margin-bottom: 0;
69
+        }
70
+    </style>
71
+</head>
72
+
73
+<body class="gray-bg">
74
+        <div class="daoHang clearfix">
75
+            <div class="dhLeft">
76
+                <sapn>
77
+                    <i class="syIcon"></i>位置:
78
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
79
+                    <a href="javaScript:;">业务统计</a>&gt;
80
+                    <a class="nowPosition">关键词统计</a>
81
+                </sapn>
82
+            </div>
83
+             <div class="dhRight">
84
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>					
85
+				</div>
86
+        </div>
87
+    <div class="wrapper wrapper-content">
88
+
89
+        <div class="Content_box">
90
+            <div class="complain Shows">
91
+           		
92
+           		 <div class="th-top clearfix">
93
+			 			<div class="form-inline th-bar clearfix">
94
+			 				<div class="time-box form-group" >
95
+								<i class="tub fa fa-calendar"></i>
96
+								<input class="form-control" type="text" id="queryTime" placeholder="请选择时间">
97
+							</div>
98
+			 				<div class="form-group tool_bars pull-right">
99
+								<button class="btns search_1">查询</button>
100
+							</div>	
101
+			 			</div>
102
+			 	    </div>
103
+           		
104
+           		
105
+           		
106
+
107
+               <div class="tab-content">
108
+	               	<div class="tab-pane fade active in" id="import_from_file">
109
+	               		<div class="toolBar keyMargin clearfix">
110
+               				<button class="fr btns" id="print_1">打印预览</button>
111
+	               		</div>	
112
+	               		<!--table1-->
113
+		               	<div style="width: 100%;padding: 10px;">
114
+		                    <table id="table1" class="tables" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
115
+		                        <thead>
116
+		                            <tr>
117
+		                                <th data-field="keyname" data-align="center">关键词</th>
118
+		                                <th data-field="count" data-align="center">统计数量</th>
119
+		                                <th data-field="sort" data-align="center">排名</th>
120
+		                            </tr>
121
+		                        </thead>
122
+		                    </table>
123
+		                </div>
124
+	               	</div>
125
+
126
+               </div>
127
+            </div>
128
+        </div>
129
+    </div>
130
+    <script>
131
+    	var keyWordsIndex = 1;
132
+        $(document).ready(function () {
133
+              laydate.render({
134
+					elem: '#queryTime',
135
+					range: '-',
136
+					theme: '#00a1cb',
137
+			});
138
+        	initTable();
139
+        	$('.ul_tab li').click(function(){
140
+	        	keyWordsIndex = $(this).index()+1;
141
+        	    $(document).off('click','#print_'+keyWordsIndex+'',previewKeyWords);
142
+        	    $(document).on('click','#print_'+keyWordsIndex+'',previewKeyWords);
143
+	        })
144
+        });
145
+        //表格
146
+        function initTable(){
147
+        	
148
+        	 
149
+	        $.ajax({
150
+				url: huayi.config.callcenter_url + 'DataAnalysis/GetKeyReportNew',
151
+				type: 'get',
152
+				data: {
153
+					dateParty: $('#queryTime').val().replace(/\s*/g,""),
154
+	        		token: $.cookie("token")
155
+				},
156
+				dataType: "json",
157
+				async: true,
158
+				success: function (returnValue) {
159
+					//异步获取数据
160
+					var resultData1 = returnValue.data.ds;
161
+					$('#table1').bootstrapTable('load',resultData1); 
162
+					
163
+				}
164
+			});
165
+	        $('#table1').bootstrapTable('destroy').bootstrapTable({striped: true});
166
+
167
+       }
168
+        //代办搜索
169
+        $(".search_1").click(function () {
170
+	    	initTable();
171
+        });
172
+        
173
+        //打印预览
174
+        $(document).on('click','#print_'+keyWordsIndex+'',previewKeyWords);
175
+	  	function previewKeyWords(){
176
+	  		console.log($('#queryTime').val())
177
+	  		layer.open({
178
+		      	type: 2,
179
+		      	content: "../CommonHtml/PrintPreviewKeyWordsScope.html?kWIndex=" + keyWordsIndex +"&Qdate=" + $('#queryTime').val().replace(/\s*/g,""), //iframe的url,no代表不显示滚动条
180
+		  		title: '打印预览',
181
+		  		area: ['80%', '90%'], //宽高
182
+		  	});
183
+	  	}
184
+    </script>
185
+</body>
186
+
187
+</html>

+ 1 - 3
WebUI/CallCenterWeb.UI/login.html

@@ -148,9 +148,7 @@
148 148
 	</head>
149 149
 	<body class="signin">
150 150
 		<div class="wrap clearfix">
151
-			<div class="wrap_left ">
152
-
153
-			</div>
151
+			<div class="wrap_left "></div>
154 152
 			<div class="wrap_right">
155 153
 				<div class="rightCon">
156 154
 					<div class="logo" style="width: 100%;text-align: center;">