Parcourir la Source

再次修改置忙状态外呼 挂机 状态显示

zhangshuangnan il y a 7 ans
Parent
commit
da141a8da5
2 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. 1 0
      CallCenterWeb.UI/index.html
  2. 8 4
      CallCenterWeb.UI/js/main.js

+ 1 - 0
CallCenterWeb.UI/index.html

@@ -805,6 +805,7 @@
805 805
 
806 806
                         <div class="nav navbar-top-links navbar-left">
807 807
                             <ul class="title-box" id="top-search" style="padding-left: 0; display:none;">
808
+                            	<input type="hidden" id="isml" value="0" />
808 809
                                 <li datafun="DropCall">
809 810
                                     <i class="iconfont  fa-5x DropCall"></i>
810 811
                                     <p>挂断</p>

+ 8 - 4
CallCenterWeb.UI/js/main.js

@@ -273,9 +273,9 @@ function LineStateAgentBack(data) {
273 273
 		$(".zxzt").removeClass("bl").addClass("br");//20180509 by fanlongfei 增加坐席状态灯
274 274
 	}
275 275
 	if(data.State == '1') {
276
-		var isml=0;
277
-		if(!$(".SayBusy").hasClass('active')){
278
-			isml=1;
276
+//		var isml=0;
277
+		if($("#isml").val()==1){
278
+//			isml=1;
279 279
 			$(".hwzt").text('置忙'); //左下角状态显示
280 280
 			$(".zxzt").removeClass("bl").addClass("br");
281 281
 		}
@@ -300,7 +300,7 @@ function LineStateAgentBack(data) {
300 300
         }
301 301
 		$("#top-search li i").removeClass("active");
302 302
 		$(".Logout").addClass("active");
303
-		if(!isml){
303
+		if($("#isml").val()==0){
304 304
 		$(".SayBusy").addClass("active");
305 305
 		}
306 306
 		else{
@@ -390,6 +390,7 @@ function SetState(obj) {
390 390
 		$(".SayFree").addClass("active");
391 391
 		$(".zxzt").removeClass("bl").addClass("br");
392 392
 		$(".hwzt").text('置忙');
393
+		$("#isml").val(1)
393 394
 
394 395
 	}
395 396
 	if(obj.State == '2') {
@@ -397,12 +398,14 @@ function SetState(obj) {
397 398
 		$(".SayFree").removeClass("active");
398 399
 		$(".zxzt").removeClass("br").addClass("bl");
399 400
 		$(".hwzt").text('空闲');
401
+		$("#isml").val(0)
400 402
 	}
401 403
 }
402 404
 //置忙
403 405
 function SayBusyBack() {
404 406
 	$(".SayBusy").removeClass("active");
405 407
 	$(".SayFree").addClass("active");
408
+	$("#isml").val(1)
406 409
 }
407 410
 //坐席班长置闲
408 411
 function SayFreeBack() {
@@ -410,6 +413,7 @@ function SayFreeBack() {
410 413
 	$(".SayFree").removeClass("active");
411 414
 	$(".zxzt").removeClass("br").addClass("bl"); // 2018/05/09 by fanlongfei 增加坐席状态指示
412 415
 	$(".hwzt").text('空闲');// 2018/05/09 by fanlongfei 增加坐席状态指示
416
+	$("#isml").val(0)
413 417
 }
414 418
 //多方通话
415 419
 function MeetingBack() {