Parcourir la Source

修改话务状态灯

zhangshuangnan il y a 7 ans
Parent
commit
daaa4a18ec
2 fichiers modifiés avec 7 ajouts et 12 suppressions
  1. 2 2
      WebUI/CallCenterWeb.UI/index.html
  2. 5 10
      WebUI/CallCenterWeb.UI/js/main.js

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

@@ -1194,10 +1194,10 @@
1194 1194
                 <ul class="zts" style="display:none;">
1195 1195
                     <li>话机状态: </li>
1196 1196
                     <li class="quan fwzt lx"> </li>
1197
-                    <li><span class="hwzt" style="color:red;"></span></li>
1198 1197
                     <li>坐席状态: </li>
1199 1198
                     <li class="quan zxzt lx"></li>
1200
-                    <li><span class="hxzt" style="color:red;"></span></li>
1199
+                    <li><span class="hwzt" style="color:red;"></span></li>
1200
+                    <!--<li><span class="hxzt" style="color:red;"></span></li>-->
1201 1201
                 </ul>
1202 1202
             </div>
1203 1203
         </div>

+ 5 - 10
WebUI/CallCenterWeb.UI/js/main.js

@@ -30,7 +30,6 @@ function Connect() {
30 30
         console.log(new Date() + "    " + "建立连接");
31 31
         //心跳检测重置
32 32
         heartCheck.reset().start();
33
-
34 33
         cls = 0;
35 34
         $(".Login").addClass("active");
36 35
         lasttime = new Date().getTime();
@@ -369,9 +368,6 @@ function LineStateAgentBack(data) {
369 368
                 if (result.state.toLowerCase() == "success") { }
370 369
             })
371 370
         }
372
-
373
-
374
-
375 371
         $(".td-call").show();
376 372
         n = 0;
377 373
         $("#top-search li i").removeClass("active");
@@ -404,6 +400,7 @@ function LineStateAgentBack(data) {
404 400
 //坐席状态通知
405 401
 function AgentStateAgentBack(data) {
406 402
     var strr = '';
403
+    console.log('坐席状态'+ data.State );
407 404
     switch (data.State+"") {
408 405
         case "0":
409 406
             strr = "离线";
@@ -459,17 +456,15 @@ function SetState(obj) {
459 456
     if (obj.State == '5') {
460 457
         $(".SayBusy").removeClass("active");
461 458
         $(".SayFree").addClass("active");
462
-
463
-        //$(".zxzt").removeClass("bl").addClass("br");
464
-        //$(".hwzt").text('置忙');
465
-
459
+         $(".zxzt").removeClass("bl").removeClass("br").addClass("by");
460
+          $(".hwzt").text('忙碌');
466 461
         SetStateCookie(1);
467 462
     }
468 463
     if (obj.State == '2') {
469 464
         $(".SayBusy").addClass("active");
470 465
         $(".SayFree").removeClass("active");
471
-        //$(".zxzt").removeClass("br").addClass("bl");
472
-        //$(".hwzt").text('空闲');
466
+          $(".zxzt").removeClass("br").removeClass("by").addClass("bl");
467
+          $(".hwzt").text('空闲');
473 468
         SetStateCookie(0);
474 469
     }
475 470
 }