Bladeren bron

隐藏录音文字下载按钮

fanlongfei 7 jaren geleden
bovenliggende
commit
3da78d0c80
1 gewijzigde bestanden met toevoegingen van 64 en 62 verwijderingen
  1. 64 62
      CallCenterWeb.UI/TelCall/CallRecord.html

+ 64 - 62
CallCenterWeb.UI/TelCall/CallRecord.html

13
 		<script src="../My97DatePicker/WdatePicker.js"></script>
13
 		<script src="../My97DatePicker/WdatePicker.js"></script>
14
 		<script src="../js/select2/js/select2.min.js"></script>
14
 		<script src="../js/select2/js/select2.min.js"></script>
15
 		<!-- <script src="../css/laydate/laydate.js"></script>-->
15
 		<!-- <script src="../css/laydate/laydate.js"></script>-->
16
-		 <script src="../js/laydate/laydate.js"></script>
16
+		<script src="../js/laydate/laydate.js"></script>
17
 		<style>
17
 		<style>
18
 			body {
18
 			body {
19
 				font-family: "微软雅黑";
19
 				font-family: "微软雅黑";
61
 			
61
 			
62
 			.photo {
62
 			.photo {
63
 				background-color: #FFF;
63
 				background-color: #FFF;
64
-				
65
 				border: 1px solid #e5e6e7;
64
 				border: 1px solid #e5e6e7;
66
 				border-radius: 1px;
65
 				border-radius: 1px;
67
 				color: inherit;
66
 				color: inherit;
166
 			.seach-box ul {
165
 			.seach-box ul {
167
 				padding-left: 0;
166
 				padding-left: 0;
168
 			}
167
 			}
168
+			
169
 			.seach-box {
169
 			.seach-box {
170
 				width: 100%;
170
 				width: 100%;
171
 				margin-bottom: 10px;
171
 				margin-bottom: 10px;
176
 				text-align: right;
176
 				text-align: right;
177
 			}
177
 			}
178
 			
178
 			
179
-.LY:hover{
180
-	color: #fff;
181
-	
182
-}
183
-.LY:active{
184
-	color: #fff!important;
185
-}
186
-.laydate-icon{
187
-	font-size: 14px;
188
-}
189
-#ss_kssj{
190
-	    background-color: #FFF;
191
-    background-image: none;
192
-    border: 1px solid #e5e6e7;
193
-    border-radius: 1px;
194
-    color: inherit;
195
-    padding: 6px 12px;
196
-}
179
+			.LY:hover {
180
+				color: #fff;
181
+			}
182
+			
183
+			.LY:active {
184
+				color: #fff!important;
185
+			}
186
+			
187
+			.laydate-icon {
188
+				font-size: 14px;
189
+			}
190
+			
191
+			#ss_kssj {
192
+				background-color: #FFF;
193
+				background-image: none;
194
+				border: 1px solid #e5e6e7;
195
+				border-radius: 1px;
196
+				color: inherit;
197
+				padding: 6px 12px;
198
+			}
197
 		</style>
199
 		</style>
198
 	</head>
200
 	</head>
199
 
201
 
215
 						<ul>
217
 						<ul>
216
 							<li>
218
 							<li>
217
 								<label for="">开始时间:</label>
219
 								<label for="">开始时间:</label>
218
-								<input type="text" id="ss_kssj" class=" laydate-icon" placeholder="请选择时间"/>
219
-								
220
+								<input type="text" id="ss_kssj" class=" laydate-icon" placeholder="请选择时间" />
221
+
220
 							</li>
222
 							</li>
221
 							<li>
223
 							<li>
222
 								<label for="">呼叫状态:</label>
224
 								<label for="">呼叫状态:</label>
253
 									<option value="">全部</option>
255
 									<option value="">全部</option>
254
 								</select>
256
 								</select>
255
 							</li>
257
 							</li>
256
-							
258
+
257
 						</ul>
259
 						</ul>
258
-								<div class="clearfix btn_boxs " style="float: right;">
259
-									<a class="sc_btn Ss Block fl">搜索</a>
260
-									<a class="sc_btn export Block" style="display: inline-box;display: -webkit-inline-box;">导出</a>
261
-								</div>
260
+						<div class="clearfix btn_boxs " style="float: right;">
261
+							<a class="sc_btn Ss Block fl">搜索</a>
262
+							<a class="sc_btn export Block" style="display: inline-box;display: -webkit-inline-box;">导出</a>
263
+						</div>
262
 					</div>
264
 					</div>
263
 
265
 
264
 				</div>
266
 				</div>
298
 				<div class="shade_content">
300
 				<div class="shade_content">
299
 					<div class="Ly_box audiojs">
301
 					<div class="Ly_box audiojs">
300
 					</div>
302
 					</div>
301
-                   <div class="boxCon LY_box">
302
-                  
303
-                   </div>
303
+					<div class="boxCon LY_box">
304
+
305
+					</div>
304
 				</div>
306
 				</div>
305
 			</div>
307
 			</div>
306
 		</div>
308
 		</div>
309
 			var seatlist = [];
311
 			var seatlist = [];
310
 			var RoleId;
312
 			var RoleId;
311
 			$(document).ready(function() {
313
 			$(document).ready(function() {
312
-//				laydate.skin('molv');
313
-//              //留言时间
314
-//              laydate({
315
-//                  elem: '#ss_kssj',
316
-//                  event: 'focus',
317
-//                  festival: true, //显示节日
318
-//
319
-//              });
320
-//              //处理时间
321
-//              laydate({
322
-//                  elem: '#ss_jssj',
323
-//                  festival: true, //显示节日
324
-//                  event: 'focus'
325
-//              });
326
-                laydate.render({
327
-										elem: '#ss_kssj',
328
-										range: '~',
329
-				//							type: 'datetime',
330
-										//max : 31,
331
-//										min: 0,
332
-										theme: '#00a1cb',
314
+				//				laydate.skin('molv');
315
+				//              //留言时间
316
+				//              laydate({
317
+				//                  elem: '#ss_kssj',
318
+				//                  event: 'focus',
319
+				//                  festival: true, //显示节日
320
+				//
321
+				//              });
322
+				//              //处理时间
323
+				//              laydate({
324
+				//                  elem: '#ss_jssj',
325
+				//                  festival: true, //显示节日
326
+				//                  event: 'focus'
327
+				//              });
328
+				laydate.render({
329
+					elem: '#ss_kssj',
330
+					range: '~',
331
+					//							type: 'datetime',
332
+					//max : 31,
333
+					//										min: 0,
334
+					theme: '#00a1cb',
333
 				});
335
 				});
334
 				$.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
336
 				$.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
335
 					"token": $.cookie("token")
337
 					"token": $.cookie("token")
500
 				var path = $(val).attr("item");
502
 				var path = $(val).attr("item");
501
 				$(".t-shade").addClass("cx");
503
 				$(".t-shade").addClass("cx");
502
 				$(".Ly_box").empty();
504
 				$(".Ly_box").empty();
503
-								$(".LY_box").empty();
505
+				$(".LY_box").empty();
504
 				$('<audio  style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
506
 				$('<audio  style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
505
-				$('<a href="'+ path +'" class="sc_btn LY "download="'+ path +'">下载录音</a>').appendTo(".LY_box");
507
+				//$('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");//20180511 by fanlongfei 隐藏文字下载按钮
506
 			}
508
 			}
507
 			//导出
509
 			//导出
508
 			$('.export').click(function() {
510
 			$('.export').click(function() {
511
 
513
 
512
 			function dcexcel(obj) {
514
 			function dcexcel(obj) {
513
 				var a = $("#bumen").val();
515
 				var a = $("#bumen").val();
514
-				var b= $('#ss_kssj').val() && $('#ss_kssj').val().split('~')[1];
516
+				var b = $('#ss_kssj').val() && $('#ss_kssj').val().split('~')[1];
515
 				if(a) {
517
 				if(a) {
516
 
518
 
517
 				} else if(b) {
519
 				} else if(b) {
518
-					
519
-				}else{
520
+
521
+				} else {
520
 					a = '';
522
 					a = '';
521
-					b='';
523
+					b = '';
522
 				}
524
 				}
523
 				var url = huayi.config.callcenter_url + "Callrecords/GetListExpt?token=" + $.cookie("token");
525
 				var url = huayi.config.callcenter_url + "Callrecords/GetListExpt?token=" + $.cookie("token");
524
 				url += "&usercode=" + $("#seat").val() +
526
 				url += "&usercode=" + $("#seat").val() +
526
 					"&callstate=" + $("#ss_hjzt").val() +
528
 					"&callstate=" + $("#ss_hjzt").val() +
527
 					"&calltype=" + $("#ss_hcfx").val() +
529
 					"&calltype=" + $("#ss_hcfx").val() +
528
 					"&starttime=" + $("#ss_kssj").val() +
530
 					"&starttime=" + $("#ss_kssj").val() +
529
-					"&endtime=" + b+
531
+					"&endtime=" + b +
530
 					"&dept=" + a;
532
 					"&dept=" + a;
531
 				obj.href = url;
533
 				obj.href = url;
532
 				console.log(url);
534
 				console.log(url);
533
 			}
535
 			}
534
-					$('#ReIndex').click(function() {
535
-					top.$("iframe:visible")[0].src = "widgets.html";
536
+			$('#ReIndex').click(function() {
537
+				top.$("iframe:visible")[0].src = "widgets.html";
536
 
538
 
537
-//					top.home_index();
538
-				})
539
+				//					top.home_index();
540
+			})
539
 		</script>
541
 		</script>
540
 
542
 
541
 	</body>
543
 	</body>