Explorar el Código

修改 话机和坐席状态 灯的bug;

fanlongfei %!s(int64=7) %!d(string=hace) años
padre
commit
2c3abc4be5
Se han modificado 1 ficheros con 10 adiciones y 2 borrados
  1. 10 2
      CallCenterWeb.UI/js/main.js

+ 10 - 2
CallCenterWeb.UI/js/main.js

@@ -249,11 +249,14 @@ function LineStateAgentBack(data) {
249 249
 	//0分机不可用,1空闲,2摘机等待拨号,3正在拨号,4呼出振铃,5来电振铃,6通话中,7播放忙音中,8移除IP分机,9通话保持中
250 250
 	if(data.State == '0') {
251 251
 		$(".hwzt").text('分机不可用'); //左下角状态显示
252
+		$(".fwzt").removeClass("bl").addClass("br");//20180509 by fanlongfei 增加话机状态灯
253
+		$(".zxzt").removeClass("bl").addClass("br");//20180509 by fanlongfei 增加坐席状态灯
252 254
 	}
253 255
 	if(data.State == '1') {
254 256
 		$(".hwzt").text('空闲'); //左下角状态显示
255 257
 
256 258
 		$(".fwzt").removeClass("br").addClass("bl");
259
+		$(".zxzt").removeClass("br").addClass("bl");//20180509 by fanlongfei 增加坐席状态灯
257 260
 //		clearInterval(timer);
258 261
 		if (obj.attr("data-id") == './callScreen/callScreen.html?tel=' + hidTel + '&CallID=' + hidCallID + '') {
259 262
 	        window.frames[obj.attr("name")].clearInter();
@@ -288,7 +291,9 @@ function LineStateAgentBack(data) {
288 291
 	}
289 292
 	if(data.State == '5') {
290 293
 		$(".hwzt").text('来电振铃'); //左下角状态显示
291
-		$(".fwzt").removeClass("bl").addClass("br");
294
+		//$(".fwzt").removeClass("bl").addClass("br");
295
+		$(".fwzt").removeClass("br").addClass("bl");//20180509 by fanlongfei 增加话机状态灯
296
+		$(".zxzt").removeClass("bl").addClass("br");//20180509 by fanlongfei 增加坐席状态灯
292 297
 		if(hidTel && hidCallID) {
293 298
 			$.post(huayi.config.callcenter_url + 'CallInScreen/UpdateZL', {
294 299
 				callid: $(".hidCallID").val(),
@@ -302,6 +307,7 @@ function LineStateAgentBack(data) {
302 307
 	if(data.State == '6') {
303 308
 		$(".hwzt").text('通话中'); //左下角状态显示
304 309
 		$(".fwzt").removeClass("bl").addClass("br");
310
+		$(".zxzt").removeClass("bl").addClass("br");//20180509 by fanlongfei 增加坐席状态灯
305 311
 		if(hidTel && hidCallID) {
306 312
 			$.post(huayi.config.callcenter_url + 'CallInScreen/UpdateZJ', {
307 313
 				callid: $(".hidCallID").val(),
@@ -367,10 +373,12 @@ function SayBusyBack() {
367 373
 	$(".SayBusy").removeClass("active");
368 374
 	$(".SayFree").addClass("active");
369 375
 }
370
-//置闲
376
+//班长坐席置闲
371 377
 function SayFreeBack() {
372 378
 	$(".SayBusy").addClass("active");
373 379
 	$(".SayFree").removeClass("active");
380
+	$(".zxzt").removeClass("br").addClass("bl"); // 2018/05/09 by fanlongfei 增加坐席状态指示
381
+	$(".hwzt").text('空闲');// 2018/05/09 by fanlongfei 增加坐席状态指示
374 382
 }
375 383
 //多方通话
376 384
 function MeetingBack() {