d123 %!s(int64=8) %!d(string=hace) años
padre
commit
0a4285037b
Se han modificado 2 ficheros con 251 adiciones y 46 borrados
  1. 158 23
      CallCenterWeb.UI/Questionnaire/Table.html
  2. 93 23
      CallCenterWeb.UI/Questionnaire/Tasks.html

+ 158 - 23
CallCenterWeb.UI/Questionnaire/Table.html

@@ -18,6 +18,34 @@
18 18
 			.LY:active {
19 19
 				color: #fff!important;
20 20
 			}
21
+			
22
+			#Task thead td {
23
+				color: #fff;
24
+				background-color: #1ab394;
25
+				text-align: center;
26
+			}
27
+			
28
+			.table-head table thead {
29
+				width: calc( 100% - 5px);
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
+			}
21 49
 		</style>
22 50
 	</head>
23 51
 
@@ -27,8 +55,8 @@
27 55
 				<div class="dhLeft">
28 56
 					<sapn><i class="syIcon"></i>位置:
29 57
 						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
30
-						<a href="javaScript:;">话务管理</a>&gt;
31
-						<a href="" style="color: #000;">语音留言</a>
58
+						<a href="javaScript:;">调查问卷</a>&gt;
59
+						<a href="" style="color: #000;">调查问卷统计</a>
32 60
 					</sapn>
33 61
 				</div>
34 62
 			</div>
@@ -57,21 +85,104 @@
57 85
 				</div>
58 86
 			</div>
59 87
 			<div style="width: 100%;padding: 10px;">
60
-				<table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
61
-					<thead>
62
-						<tr>
63
-							<th data-field="state" data-checkbox="true"></th>
64
-							<th data-field="F_CallId" data-formatter="Code" data-align="center">编号</th>
65
-							<th data-field="F_Phone" data-align="center">来电号码</th>
66
-							<th data-field="F_RecFileUrl" data-align="center" data-formatter="setCode" data-align="center">留言</th>
67
-							<th data-field="F_LeaveTime" data-align="center">留言时间</th>
68
-							<th data-field="F_UserName" data-align="center">处理人</th>
69
-							<th data-field="F_DealContent" data-align="center">处理结果</th>
70
-							<th data-field="F_Status" data-align="center" data-formatter="clzt">处理状态</th>
71
-							<th data-field="F_DealTime" data-align="center">处理时间</th>
72
-						</tr>
73
-					</thead>
74
-				</table>
88
+				<div class="table-head">
89
+					<table id="Task" class="table table-hover table-striped table-bordered table-condensed">
90
+						<colgroup>
91
+							<col style="width: 80px;" />
92
+							<col/>
93
+						</colgroup>
94
+						<thead>
95
+							<tr>
96
+								<td>测试测试</td>
97
+								<td colspan="4">测试测试</td>
98
+								<td>测试测试</td>
99
+								<td>测试测试</td>
100
+								<td>测试测试</td>
101
+								<td>测试测试</td>
102
+								<td>测试测试</td>
103
+								<td>测试测试</td>
104
+								<td>测试测试</td>
105
+							</tr>
106
+						</thead>
107
+					</table>
108
+				</div>
109
+				<div class="table-body">
110
+					<table class="thTable hwbb table table-hover table-striped table-bordered table-condensed">
111
+						<colgroup>
112
+							<col style="width: 80px;" />
113
+							<col/>
114
+						</colgroup>
115
+						<tbody>
116
+							<tr>
117
+								<td>测试测试</td>
118
+								<td colspan="4" style="text-align: center;">测试测试</td>
119
+								<td colspan="4" style="text-align: center;">测试测试</td>
120
+								<td colspan="4" style="text-align: center;">测试测试</td>
121
+								<td colspan="2" style="text-align: center;">测试测试</td>
122
+								<td colspan="3" style="text-align: center;">测试测试</td>
123
+
124
+							</tr>
125
+							<tr style="border:1px solid #E0EEFE" align="center">
126
+								<td ></td>
127
+								<td>A</td>
128
+								<td>B</td>
129
+								<td>B</td>
130
+								<td>D</td>
131
+								<td>A</td>
132
+								<td>B</td>
133
+								<td>B</td>
134
+								<td>D</td>
135
+								<td>测试测试</td>
136
+								<td>测试测试</td>
137
+								<td>测试测试</td>
138
+								
139
+								
140
+							</tr>
141
+
142
+							<tr style="border:1px solid #E0EEFE" align="center">
143
+								<td>测试测试</td>
144
+								<td>测试测试</td>
145
+								<td>测试测试</td>
146
+								<td>测试测试</td>
147
+								<td>测试测试</td>
148
+								<td>测试测试</td>
149
+								<td>测试测试</td>
150
+								<td>测试测试</td>
151
+								<td>测试测试</td>
152
+								<td>测试测试</td>
153
+								<td>测试测试</td>
154
+							</tr>
155
+
156
+							<tr style="border:1px solid #E0EEFE" align="center">
157
+								<td>测试测试</td>
158
+								<td>测试测试</td>
159
+								<td>测试测试</td>
160
+								<td>测试测试</td>
161
+								<td>测试测试</td>
162
+								<td>测试测试</td>
163
+								<td>测试测试</td>
164
+								<td>测试测试</td>
165
+								<td>测试测试</td>
166
+								<td>测试测试</td>
167
+								<td>测试测试</td>
168
+							</tr>
169
+							<tr style="border:1px solid #E0EEFE" align="center">
170
+								<td>测试测试</td>
171
+								<td>测试测试</td>
172
+								<td>测试测试</td>
173
+								<td>测试测试</td>
174
+								<td>测试测试</td>
175
+								<td>测试测试</td>
176
+								<td>测试测试</td>
177
+								<td>测试测试</td>
178
+								<td>测试测试</td>
179
+								<td>测试测试</td>
180
+								<td>测试测试</td>
181
+							</tr>
182
+
183
+						</tbody>
184
+					</table>
185
+				</div>
75 186
 			</div>
76 187
 		</div>
77 188
 		>
@@ -79,8 +190,9 @@
79 190
 			$(document).ready(function() {
80 191
 				Task();
81 192
 				Questionnaire();
82
-				$(".sc_btn").click(function(){
83
-					 GetColumnList ();
193
+				$(".sc_btn").click(function() {
194
+					GetColumnList();
195
+					Number()
84 196
 				})
85 197
 				///查询条件中获取任务列表
86 198
 				function Task() {
@@ -127,20 +239,43 @@
127 239
 					});
128 240
 				}
129 241
 				//任务查询获取表头
130
-				function  GetColumnList () {
242
+				function GetColumnList() {
243
+					$("#Task thead tr").empty();
131 244
 					$.ajax({
132 245
 						type: "get",
133 246
 						url: huayi.config.callcenter_url + "Questionnaire/GetColumnList",
134 247
 						dataType: 'json',
135 248
 						data: {
136
-							taskname:$("#cljg").val(),
137
-							question:$("#Wt").val(),
249
+							taskname: $("#cljg").val(),
250
+							question: $("#Wt").val(),
138 251
 							token: $.cookie("token")
139 252
 						},
140 253
 						async: true,
141 254
 						success: function(data) {
142 255
 							var Count = data.data;
143
-						
256
+							for(var i = 0; i < Count.length; i++) {
257
+								$('<td>' + Count[i].wenti + ' </td>').appendTo("#Task thead tr");
258
+
259
+							}
260
+							console.log(Count)
261
+						}
262
+					});
263
+				}
264
+
265
+				function Number() {
266
+					$.ajax({
267
+						type: "get",
268
+						url: huayi.config.callcenter_url + "Questionnaire/GetDataList",
269
+						dataType: 'json',
270
+						data: {
271
+							taskname: $("#cljg").val(),
272
+							question: $("#Wt").val(),
273
+							token: $.cookie("token")
274
+						},
275
+						async: true,
276
+						success: function(data) {
277
+							var Count = data.data;
278
+
144 279
 							console.log(Count)
145 280
 						}
146 281
 					});

+ 93 - 23
CallCenterWeb.UI/Questionnaire/Tasks.html

@@ -18,6 +18,35 @@
18 18
 			.LY:active {
19 19
 				color: #fff!important;
20 20
 			}
21
+			
22
+			#Task thead td {
23
+				color: #fff;
24
+				background-color: #1ab394;
25
+				text-align: center;
26
+			}
27
+			
28
+			.table-head table thead {
29
+				width: calc( 100% - 5px);
30
+			}
31
+			
32
+			table thead,
33
+			tbody tr {
34
+				display: table;
35
+				width: 100%;
36
+				table-layout: fixed;
37
+				text-align: center;
38
+			}
39
+			
40
+			.table {
41
+				margin-bottom: 0;
42
+			}
43
+			
44
+			.table-body {
45
+				width: 100%;
46
+				height: 515px;
47
+				overflow-y: scroll;
48
+				overflow-x: scroll;
49
+			}
21 50
 		</style>
22 51
 	</head>
23 52
 
@@ -49,30 +78,44 @@
49 78
 				</div>
50 79
 			</div>
51 80
 			<div style="width: 100%;padding: 10px;">
52
-				<table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
53
-					<thead>
54
-						<tr>
55
-							<th data-field="state" data-checkbox="true"></th>
56
-							<th data-field="F_CallId" data-formatter="Code" data-align="center">编号</th>
57
-							<th data-field="F_Phone" data-align="center">来电号码</th>
58
-							<th data-field="F_RecFileUrl" data-align="center" data-formatter="setCode" data-align="center">留言</th>
59
-							<th data-field="F_LeaveTime" data-align="center">留言时间</th>
60
-							<th data-field="F_UserName" data-align="center">处理人</th>
61
-							<th data-field="F_DealContent" data-align="center">处理结果</th>
62
-							<th data-field="F_Status" data-align="center" data-formatter="clzt">处理状态</th>
63
-							<th data-field="F_DealTime" data-align="center">处理时间</th>
64
-						</tr>
65
-					</thead>
66
-				</table>
81
+				<div class="table-head">
82
+					<table id="Task" class="table table-hover table-striped table-bordered table-condensed">
83
+						<colgroup>
84
+							<col style="width: 80px;" />
85
+							<col/>
86
+						</colgroup>
87
+						<thead>
88
+							<tr>
89
+								<td>问题</td>
90
+								<td>选项</td>
91
+								<td>数量</td>
92
+								<td>比例</td>
93
+							</tr>
94
+						</thead>
95
+					</table>
96
+				</div>
97
+				<div class="table-body">
98
+					<table class="thTable hwbb table table-hover table-striped table-bordered table-condensed">
99
+						<colgroup>
100
+							<col style="width: 80px;" />
101
+							<col/>
102
+						</colgroup>
103
+						<tbody>
104
+
105
+						</tbody>
106
+					</table>
107
+				</div>
108
+				<div>
109
+				</div>
67 110
 			</div>
68 111
 		</div>
69
-		>
70 112
 		<script>
71 113
 			$(document).ready(function() {
72 114
 				Task();
73
-			
74
-				$(".sc_btn").click(function(){
75
-					 GetColumnList ();
115
+
116
+				$(".sc_btn").click(function() {
117
+					GetColumnList();
118
+					Number()
76 119
 				})
77 120
 				///查询条件中获取任务列表
78 121
 				function Task() {
@@ -96,21 +139,48 @@
96 139
 						}
97 140
 					});
98 141
 				}
99
-	
142
+
100 143
 				//任务查询获取表头
101
-				function  GetColumnList () {
144
+				function GetColumnList() {
145
+					$("#Task tbody").empty();
102 146
 					$.ajax({
103 147
 						type: "get",
104 148
 						url: huayi.config.callcenter_url + "/Questionnaire/GetReport?",
105 149
 						dataType: 'json',
106 150
 						data: {
107
-							 taskname:$("#cljg").val(),
151
+							taskname: $("#cljg").val(),
108 152
 							token: $.cookie("token")
109 153
 						},
110 154
 						async: true,
111 155
 						success: function(data) {
112 156
 							var Count = data.data;
113
-						
157
+
158
+							for(var i = 0; i < Count.length; i++) {
159
+								$('<tr><td>' + Count[i].wenti + ' </td>' +
160
+									'<td> ' + Count[i].xuanxiang + ' </td>' +
161
+									'<td> ' + Count[i].shuliang + ' </td>' +
162
+									'<td> ' + Count[i].bili + ' </td>' +
163
+									'</tr>').appendTo(".hwbb tbody");
164
+
165
+							}
166
+							console.log(Count)
167
+						}
168
+					});
169
+				}
170
+				//获取数据
171
+				function Number(){
172
+					$.ajax({
173
+						type: "get",
174
+						url: huayi.config.callcenter_url + "Questionnaire/GetDataList",
175
+						dataType: 'json',
176
+						data: {
177
+							taskname: $("#cljg").val(),
178
+							token: $.cookie("token")
179
+						},
180
+						async: true,
181
+						success: function(data) {
182
+							var Count = data.data;
183
+
114 184
 							console.log(Count)
115 185
 						}
116 186
 					});