liuzhen лет назад: 5
Родитель
Сommit
930c5129ed

+ 194 - 0
WebUI/CallCenterWeb.UI/ReportForm/networkAssessment.html

@@ -0,0 +1,194 @@
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
+    <link href="../css/init.css" rel="stylesheet" />
9
+    <link href="../css/Table/table1.css" rel="stylesheet" />
10
+    <script src="../Script/Common/huayi.load.js"></script>
11
+    <script src="../Script/Common/huayi.config.js"></script>
12
+    <script src="../My97DatePicker/WdatePicker.js"></script>
13
+    <script src="../css/laydate/laydate.js"></script>
14
+    <style>
15
+        body {
16
+            font-family: "微软雅黑";
17
+            font-size: 14px;
18
+        }
19
+
20
+        ul li {
21
+            list-style: none;
22
+            float: left;
23
+        }
24
+
25
+        .fr {
26
+            float: right;
27
+        }
28
+        /*标头*/
29
+
30
+        .th-box {
31
+            width: 100%;
32
+            padding: 5px;
33
+            border-bottom: 1px solid #e7eaec;
34
+        }
35
+
36
+        .th-bar {
37
+            height: 40px;
38
+        }
39
+
40
+      #list thead tr th{
41
+      	    background: #01a1cb;
42
+    color: #fff;
43
+      }
44
+    </style>
45
+</head>
46
+
47
+<body class="gray-bg">
48
+    <div class="wrapper wrapper-content animated fadeInRight">
49
+        <div class="daoHang clearfix">
50
+            <div class="dhLeft">
51
+                <sapn><i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>&gt;<a href="javaScript:;">报表管理</a>&gt;<a href="" class="nowPosition">网络单位考核报表</a></sapn>
52
+            </div>
53
+            <div class="dhRight">
54
+            	<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
55
+            </div>
56
+        </div>
57
+        <div class="th-box">
58
+            <div class="th-bar">
59
+                <!--<a class="sc_btn btn-info" id="moves">批量删除</a>-->
60
+                <div class="seach-box fr">
61
+                    <!--<ul>
62
+                        <li>开始时间:<input id="start" class="photo x-color laydate-icon" type="text" /></li>
63
+                        <li>结束时间:<input id="end" class="photo x-color laydate-icon" type="text" /></li>
64
+                        <li>
65
+                           	 时间类型:
66
+                            <select style="width: 100px;" class="select_ dataType">
67
+                                <option value="0" selected="selected">日</option>
68
+                                <option value="1">周</option>
69
+                                <option value="2">月</option>
70
+                            </select>
71
+                        </li>
72
+                        <li>
73
+                            <button class="btns search">查询</button>
74
+                            <a class="btns export">导出</a>
75
+                        </li>
76
+                    </ul>-->
77
+                </div>
78
+            </div>
79
+        </div>
80
+        <div style="width: 100%;padding: 10px;">
81
+            <table id="list" class="table table-hover table-striped table-bordered table-condensed">
82
+                <thead>
83
+                    <tr>
84
+                       <th>姓名</th>
85
+                       <th>工号</th>
86
+                       <th>排名</th>
87
+                       <th>工作总量计分(50)</th>
88
+                       <th>话务质量计分(30)</th>
89
+                       <th>值班值守计分(10)</th>
90
+                       <th>工作纪律计分(10)</th>
91
+                       <th>总计</th>
92
+                    </tr>
93
+                    <tr>
94
+                		<td>小刘</td>
95
+                		<td>202005140001</td>
96
+                		<td>1</td>
97
+                		<td>50</td>
98
+                		<td>30</td>
99
+                		<td>10</td>
100
+                		<td>10</td>
101
+                		<td>100</td>
102
+                	</tr>
103
+                	<tr>
104
+                		<td>小王</td>
105
+                		<td>202005140002</td>
106
+                		<td>2</td>
107
+                		<td>49</td>
108
+                		<td>29</td>
109
+                		<td>10</td>
110
+                		<td>10</td>
111
+                		<td>98</td>
112
+                	</tr>
113
+                </thead>
114
+                <tbody>
115
+                </tbody>
116
+            </table>
117
+            <!--高级搜索框-->
118
+        </div>
119
+    </div>
120
+   
121
+    <script>
122
+        $(document).ready(function () {
123
+        	var start=$('#start').val();//开始时间
124
+        	var end=$('#end').val();//结束时间
125
+        	var usercode;//工号
126
+        	var type=$('.dataType').val();//时间类型
127
+            //表头
128
+            $.ajax({
129
+            	type:"get",
130
+            	url:huayi.config.callcenter_url +"TelWOReport/GetColumnList",
131
+            	async:true,
132
+            	dataType:'json',
133
+            	data:{
134
+            		token:$.cookie("token")
135
+            	},
136
+            	success:function(data){
137
+            		var con=data.data;
138
+            		if(data.state.toLowerCase()=='success'){
139
+            			$(con).each(function(i,n){
140
+            				$('<th>'+n +'</th>').appendTo('#ist thead tr')
141
+            			})
142
+            		}
143
+            	}
144
+            });
145
+            tableAjax(start,end,type)
146
+            //表内数据
147
+            function tableAjax(start,end,type){
148
+            	$('#list tbody').html('');
149
+            	 $.ajax({
150
+            	type:"get",
151
+            	url:huayi.config.callcenter_url +"TelWOReport/GetTrafficReport",
152
+            	async:true,
153
+            	dataType:'json',
154
+            	data:{
155
+            		token:$.cookie("token"),
156
+            		btime:start,
157
+            		etime:end,
158
+            		type:type
159
+//          		usercode:usercode
160
+            	},
161
+            	success:function(data){
162
+            		var con=data.data;
163
+            		if(data.state.toLowerCase()=='success'){
164
+            			$(con).each(function(i,n){
165
+            			    $('<tr><td>' + n.日期 + '</td><td>' + n.接听来电 + '</td><td>' + n.有效来电 + '</td><td>' + n.受理 + '</td><td>' + n.在线办结 + '</td><td>' + n.转派工单 + '</td><td>' + n.办结 + '</td></tr>').appendTo('#ist tbody')
166
+            			})
167
+            		}
168
+            	}
169
+            });
170
+            }
171
+           $('.search').click(function(){
172
+           		start=$('#start').val();
173
+           		end=$('#end').val();
174
+           		type=$('.dataType').val();
175
+           	   tableAjax(start,end,type)
176
+           })
177
+           $('.export').click(function(){
178
+           			dcexcel(this);
179
+           })
180
+		   function dcexcel(obj) {
181
+            var url = huayi.config.callcenter_url + "TelWOReport/ExptList?token=" + $.cookie("token");
182
+                url += "&btime=" + $("#start").val() + "&etime=" + $("#end").val()+ "&type=" + $(".dataType").val();
183
+                obj.href = url;
184
+       		 }
185
+			
186
+     })
187
+     
188
+       
189
+
190
+    </script>
191
+
192
+</body>
193
+
194
+</html>

+ 167 - 0
WebUI/CallCenterWeb.UI/ReportForm/seatRanking.html

@@ -0,0 +1,167 @@
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="../css/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
+        th {
47
+            padding: 5px;
48
+            text-align: center;
49
+        }
50
+
51
+        td {
52
+            padding: 5px;
53
+            text-align: center;
54
+        }
55
+
56
+        .Borders {
57
+            border: 1px solid #d7d7d7;
58
+        }
59
+
60
+        .cx {
61
+            display: block;
62
+        }
63
+
64
+        .daoHang {
65
+            margin-bottom: 15px;
66
+        }
67
+        .hide{
68
+        	display: none;
69
+        }
70
+    </style>
71
+</head>
72
+
73
+<body class="gray-bg">
74
+    <div class="wrapper wrapper-content animated fadeInRight">
75
+        <div class="daoHang clearfix">
76
+            <div class="dhLeft">
77
+                <sapn>
78
+                    <i class="syIcon"></i>位置:
79
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
80
+                    <a href="javaScript:;">报表管理</a>&gt;
81
+                   <a href="" class="nowPosition">坐席排名</a>
82
+                </sapn>
83
+            </div>
84
+            <div class="dhRight">
85
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
86
+            </div>
87
+        </div>
88
+
89
+        <div class="Content_box">
90
+            <div class="complain Shows">
91
+                <ul class="nav nav-tabs ul_tab" role="tablist">
92
+                    <li class="active">
93
+                        <a >日排名</a>
94
+                    </li>
95
+                    <li>
96
+                        <a >月排名</a>
97
+                    </li>
98
+                </ul>
99
+                <div id="">
100
+                	<div style="width: 100%;padding: 10px;" class="list">
101
+			            <table id="list" class="table table-hover table-striped table-bordered table-condensed">
102
+			                <thead>
103
+			                    <tr>
104
+			                       <th>姓名</th>
105
+			                       <th>工号</th>
106
+			                       <th>坐席</th>
107
+			                       <th>排名</th>
108
+			                    </tr>
109
+			                    <tr>
110
+			                		<td>小刘</td>
111
+			                		<td>202005140001</td>
112
+			                		<td>普通坐席</td>
113
+			                		<td>1</td>
114
+			                	</tr>
115
+			                	<tr>
116
+			                		<td>小王</td>
117
+			                		<td>202005140002</td>
118
+			                		<td>普通坐席</td>
119
+			                		<td>2</td>
120
+			                	</tr>
121
+			                </thead>
122
+			            </table>
123
+			        </div>
124
+			         <div style="width: 100%;padding: 10px;" class="list hide">
125
+			            <table id="list" class="table table-hover table-striped table-bordered table-condensed" >
126
+			                <thead>
127
+			                    <tr>
128
+			                       <th>姓名</th>
129
+			                       <th>工号</th>
130
+			                       <th>坐席</th>
131
+			                       <th>排名</th>
132
+			                    </tr>
133
+			                    <tr>
134
+			                		<td>小王</td>
135
+			                		<td>202005140002</td>
136
+			                		<td>普通坐席</td>
137
+			                		<td>1</td>
138
+			                	</tr>
139
+			                	<tr>
140
+			                		<td>小刘</td>
141
+			                		<td>202005140001</td>
142
+			                		<td>普通坐席</td>
143
+			                		<td>2</td>
144
+			                	</tr>
145
+			                </thead>
146
+			            </table>
147
+			        </div>
148
+                </div>
149
+            </div>
150
+        </div>
151
+    </div>
152
+
153
+    <script>
154
+        var tabindex = 1;
155
+        $(document).ready(function () {
156
+            $('.ul_tab li').click(function () {
157
+                $(this).parent().find("li").removeClass("active");
158
+                $(this).addClass("active");
159
+                tabindex = $(this).index() + 1;
160
+                $('.list').eq($(this).index()).removeClass('hide').siblings().addClass('hide')
161
+               
162
+            })
163
+        })
164
+    </script>
165
+</body>
166
+
167
+</html>

+ 1 - 1
WebUI/CallCenterWeb.UI/home.html

@@ -6,7 +6,7 @@
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 7
     <meta name="renderer" content="webkit">
8 8
     <meta http-equiv="Cache-Control" content="no-siteapp" />
9
-    <title>商丘政务服务热线后台业务管理系统</title>
9
+    <title>平顶山政务服务热线后台业务管理系统</title>
10 10
     <script src="./Script/Common/huayi.load.js"></script>
11 11
     <script src="./Script/Common/huayi.config.js"></script>
12 12
     <link rel="shortcut icon" href="img/32.ico" />

BIN
WebUI/CallCenterWeb.UI/img/icon.gif


BIN
WebUI/CallCenterWeb.UI/img/star.png


+ 1 - 1
WebUI/CallCenterWeb.UI/index.html

@@ -6,7 +6,7 @@
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 7
     <meta name="renderer" content="webkit">
8 8
     <meta http-equiv="Cache-Control" content="no-siteapp" />
9
-    <title>商丘政务服务热线后台业务管理系统</title>
9
+    <title>平顶山政务服务热线后台业务管理系统</title>
10 10
     <script src="./js/jquery.min.js"></script>
11 11
     <script src="./js/jquery.cookie.js"></script>
12 12
 </head>

+ 33 - 26
WebUI/CallCenterWeb.UI/js/index.js

@@ -1154,7 +1154,9 @@ function loadZSK() {
1154 1154
                     var html = '<li>' +
1155 1155
                 '   <div class="zhishi-title clearfix">' +
1156 1156
                 '	    <a href="javascript:void(0);" class="titless" >' + after_w + '</a>' +
1157
-                '	    <em ><span style="cursor:pointer;color:#337ab7" onclick="resolve('+n.F_Id+')">解决</span><span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="noSolve('+n.F_Id+')">未解决</span></em>' +
1157
+                '	    <em ><span style="cursor:pointer;color:#337ab7" onclick="appraise('+n.F_Id+')">评价</span>'+
1158
+                '		<span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="resolve('+n.F_Id+')">解决</span>'+
1159
+                '		<span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="noSolve('+n.F_Id+')">未解决</span></em>' +
1158 1160
                 '   </div>' +
1159 1161
                 '   <div class="explancon">' +
1160 1162
                 n.F_EndAnswer +
@@ -1164,7 +1166,9 @@ function loadZSK() {
1164 1166
                     var html = '<li>' +
1165 1167
                 '   <div class="zhishi-title clearfix">' +
1166 1168
                 '	    <a href="javascript:void(0);" class="titless" >' + n.F_Title + '</a>' +
1167
-                '	    <em ><span style="cursor:pointer;color:#337ab7" onclick="resolve('+n.F_Id+')">解决</span><span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="noSolve('+n.F_Id+')">未解决</span></em>' +
1169
+                '	    <em ><span style="cursor:pointer;color:#337ab7" onclick="appraise('+n.F_Id+')">评价</span>'+
1170
+                '		<span style="cursor:pointer;color:#337ab7" onclick="resolve('+n.F_Id+')">解决</span>'+
1171
+                '		<span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="noSolve('+n.F_Id+')">未解决</span></em>' +
1168 1172
                 '   </div>' +
1169 1173
                 '   <div class="explancon">' +
1170 1174
                 n.F_EndAnswer +
@@ -1185,6 +1189,15 @@ function loadZSK() {
1185 1189
 
1186 1190
     })
1187 1191
 }
1192
+//评价
1193
+function appraise(){
1194
+	layer.open({
1195
+		type:2,
1196
+		title:'评价',
1197
+		area:['30%','30%'],
1198
+		content:'./zhishiku/evaluate.html'
1199
+	})
1200
+}
1188 1201
 //解决
1189 1202
 function resolve(id) {
1190 1203
 	var laye = layer.confirm('确定解决?', {
@@ -1228,31 +1241,25 @@ function noSolve(id){
1228 1241
             layer.close();
1229 1242
           },
1230 1243
           btn: ['确定','取消'],//按钮
1231
-          yes: function(){ 
1232
-          		if(!$('#result').val()){
1233
-						layer.msg('请填写未解决原因!');
1234
-						return false;
1235
-				}else{
1236
-					$.ajax({
1237
-						type: "post",
1238
-						url: huayi.config.callcenter_url + "Repository/OptRep",
1239
-						async: true,
1240
-						dataType: 'json',
1241
-						data: {
1242
-						    token: $.cookie("token"),
1243
-							repid: id,
1244
-							reason:$('#result').val(),
1245
-							type:2
1246
-						},
1247
-						success: function(data) {
1248
-							if(data.state.toLowerCase() == 'success') {
1249
-								layer.msg("提交成功!");
1250
-								layer.close(laye);
1251
-								table.bootstrapTable('refresh');
1252
-							}
1253
-						}
1254
-					});
1244
+          yes: function(){
1245
+			$.ajax({
1246
+				type: "post",
1247
+				url: huayi.config.callcenter_url + "Repository/OptRep",
1248
+				async: true,
1249
+				dataType: 'json',
1250
+				data: {
1251
+				    token: $.cookie("token"),
1252
+					repid: id,
1253
+					reason:$('#result').val(),
1254
+					type:2
1255
+				},
1256
+				success: function(data) {
1257
+					if(data.state.toLowerCase() == 'success') {
1258
+						layer.msg("提交成功!");
1259
+						layer.close(laye);
1260
+					}
1255 1261
 				}
1262
+			});
1256 1263
           }
1257 1264
         });
1258 1265
 }

+ 182 - 0
WebUI/CallCenterWeb.UI/questionnaire/progressStatistics.html

@@ -0,0 +1,182 @@
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
+    <link href="../css/init.css" rel="stylesheet" />
9
+    <link href="../css/Table/table1.css" rel="stylesheet" />
10
+    <script src="../Script/Common/huayi.load.js"></script>
11
+    <script src="../Script/Common/huayi.config.js"></script>
12
+    <script src="../My97DatePicker/WdatePicker.js"></script>
13
+    <script src="../css/laydate/laydate.js"></script>
14
+    <style>
15
+        body {
16
+            font-family: "微软雅黑";
17
+            font-size: 14px;
18
+        }
19
+
20
+        ul li {
21
+            list-style: none;
22
+            float: left;
23
+        }
24
+
25
+        .fr {
26
+            float: right;
27
+        }
28
+        /*标头*/
29
+
30
+        .th-box {
31
+            width: 100%;
32
+            padding: 5px;
33
+            border-bottom: 1px solid #e7eaec;
34
+        }
35
+
36
+        .th-bar {
37
+            height: 40px;
38
+        }
39
+
40
+      #list thead tr th{
41
+      	    background: #01a1cb;
42
+    color: #fff;
43
+      }
44
+    </style>
45
+</head>
46
+
47
+<body class="gray-bg">
48
+    <div class="wrapper wrapper-content animated fadeInRight">
49
+        <div class="daoHang clearfix">
50
+            <div class="dhLeft">
51
+                <sapn><i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>&gt;<a href="javaScript:;">问卷调查</a>&gt;<a href="" class="nowPosition">问卷进度统计</a></sapn>
52
+            </div>
53
+            <div class="dhRight">
54
+            	<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
55
+            </div>
56
+        </div>
57
+        <div class="th-box">
58
+            <div class="th-bar">
59
+                <!--<a class="sc_btn btn-info" id="moves">批量删除</a>-->
60
+                <div class="seach-box fr">
61
+                    <!--<ul>
62
+                        <li>开始时间:<input id="start" class="photo x-color laydate-icon" type="text" /></li>
63
+                        <li>结束时间:<input id="end" class="photo x-color laydate-icon" type="text" /></li>
64
+                        <li>
65
+                           	 时间类型:
66
+                            <select style="width: 100px;" class="select_ dataType">
67
+                                <option value="0" selected="selected">日</option>
68
+                                <option value="1">周</option>
69
+                                <option value="2">月</option>
70
+                            </select>
71
+                        </li>
72
+                        <li>
73
+                            <button class="btns search">查询</button>
74
+                            <a class="btns export">导出</a>
75
+                        </li>
76
+                    </ul>-->
77
+                </div>
78
+            </div>
79
+        </div>
80
+        <div style="width: 100%;padding: 10px;">
81
+            <table id="list" class="table table-hover table-striped table-bordered table-condensed">
82
+                <thead>
83
+                    <tr>
84
+                       <th>问卷名称</th>
85
+                       <th>发起时间</th>
86
+                       <th>截止时间</th>
87
+                       <th>完成情况</th>
88
+                    </tr>
89
+                    <tr>
90
+                		<td>测试</td>
91
+                		<td>2020-05-17</td>
92
+                		<td>2020-05-20</td>
93
+                		<td>90%</td>
94
+                	</tr>
95
+                	<tr>
96
+                		<td>测试2</td>
97
+                		<td>2020-05-16</td>
98
+                		<td>2020-05-21</td>
99
+                		<td>100%</td>
100
+                	</tr>
101
+                </thead>
102
+                <tbody>
103
+                </tbody>
104
+            </table>
105
+            <!--高级搜索框-->
106
+        </div>
107
+    </div>
108
+   
109
+    <script>
110
+        $(document).ready(function () {
111
+        	var start=$('#start').val();//开始时间
112
+        	var end=$('#end').val();//结束时间
113
+        	var usercode;//工号
114
+        	var type=$('.dataType').val();//时间类型
115
+            //表头
116
+            $.ajax({
117
+            	type:"get",
118
+            	url:huayi.config.callcenter_url +"TelWOReport/GetColumnList",
119
+            	async:true,
120
+            	dataType:'json',
121
+            	data:{
122
+            		token:$.cookie("token")
123
+            	},
124
+            	success:function(data){
125
+            		var con=data.data;
126
+            		if(data.state.toLowerCase()=='success'){
127
+            			$(con).each(function(i,n){
128
+            				$('<th>'+n +'</th>').appendTo('#ist thead tr')
129
+            			})
130
+            		}
131
+            	}
132
+            });
133
+            tableAjax(start,end,type)
134
+            //表内数据
135
+            function tableAjax(start,end,type){
136
+            	$('#list tbody').html('');
137
+            	 $.ajax({
138
+            	type:"get",
139
+            	url:huayi.config.callcenter_url +"TelWOReport/GetTrafficReport",
140
+            	async:true,
141
+            	dataType:'json',
142
+            	data:{
143
+            		token:$.cookie("token"),
144
+            		btime:start,
145
+            		etime:end,
146
+            		type:type
147
+//          		usercode:usercode
148
+            	},
149
+            	success:function(data){
150
+            		var con=data.data;
151
+            		if(data.state.toLowerCase()=='success'){
152
+            			$(con).each(function(i,n){
153
+            			    $('<tr><td>' + n.日期 + '</td><td>' + n.接听来电 + '</td><td>' + n.有效来电 + '</td><td>' + n.受理 + '</td><td>' + n.在线办结 + '</td><td>' + n.转派工单 + '</td><td>' + n.办结 + '</td></tr>').appendTo('#ist tbody')
154
+            			})
155
+            		}
156
+            	}
157
+            });
158
+            }
159
+           $('.search').click(function(){
160
+           		start=$('#start').val();
161
+           		end=$('#end').val();
162
+           		type=$('.dataType').val();
163
+           	   tableAjax(start,end,type)
164
+           })
165
+           $('.export').click(function(){
166
+           			dcexcel(this);
167
+           })
168
+		   function dcexcel(obj) {
169
+            var url = huayi.config.callcenter_url + "TelWOReport/ExptList?token=" + $.cookie("token");
170
+                url += "&btime=" + $("#start").val() + "&etime=" + $("#end").val()+ "&type=" + $(".dataType").val();
171
+                obj.href = url;
172
+       		 }
173
+			
174
+     })
175
+     
176
+       
177
+
178
+    </script>
179
+
180
+</body>
181
+
182
+</html>

+ 285 - 0
WebUI/CallCenterWeb.UI/questionnaire/resultStatistics.html

@@ -0,0 +1,285 @@
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
+		<link href="../css/init.css" rel="stylesheet" />
9
+		<script src="../Script/Common/huayi.load.js"></script>
10
+		<script src="../Script/Common/huayi.config.js"></script>
11
+		<link href="../css/Table/table1.css" rel="stylesheet" />
12
+		<style>
13
+			.LY:hover {
14
+				color: #fff;
15
+			}
16
+			
17
+			.LY:active {
18
+				color: #fff!important;
19
+			}
20
+			
21
+			#Task thead td {
22
+				color: #fff;
23
+				background-color: #00a1cb;
24
+				text-align: center;
25
+			}
26
+			
27
+			.table-head table thead {
28
+				width: calc( 100% - 5px);
29
+			}
30
+			
31
+			table thead,
32
+			tbody tr {
33
+				/*display: table;*/
34
+				width: 100%;
35
+				table-layout: fixed;
36
+				text-align: center;
37
+			}
38
+			
39
+			.table {
40
+				margin-bottom: 0;
41
+			}
42
+			
43
+			.table-body {
44
+				width: 100%;
45
+				height: 515px;
46
+				overflow-y: scroll;
47
+				overflow-x: scroll;
48
+			}
49
+			#ss_kssj{
50
+				width: 220px;
51
+				font-size: 14px;
52
+			}
53
+			.tub{
54
+				position: absolute;
55
+				top: 10px;
56
+				right: 10px ; 	
57
+				color: #00a1cb;
58
+			}
59
+			.sc_btn{
60
+				padding: 8px 10px;
61
+				line-height: 30px;
62
+			}
63
+		</style>
64
+	</head>
65
+
66
+	<body class="gray-bg">
67
+		<div class="wrapper wrapper-content animated fadeInRight">
68
+			<div class="daoHang clearfix">
69
+				<div class="dhLeft">
70
+					<sapn><i class="syIcon"></i>位置:
71
+						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
72
+						<a href="javaScript:;">问卷调查</a>&gt;
73
+						<a href="" style="color: #000;">问卷结果统计</a>
74
+					</sapn>
75
+				</div>
76
+			</div>
77
+			<div class="th-box  clearfix">
78
+				<div class="th-bar">
79
+					<div class="seach-box fl">
80
+						<ul>
81
+							<li style="position: relative;">
82
+								时间:
83
+								<i class="tub fa fa-calendar"></i>
84
+								<input type="text" id="ss_kssj" class="photo laydate-icon" placeholder="请选择开始时间和结束时间" />
85
+							</li>
86
+							<li>任务列表:
87
+								<select id="cljg" class="x-color select"></select>
88
+							</li>
89
+							<li>问题列表:
90
+								<select id="Wt" class="x-color select"></select>
91
+							</li>
92
+							<li>乡镇或单位:
93
+								<select id="country" class="x-color select">
94
+									<option value="">--全部--</option>
95
+								</select>
96
+							</li>
97
+							<li>
98
+								<a class="sc_btn seach">搜索</a>
99
+							</li>
100
+							<li>
101
+								<a class="sc_btn export">导出</a>
102
+							</li>
103
+						</ul>
104
+					</div>
105
+				</div>
106
+			</div>
107
+			<div style="width: 100%;padding: 10px;">
108
+				<div class="table-head">
109
+					<table id="Task" class="table table-hover table-striped table-bordered table-condensed">
110
+						<!--<colgroup>
111
+							<col style="width: 80px;" />
112
+							<col/>
113
+						</colgroup>-->
114
+						<thead>
115
+							<tr>
116
+								<td>问题</td>
117
+								<td>选项</td>
118
+								<td>数量</td>
119
+								<td>比例</td>
120
+							</tr>
121
+						</thead>
122
+					</table>
123
+				</div>
124
+				<div class="table-body">
125
+					<table class="thTable hwbb table table-hover table-striped table-bordered table-condensed">
126
+						<colgroup>
127
+							<col style="width: 80px;" />
128
+							<col/>
129
+						</colgroup>
130
+						<tbody>
131
+
132
+						</tbody>
133
+					</table>
134
+				</div>
135
+			</div>
136
+		</div>
137
+		<script src="../js/laydate/laydate.js"></script>
138
+		<script>
139
+			$(document).ready(function() {
140
+//				taskSelect();
141
+//				questionnaireSelect();
142
+//				getCountry();
143
+				laydate.render({
144
+					elem: '#ss_kssj',
145
+					range: '~',
146
+					//value: st,
147
+					calendar: true,
148
+					theme: '#00a1cb',
149
+				});
150
+				$(".sc_btn").click(function() {
151
+//					getDataList();
152
+				})
153
+				//导出功能
154
+				$('.export').click(function() {
155
+					dcexcel(this);
156
+				})
157
+
158
+			});
159
+			//查询条件中获取任务列表
160
+			function taskSelect() {
161
+				$.ajax({
162
+					type: "get",
163
+					url: huayi.config.callcenter_url + "Questionnaire/GetTaskList",
164
+					dataType: 'json',
165
+					data: {
166
+						token: $.cookie("token")
167
+					},
168
+					async: true,
169
+					success: function(data) {
170
+						if(data.state.toLowerCase() == "success") {
171
+							var Count = data.data;
172
+							if(Count.length > 0) {
173
+								//$("<option value=''>--全部--</option>").appendTo($("#cljg"));
174
+								for(var i = 0; i < Count.length; i++) {
175
+									$("<option value='" + Count[i].F_TaskID + "'>" + Count[i].F_TaskName + "</option>").appendTo($("#cljg"));
176
+								}
177
+							} else {
178
+								$("<option value=''>--暂无数据--</option>").appendTo($("#cljg"));
179
+							}
180
+						}
181
+					}
182
+				});
183
+			}
184
+			///查询条件问题任务列表
185
+			function questionnaireSelect() {
186
+				$.ajax({
187
+					type: "get",
188
+					url: huayi.config.callcenter_url + "Questionnaire/GetQList",
189
+					dataType: 'json',
190
+					data: {
191
+						token: $.cookie("token")
192
+					},
193
+					async: true,
194
+					success: function(data) {
195
+						if(data.state.toLowerCase() == "success") {
196
+							var Count = data.data;
197
+//							$("<option value=''>--全部--</option>").appendTo($("#Wt"));
198
+							for(var i = 0; i < Count.length; i++) {
199
+								$("<option value='" + Count[i].F_QuestionId + "'>" + Count[i].F_Title + "</option>").appendTo($("#Wt"));
200
+							}
201
+						} else {
202
+							$("<option value=''>--暂无数据--</option>").appendTo($("#Wt"));
203
+						}
204
+					}
205
+				})
206
+				.then(function(){
207
+//					getDataList();
208
+				});
209
+			}
210
+			
211
+			//获取乡镇或单位下拉
212
+			function getCountry(){
213
+				$.ajax({
214
+					type: "get",
215
+					url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
216
+					dataType: 'json',
217
+					data: {
218
+						flag: 'JBDW',
219
+						token: $.cookie("token")
220
+					},
221
+					async: true,
222
+					success: function(data) {
223
+						if(data.state.toLowerCase() == "success") {
224
+							var res = data.data;
225
+							for(var i = 0; i < res.length; i++) {
226
+								$('<option value="'+ res[i].F_DictionaryValueId +'">'+ res[i].F_Name +'</option>').appendTo($("#country"));
227
+							}
228
+						}else{
229
+							$("<option value=''>--暂无数据--</option>").appendTo($("#country"));
230
+						}
231
+					}
232
+				});
233
+			}
234
+			
235
+			//获取数据			
236
+			function getDataList() {
237
+				$.ajax({
238
+					type: "get",
239
+					url: huayi.config.callcenter_url + "CallOutReport/GetReport",
240
+					dataType: 'json',
241
+					data: {
242
+						TaskID: $("#cljg").val(), //string	是	任务id
243
+						quesid: $('#Wt').val(), // string 是 问题id
244
+						countryid: $('#country').val(), // string 否 乡镇或单位id
245
+						sdate: $("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[0],// string 否 开始时间
246
+						edate: $("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[1],//string 否 结束时间
247
+						token: $.cookie("token")
248
+					},
249
+					async: true,
250
+					success: function(data) {
251
+						$(".thTable tbody").empty();
252
+						if(data.state.toLowerCase() == "success") {
253
+							var Count = data.data;
254
+							if(Count.length > 0) {
255
+								for(var i = 0; i < Count.length; i++) {
256
+									$('<tr><td>' + Count[i].wenti + ' </td>' +
257
+										'<td> ' + Count[i].xuanxiang + ' </td>' +
258
+										'<td> ' + Count[i].shuliang + ' </td>' +
259
+										'<td> ' + Count[i].bili + ' </td>' +
260
+										'</tr>').appendTo(".hwbb tbody");
261
+								}
262
+							} else {
263
+								$(".thTable tbody").html('<p class="text-center">没有找到您想要的记录呢!我会努力的...</p>');
264
+							}
265
+						} else {
266
+							$(".thTable tbody").html('<p class="text-center">没有找到您想要的记录呢!我会努力的...</p>');
267
+						}
268
+					}
269
+				});
270
+			}
271
+
272
+			function dcexcel(obj) {
273
+				var url = huayi.config.callcenter_url + "CallOutReport/GetReportExpt?token=" + $.cookie("token");
274
+				url += "&TaskID=" + $("#cljg").val();
275
+				url += "&quesid=" + $("#Wt").val();
276
+				url += "&countryid=" + $("#country").val();
277
+				url += "&sdate=" + ($("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[0]);// string 否 开始时间
278
+				url += "&edate=" + ($("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[1]);// string 否 开始时间
279
+				obj.href = url;
280
+			}
281
+		</script>
282
+
283
+	</body>
284
+
285
+</html>

+ 153 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/evaluate.html

@@ -0,0 +1,153 @@
1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="UTF-8">
5
+		<title></title>
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+	    <script src="../Script/Common/huayi.config.js"></script>
8
+	    <link rel="stylesheet" href="../css/init.css" />
9
+	</head>
10
+	<style type="text/css">
11
+		/*评分cs*/
12
+		* {
13
+			margin: 0;
14
+			padding: 0;
15
+			font-size: 13px;
16
+		}
17
+		
18
+		ul,
19
+		li {
20
+			list-style: none;
21
+		}
22
+		
23
+		.star {
24
+			position: relative;
25
+			width: 600px;
26
+			height: 24px;
27
+			margin: 20px auto 0;
28
+			padding-left: 40px;
29
+		}
30
+		
31
+		.star span {
32
+			float: left;
33
+			height: 19px;
34
+			line-height: 19px;
35
+		}
36
+		
37
+		.star ul {
38
+			margin: 0 10px;
39
+			padding-left: 30px;
40
+		}
41
+		
42
+		.star li {
43
+			float: left;
44
+			width: 24px;
45
+			height: 22px;
46
+			text-indent: -9999px;
47
+			background: url('../img/star.png') no-repeat;
48
+			cursor: pointer;
49
+		}
50
+		
51
+		.star li.on {
52
+			background-position: 0 -28px;
53
+		}
54
+		
55
+		.star p {
56
+			background: url('../img/icon.gif') no-repeat;
57
+			padding: 10px 10px 0;
58
+			position: absolute;
59
+			top: 20px;
60
+			width: 159px;
61
+			height: 30px;
62
+			z-index: 100;
63
+		}
64
+		
65
+		.star p em {
66
+			color: #FF6600;
67
+			display: block;
68
+			font-style: normal;
69
+		}
70
+		
71
+		.star strong {
72
+			color: #ff6600;
73
+			padding-left: 10px;
74
+		}
75
+		
76
+		.hidden {
77
+			display: none;
78
+		}
79
+		 /*评分cs结束*/
80
+		.model {
81
+			display: block;
82
+			background: none;
83
+		}
84
+		.box{
85
+			width: 100%;
86
+			margin-top: 1%;
87
+		}
88
+	</style>
89
+	<body>
90
+<!--评价内容-->
91
+    <div class="model addModel">
92
+        <div class="box">
93
+        	<div class="star">
94
+				<span>评价</span>
95
+				<ul>
96
+					<li><a href="javascript:;">1</a></li>
97
+					<li><a href="javascript:;">2</a></li>
98
+					<li><a href="javascript:;">3</a></li>
99
+					<li><a href="javascript:;">4</a></li>
100
+					<li><a href="javascript:;">5</a></li>
101
+				</ul>
102
+			</div>
103
+        	<div style="padding-top:20px;padding-left:40px;">
104
+             <textarea id="result" type="text" placeholder="请输入评价内容" value="" style="width: 90%;height: 130px;"></textarea> 
105
+           </div>
106
+           <div style="text-align: center;"><button class="btns addCun">确定</button></div>
107
+        </div>
108
+
109
+    </div>
110
+    <script type="text/javascript">
111
+    	var wid = helper.request.queryString("wid");
112
+    	$(function(){
113
+    		var score = new Score({
114
+				callback: function(cfg) {
115
+					console.log(cfg.starAmount);
116
+				}
117
+			});
118
+    		$('.addCun').click(function(){
119
+    			if(!$('#result').val()){
120
+						layer.msg('请填写评价内容!');
121
+						return false;
122
+				}else{
123
+					layer.msg("评价成功!");
124
+					var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
125
+					parent.layer.close(index); //再执行关闭;
126
+//						$.ajax({
127
+//	    				type:"post",
128
+//	    				url:huayi.config.callcenter_url + "Repository/OptRep",
129
+//	    				async:true,
130
+//	      				data: {
131
+//						    token: $.cookie("token"),
132
+//							repid: wid,
133
+//							reason:$('#result').val(),
134
+//							type:2
135
+//						},
136
+//						success: function(data) {
137
+//							var data=JSON.parse(data)
138
+//							if(data.state == 'success') {
139
+//								layer.msg("评价成功!");
140
+//								setTimeout(function(){
141
+//									var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
142
+//									parent.layer.close(index); //再执行关闭;
143
+//								},500)
144
+//							}
145
+//						}
146
+//	    			});
147
+				}
148
+    		})
149
+    	})
150
+    </script>
151
+    <script src="./js/score.js"></script>
152
+	</body>
153
+</html>

+ 11 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepository.js

@@ -221,8 +221,8 @@
221 221
 			function CZ(val,row){
222 222
 				var Rows = row.Buttons;
223 223
 	            var html = '';
224
+	            html = '<a class="xg" onclick=appraise()>评价&nbsp</a>';
224 225
 	            for (var i = 0; i < Rows.length; i++) {
225
-	
226 226
 	                var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
227 227
 	                if (html1) {
228 228
 	                    html1 = html1.replace("data", row.F_Id);
@@ -232,6 +232,16 @@
232 232
 	            }
233 233
 	            return html;
234 234
 	      }
235
+			//评价
236
+			function appraise(){
237
+				layer.open({
238
+					type:2,
239
+					title:'评价',
240
+					area:['40%','40%'],
241
+					maxmin:true,
242
+					content:'evaluate.html'
243
+				})
244
+			}
235 245
 			//详情
236 246
 			function goDetail(ids,DeptId){
237 247
 				if(DeptId==100000){

+ 104 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/score.js

@@ -0,0 +1,104 @@
1
+
2
+/**
3
+ * JS评分
4
+ */
5
+ function Score(options) {
6
+	this.config = {
7
+		selector                  :   '.star',     // 评分容器
8
+		renderCallback            :   null,        // 渲染页面回调
9
+		callback                  :   null         // 点击评分回调                      
10
+	};
11
+
12
+	this.cache = {
13
+		aMsg : [
14
+				"很不满意",
15
+				"不满意",
16
+				"一般",
17
+				"满意",
18
+				"非常满意"
19
+				],
20
+		iStar  : 0,
21
+		iScore : 0
22
+	};
23
+
24
+	this.init(options);
25
+ }
26
+
27
+ Score.prototype = {
28
+
29
+	constructor: Score,
30
+
31
+	init: function(options){
32
+		this.config = $.extend(this.config,options || {});
33
+		var self = this,
34
+			_config = self.config,
35
+			_cache = self.cache;
36
+
37
+		self._renderHTML();
38
+	},
39
+	_renderHTML: function(){
40
+		var self = this,
41
+			_config = self.config;
42
+		var html = '<span class="desc"></span>' + 
43
+				   '<p class="star-p hidden"></p>';
44
+		$(_config.selector).each(function(index,item){
45
+			$(item).append(html);
46
+			$(item).wrap($('<div class="parentCls" style="position:relative"></div>'));
47
+			var parentCls = $(item).closest('.parentCls');
48
+			self._bindEnv(parentCls);
49
+			_config.renderCallback && $.isFunction(_config.renderCallback) && _config.renderCallback();
50
+		});
51
+
52
+	},
53
+	_bindEnv: function(parentCls){
54
+		var self = this,
55
+			_config = self.config,
56
+			_cache = self.cache;
57
+
58
+		$(_config.selector + ' li',parentCls).each(function(index,item){
59
+			
60
+			// 鼠标移上
61
+			$(item).mouseover(function(e){
62
+				var offsetLeft = $('ul',parentCls)[0].offsetLeft;
63
+				ismax(index + 1);
64
+				
65
+				$('p',parentCls).hasClass('hidden') && $('p',parentCls).removeClass('hidden');
66
+				$('p',parentCls).css({'left':index*$(this).width() - 1 + 'px'});
67
+				
68
+
69
+				var html = '<em style="text-align:center">' + 
70
+							  '<b>'+(index+1)+'</b>分 '+_cache.aMsg[index].split('|')[0]+'' + 
71
+						   '</em>';
72
+				$('p',parentCls).html(html);
73
+			});
74
+
75
+			// 鼠标移出
76
+			$(item).mouseout(function(){
77
+				ismax();
78
+   				!$('p',parentCls).hasClass('hidden') && $('p',parentCls).addClass('hidden');
79
+			});
80
+			
81
+			// 鼠标点击
82
+			$(item).click(function(e){
83
+				var index = $(_config.selector + ' li',parentCls).index($(this));
84
+				_cache.iStar = index + 1;			
85
+				!$('p',parentCls).hasClass('hidden') && $('p',parentCls).addClass('hidden');
86
+				var html = '<strong>' +_cache.iStar +'分</strong>' ;
87
+
88
+				$('.desc',parentCls).html(html);
89
+				_config.callback && $.isFunction(_config.callback) && _config.callback({starAmount:_cache.iStar});
90
+			});
91
+			
92
+		});
93
+
94
+		function ismax(iArg) {
95
+			_cache.iScore = iArg || _cache.iStar;
96
+			var lis = $(_config.selector + ' li',parentCls);
97
+			
98
+			for(var i = 0; i < lis.length; i++) {
99
+				lis[i].className = i < _cache.iScore ? "on" : "";
100
+			}
101
+		}
102
+	}
103
+ };
104
+

+ 66 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryDetail.html

@@ -133,10 +133,66 @@
133 133
 				min-width: 190px;
134 134
 				text-indent: 0px;
135 135
 			}
136
+			/*评分cs*/
137
+			.star {
138
+				position: relative;
139
+			}
140
+			.star span {
141
+				float: left;
142
+				height: 19px;
143
+				line-height: 19px;
144
+			}
145
+	
146
+			.star li {
147
+				float: left;
148
+				width: 24px;
149
+				height: 22px;
150
+				text-indent: -9999px;
151
+				background: url('../img/star.png') no-repeat;
152
+				cursor: pointer;
153
+			}
154
+			
155
+			.star li.on {
156
+				background-position: 0 -28px;
157
+			}
158
+			
159
+			.star p {
160
+				background: url('../img/icon.gif') no-repeat;
161
+				padding: 10px 10px 0;
162
+				position: absolute;
163
+				top: 20px;
164
+				width: 159px;
165
+				height: 30px;
166
+				z-index: 100;
167
+			}
168
+			
169
+			.star p em {
170
+				color: #FF6600;
171
+				display: block;
172
+				font-style: normal;
173
+			}
174
+			
175
+			.star strong {
176
+				color: #ff6600;
177
+				padding-left: 10px;
178
+			}
179
+			.hidden {
180
+				display: none;
181
+			}
182
+			 /*评分cs结束*/
136 183
 		</style>
137 184
 	</head>
138 185
 		<body class="gray-bg">
139 186
 			<div class="container-fluid wrapper-content animated fadeInRight">
187
+				<div class="star">
188
+					<ul>
189
+						<li><a href="javascript:;">1</a></li>
190
+						<li><a href="javascript:;">2</a></li>
191
+						<li><a href="javascript:;">3</a></li>
192
+						<li><a href="javascript:;">4</a></li>
193
+						<li><a href="javascript:;">5</a></li>
194
+					</ul>
195
+				</div>
140 196
 				<div class="operation_bj">
141 197
 					
142 198
 				</div>
@@ -276,6 +332,16 @@
276 332
 				var ids=helper.request.queryString("ids");
277 333
 				var depId=helper.request.queryString("DeptId");
278 334
 				$(document).ready(function(){
335
+					//展示评价星级
336
+					var num =1;
337
+					if(num==3){
338
+						$('.star li:lt(3)').addClass('on')
339
+					}else if(num==4){
340
+						$('.star li:lt(4)').addClass('on')
341
+					}else if(num==5){
342
+						$('.star li:lt(5)').addClass('on')
343
+					}
344
+					
279 345
 					//关闭自身 
280 346
 				       window.formClose = function(){
281 347
 				              var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引