|
|
@@ -97,6 +97,10 @@ function Connect() {
|
|
97
|
97
|
case "linestateagent":
|
|
98
|
98
|
LineStateAgentBack(data);
|
|
99
|
99
|
break; //线路状态通知
|
|
|
100
|
+// case "agentstateagent":
|
|
|
101
|
+// AgentStateAgentBack(data);
|
|
|
102
|
+// break; //坐席状态通知
|
|
|
103
|
+
|
|
100
|
104
|
case "callid":
|
|
101
|
105
|
CallIDBack(data);
|
|
102
|
106
|
break; //获取callid
|
|
|
@@ -269,9 +273,19 @@ function LineStateAgentBack(data) {
|
|
269
|
273
|
$(".zxzt").removeClass("bl").addClass("br");//20180509 by fanlongfei 增加坐席状态灯
|
|
270
|
274
|
}
|
|
271
|
275
|
if(data.State == '1') {
|
|
272
|
|
- $(".hwzt").text('空闲'); //左下角状态显示
|
|
|
276
|
+ var isml=0;
|
|
|
277
|
+ if(!$(".SayBusy").hasClass('active')){
|
|
|
278
|
+ isml=1;
|
|
|
279
|
+ $(".hwzt").text('置忙'); //左下角状态显示
|
|
|
280
|
+ $(".zxzt").removeClass("bl").addClass("br");
|
|
|
281
|
+ }
|
|
|
282
|
+ else{
|
|
|
283
|
+ $(".hwzt").text('空闲'); //左下角状态显示
|
|
|
284
|
+ $(".zxzt").removeClass("br").addClass("bl");
|
|
|
285
|
+ }
|
|
|
286
|
+
|
|
273
|
287
|
$(".fwzt").removeClass("br").addClass("bl");
|
|
274
|
|
- $(".zxzt").removeClass("br").addClass("bl");//20180509 by fanlongfei 增加坐席状态灯
|
|
|
288
|
+// $(".zxzt").removeClass("br").addClass("bl");//20180509 by fanlongfei 增加坐席状态灯
|
|
275
|
289
|
if(window.frames['iframe'+ hidCallID +'']){
|
|
276
|
290
|
window.frames['iframe'+ hidCallID +''].clearInter();
|
|
277
|
291
|
}
|
|
|
@@ -286,7 +300,12 @@ function LineStateAgentBack(data) {
|
|
286
|
300
|
}
|
|
287
|
301
|
$("#top-search li i").removeClass("active");
|
|
288
|
302
|
$(".Logout").addClass("active");
|
|
|
303
|
+ if(!isml){
|
|
289
|
304
|
$(".SayBusy").addClass("active");
|
|
|
305
|
+ }
|
|
|
306
|
+ else{
|
|
|
307
|
+ $(".SayFree").addClass("active");
|
|
|
308
|
+ }
|
|
290
|
309
|
$(".MakeCall").addClass("active");
|
|
291
|
310
|
|
|
292
|
311
|
if(window.frames['iframe'+ hidCallID +'']){
|