Browse Source

问卷结果导出

liuzhen 5 years ago
parent
commit
b22674c58d

BIN
WebUI/CallCenterWeb.UI/questionnaire/jieguotongji.xlsx


+ 1 - 1
WebUI/CallCenterWeb.UI/questionnaire/progressStatistics.html

@@ -38,7 +38,7 @@
38 38
         }
39 39
 
40 40
       #list thead tr th{
41
-      	    background: #01a1cb;
41
+      	    background: #293846;
42 42
     color: #fff;
43 43
       }
44 44
     </style>

+ 31 - 14
WebUI/CallCenterWeb.UI/questionnaire/resultStatistics.html

@@ -18,7 +18,7 @@
18 18
 				color: #fff!important;
19 19
 			}
20 20
 			
21
-			#Task thead td {
21
+			#Task thead th {
22 22
 				color: #fff;
23 23
 				background-color: #293846;
24 24
 				text-align: center;
@@ -87,7 +87,10 @@
87 87
 								<select id="cljg" class="x-color select"></select>
88 88
 							</li>
89 89
 							<li>问题列表:
90
-								<select id="Wt" class="x-color select"></select>
90
+								<select id="Wt" class="x-color select">
91
+									<option>居住在哪里</option>
92
+									<option>您的年龄</option>
93
+								</select>
91 94
 							</li>
92 95
 							<li>乡镇或单位:
93 96
 								<select id="country" class="x-color select">
@@ -98,7 +101,7 @@
98 101
 								<a class="sc_btn seach">搜索</a>
99 102
 							</li>
100 103
 							<li>
101
-								<a class="sc_btn export">导出</a>
104
+								<a class="sc_btn export" href="./jieguotongji.xlsx" download="./jieguotongji.xlsx">导出</a>
102 105
 							</li>
103 106
 						</ul>
104 107
 					</div>
@@ -113,10 +116,22 @@
113 116
 						</colgroup>-->
114 117
 						<thead>
115 118
 							<tr>
116
-								<td>问题</td>
117
-								<td>选项</td>
118
-								<td>数量</td>
119
-								<td>比例</td>
119
+								<th>问题</th>
120
+								<th>选项</th>
121
+								<th>数量</th>
122
+								<th>比例</th>
123
+							</tr>
124
+							<tr>
125
+								<td>居住在哪里</td>
126
+								<td>平顶山市</td>
127
+								<td>100</td>
128
+								<td>70%</td>
129
+							</tr>
130
+							<tr>
131
+								<td>您的年龄</td>
132
+								<td>20</td>
133
+								<td>5</td>
134
+								<td>80%</td>
120 135
 							</tr>
121 136
 						</thead>
122 137
 					</table>
@@ -270,13 +285,15 @@
270 285
 			}
271 286
 
272 287
 			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;
288
+				var url='./jieguotongji.xlsx';
289
+				obj.herf=url;
290
+//				var url = huayi.config.callcenter_url + "CallOutReport/GetReportExpt?token=" + $.cookie("token");
291
+//				url += "&TaskID=" + $("#cljg").val();
292
+//				url += "&quesid=" + $("#Wt").val();
293
+//				url += "&countryid=" + $("#country").val();
294
+//				url += "&sdate=" + ($("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[0]);// string 否 开始时间
295
+//				url += "&edate=" + ($("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[1]);// string 否 开始时间
296
+//				obj.href = url;
280 297
 			}
281 298
 		</script>
282 299