|
|
@@ -238,10 +238,9 @@ function DropCallBack() {
|
|
238
|
238
|
$(".Logout").addClass("active");
|
|
239
|
239
|
$(".SayBusy").addClass("active");
|
|
240
|
240
|
$(".MakeCall").addClass("active");
|
|
241
|
|
- var obj = $("iframe:visible")
|
|
242
|
|
- if (obj.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
243
|
|
- window.frames[obj.attr("name")].$(".td-call").hide();
|
|
244
|
|
- }
|
|
|
241
|
+ if(window.frames['iframe'+ hidCallID +'']){
|
|
|
242
|
+ window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
|
243
|
+ }
|
|
245
|
244
|
}
|
|
246
|
245
|
|
|
247
|
246
|
function LineStateAgentBack(data) {
|
|
|
@@ -257,10 +256,9 @@ function LineStateAgentBack(data) {
|
|
257
|
256
|
|
|
258
|
257
|
$(".fwzt").removeClass("br").addClass("bl");
|
|
259
|
258
|
$(".zxzt").removeClass("br").addClass("bl");//20180509 by fanlongfei 增加坐席状态灯
|
|
260
|
|
-// clearInterval(timer);
|
|
261
|
|
- if (obj.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
262
|
|
- window.frames[obj.attr("name")].clearInter();
|
|
263
|
|
- }
|
|
|
259
|
+ if(window.frames['iframe'+ hidCallID +'']){
|
|
|
260
|
+ window.frames['iframe'+ hidCallID +''].clearInter();
|
|
|
261
|
+ }
|
|
264
|
262
|
|
|
265
|
263
|
if(hidTel && hidCallID) {
|
|
266
|
264
|
$.post(huayi.config.callcenter_url + 'CallInScreen/UpdateGJ', {
|
|
|
@@ -276,9 +274,9 @@ function LineStateAgentBack(data) {
|
|
276
|
274
|
$(".Logout").addClass("active");
|
|
277
|
275
|
$(".SayBusy").addClass("active");
|
|
278
|
276
|
$(".MakeCall").addClass("active");
|
|
279
|
|
- if (obj.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
280
|
|
- window.frames[obj.attr("name")].$(".td-call").hide();
|
|
281
|
|
- }
|
|
|
277
|
+ if(window.frames['iframe'+ hidCallID +'']){
|
|
|
278
|
+ window.frames['iframe'+ hidCallID +''].$(".td-call").hide();
|
|
|
279
|
+ }
|
|
282
|
280
|
}
|
|
283
|
281
|
if(data.State == '2') {
|
|
284
|
282
|
$(".hwzt").text('摘机等待拨号'); //左下角状态显示
|
|
|
@@ -317,17 +315,14 @@ function LineStateAgentBack(data) {
|
|
317
|
315
|
if(result.state.toLowerCase() == "success") {}
|
|
318
|
316
|
})
|
|
319
|
317
|
}
|
|
320
|
|
-
|
|
321
|
|
-// $(".td-call").show();
|
|
322
|
|
-// n = 0;
|
|
323
|
318
|
$("#top-search li i").removeClass("active");
|
|
324
|
319
|
$(".DropCall").addClass("active");
|
|
325
|
320
|
$(".Hold").addClass("active");
|
|
326
|
321
|
$(".Transfer").addClass("active");
|
|
327
|
322
|
$(".Meeting").addClass("active");
|
|
328
|
323
|
|
|
329
|
|
- if (obj.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
|
|
330
|
|
- window.frames[obj.attr("name")].calling();
|
|
|
324
|
+ if (window.frames['iframe'+ hidCallID +'']) {
|
|
|
325
|
+ setTimeout(window.frames['iframe'+ hidCallID +''].calling(),500);/*2018-05-19 zhangshuangnan 修改 ps: 因软电话设置为 自动应答 通话时间不计时问题*/
|
|
331
|
326
|
}
|
|
332
|
327
|
|
|
333
|
328
|
}
|
|
|
@@ -401,34 +396,38 @@ function RetrieveBack() {
|
|
401
|
396
|
$(".Hold").addClass("active");
|
|
402
|
397
|
$(".Retrieve").removeClass("active");
|
|
403
|
398
|
}
|
|
404
|
|
-//监测
|
|
|
399
|
+//开始监测
|
|
405
|
400
|
function SubScribeBack() {
|
|
406
|
|
- var obj = $("iframe:visible")
|
|
407
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
408
|
|
- window.frames[obj.attr("name")].Start();
|
|
409
|
|
- }
|
|
|
401
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
402
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
403
|
+ window.frames[$(this).attr("name")].Start();
|
|
|
404
|
+ }
|
|
|
405
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
410
|
406
|
}
|
|
411
|
407
|
//取消监测
|
|
412
|
408
|
function SubScribeCancelBack() {
|
|
413
|
|
- var obj = $("iframe:visible")
|
|
414
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
415
|
|
- window.frames[obj.attr("name")].Stop();
|
|
416
|
|
- }
|
|
|
409
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
410
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
411
|
+ window.frames[$(this).attr("name")].Stop();
|
|
|
412
|
+ }
|
|
|
413
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
417
|
414
|
}
|
|
418
|
415
|
//班长监测返回状态
|
|
419
|
416
|
//坐席状态
|
|
420
|
417
|
function AgentStateBack(data) {
|
|
421
|
|
- var obj = $("iframe:visible")
|
|
422
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
423
|
|
- window.frames[obj.attr("name")].UpdateAgentState(data.AgentID, data.State);
|
|
424
|
|
- }
|
|
|
418
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
419
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
420
|
+ window.frames[$(this).attr("name")].UpdateAgentState(data.AgentID, data.State);
|
|
|
421
|
+ }
|
|
|
422
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
425
|
423
|
}
|
|
426
|
424
|
//线路状态
|
|
427
|
425
|
function LineStateBack(data) {
|
|
428
|
|
- var obj = $("iframe:visible")
|
|
429
|
|
- if(obj.attr("data-id") == "./TelCall/SeatMonitor.html") {
|
|
430
|
|
- window.frames[obj.attr("name")].UpdateLineState(data.AgentID, data.State);
|
|
431
|
|
- }
|
|
|
426
|
+ $('#content-main .J_iframeNew').each(function(i,n){
|
|
|
427
|
+ if($(this).attr('data-id') == "./TelCall/SeatMonitor.html"){
|
|
|
428
|
+ window.frames[$(this).attr("name")].UpdateLineState(data.AgentID, data.State);
|
|
|
429
|
+ }
|
|
|
430
|
+ })/*2018-05-24 zhangshuangnan 修改 解决通话中时 坐席监控状态不改变的问题*/
|
|
432
|
431
|
}
|
|
433
|
432
|
//录音返回
|
|
434
|
433
|
function RecordPathBack(data) {
|