|
|
@@ -252,9 +252,9 @@ function DropCallBack() {
|
|
252
|
252
|
// window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
253
|
253
|
// }
|
|
254
|
254
|
|
|
255
|
|
-if(window.frames['iframe'+ hidCallID +'']){
|
|
256
|
|
- window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
257
|
|
-}
|
|
|
255
|
+ if(window.frames['iframe'+ hidCallID +'']){
|
|
|
256
|
+ window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
|
257
|
+ }
|
|
258
|
258
|
|
|
259
|
259
|
|
|
260
|
260
|
}
|
|
|
@@ -272,14 +272,9 @@ function LineStateAgentBack(data) {
|
|
272
|
272
|
$(".hwzt").text('空闲'); //左下角状态显示
|
|
273
|
273
|
$(".fwzt").removeClass("br").addClass("bl");
|
|
274
|
274
|
$(".zxzt").removeClass("br").addClass("bl");//20180509 by fanlongfei 增加坐席状态灯
|
|
275
|
|
-// if (objiframe.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
276
|
|
-// window.frames[objiframe.attr("name")].clearInter();
|
|
277
|
|
-// window.frames['iframe'+ hidCallID +''].clearInter();
|
|
278
|
|
-// }
|
|
279
|
|
-
|
|
280
|
|
-if(window.frames['iframe'+ hidCallID +'']){
|
|
281
|
|
- window.frames['iframe'+ hidCallID +''].clearInter();
|
|
282
|
|
-}
|
|
|
275
|
+ if(window.frames['iframe'+ hidCallID +'']){
|
|
|
276
|
+ window.frames['iframe'+ hidCallID +''].clearInter();
|
|
|
277
|
+ }
|
|
283
|
278
|
if (hidTel && hidCallID) {
|
|
284
|
279
|
$.post(huayi.config.callcenter_url + 'CallInScreen/UpdateGJ', {
|
|
285
|
280
|
callid: hidTel,
|
|
|
@@ -293,13 +288,10 @@ if(window.frames['iframe'+ hidCallID +'']){
|
|
293
|
288
|
$(".Logout").addClass("active");
|
|
294
|
289
|
$(".SayBusy").addClass("active");
|
|
295
|
290
|
$(".MakeCall").addClass("active");
|
|
296
|
|
-// if (objiframe.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
297
|
|
-// window.frames[objiframe.attr("name")].$(".td-call").hide();
|
|
298
|
|
-// window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
299
|
|
-// }
|
|
300
|
|
-if(window.frames['iframe'+ hidCallID +'']){
|
|
301
|
|
- window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
302
|
|
-}
|
|
|
291
|
+
|
|
|
292
|
+ if(window.frames['iframe'+ hidCallID +'']){
|
|
|
293
|
+ window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
|
294
|
+ }
|
|
303
|
295
|
}
|
|
304
|
296
|
if(data.State == '2') {
|
|
305
|
297
|
$(".hwzt").text('摘机等待拨号'); //左下角状态显示
|
|
|
@@ -338,7 +330,6 @@ if(window.frames['iframe'+ hidCallID +'']){
|
|
338
|
330
|
if(result.state.toLowerCase() == "success") {}
|
|
339
|
331
|
})
|
|
340
|
332
|
}
|
|
341
|
|
-
|
|
342
|
333
|
$("#top-search li i").removeClass("active");
|
|
343
|
334
|
$(".DropCall").addClass("active");
|
|
344
|
335
|
$(".Hold").addClass("active");
|
|
|
@@ -349,9 +340,7 @@ if(window.frames['iframe'+ hidCallID +'']){
|
|
349
|
340
|
// if (objiframe.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
350
|
341
|
setTimeout(window.frames['iframe'+ hidCallID +''].calling(),500);/*2018-05-19 zhangshuangnan 修改 ps: 因软电话设置为 自动应答 通话时间不计时问题*/
|
|
351
|
342
|
// }
|
|
352
|
|
-
|
|
353
|
343
|
}
|
|
354
|
|
-
|
|
355
|
344
|
}
|
|
356
|
345
|
if(data.State == '7') {
|
|
357
|
346
|
$(".hwzt").text('播放忙音中'); //左下角状态显示
|
|
|
@@ -426,32 +415,43 @@ function RetrieveBack() {
|
|
426
|
415
|
}
|
|
427
|
416
|
//监测
|
|
428
|
417
|
function SubScribeBack() {
|
|
429
|
|
- var obj = $("iframe:visible")
|
|
430
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
431
|
|
- window.frames[obj.attr("name")].Start();
|
|
432
|
|
- }
|
|
|
418
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
419
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
420
|
+ window.frames[$(this).attr("name")].Start();
|
|
|
421
|
+ }
|
|
|
422
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
|
423
|
+
|
|
|
424
|
+
|
|
433
|
425
|
}
|
|
434
|
426
|
//取消监测
|
|
435
|
427
|
function SubScribeCancelBack() {
|
|
436
|
|
- var obj = $("iframe:visible")
|
|
437
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
438
|
|
- window.frames[obj.attr("name")].Stop();
|
|
439
|
|
- }
|
|
|
428
|
+// var obj = $("iframe:visible")
|
|
|
429
|
+// if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
|
430
|
+// window.frames[obj.attr("name")].();
|
|
|
431
|
+// }
|
|
|
432
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
433
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
434
|
+ window.frames[$(this).attr("name")].Stop();
|
|
|
435
|
+ }
|
|
|
436
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
|
437
|
+
|
|
440
|
438
|
}
|
|
441
|
439
|
//班长监测返回状态
|
|
442
|
440
|
//坐席状态
|
|
443
|
441
|
function AgentStateBack(data) {
|
|
444
|
|
- var obj = $("iframe:visible")
|
|
445
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
446
|
|
- window.frames[obj.attr("name")].UpdateAgentState(data.AgentID, data.State);
|
|
447
|
|
- }
|
|
|
442
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
443
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
444
|
+ window.frames[$(this).attr("name")].UpdateAgentState(data.AgentID, data.State);
|
|
|
445
|
+ }
|
|
|
446
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
448
|
447
|
}
|
|
449
|
448
|
//线路状态
|
|
450
|
449
|
function LineStateBack(data) {
|
|
451
|
|
- var obj = $("iframe:visible")
|
|
452
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
453
|
|
- window.frames[obj.attr("name")].UpdateLineState(data.AgentID, data.State);
|
|
454
|
|
- }
|
|
|
450
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
451
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
452
|
+ window.frames[$(this).attr("name")].UpdateLineState(data.AgentID, data.State);
|
|
|
453
|
+ }
|
|
|
454
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
455
|
455
|
}
|
|
456
|
456
|
//录音返回
|
|
457
|
457
|
function RecordPathBack(data) {
|