zhangshuangnan %!s(int64=7) %!d(string=před) roky
rodič
revize
b4a10f94c3
1 změnil soubory, kde provedl 24 přidání a 6 odebrání
  1. 24 6
      CallCenterWeb.UI/js/newtx.js

+ 24 - 6
CallCenterWeb.UI/js/newtx.js

@@ -767,16 +767,35 @@ $(document).ready(function() {
767 767
 							var CallId = IVRSelKey;
768 768
 							  var NowCallerPhoneCode = Phone.CallInfoEx_Ani;
769 769
 							  	//获取呼叫编号callId
770
-									$.get(huayi.config.callcenter_url + 'CallInScreen/GetCallIdByPhone',{
771
-										telphone:NowCallerPhoneCode,
770
+//									$.get(huayi.config.callcenter_url + 'CallInScreen/GetCallIdByPhone',{
771
+//										telphone:NowCallerPhoneCode,
772
+//										"token": $.cookie("token")
773
+//									}, function (res) {
774
+//									    res = JSON.parse(res);
775
+//									    if (res.state == "success") {
776
+//											$('#callId').val(res.data.CallId);
777
+//											$('#BusinessType').val(res.data.BusinessType);
778
+//											updateCallLogs(NowCallerPhoneCode,status,becallcome)
779
+//										}
780
+//									});
781
+									$.ajax({
782
+										type:"get",
783
+										url:huayi.config.callcenter_url + 'CallInScreen/GetCallIdByPhone',
784
+										async:false,
785
+										dataType:'json',
786
+										data:{
787
+											telphone:NowCallerPhoneCode,
772 788
 										"token": $.cookie("token")
773
-									}, function (res) {
774
-									    res = JSON.parse(res);
789
+										},
790
+										success:function(res){
791
+//											res = JSON.parse(res);
775 792
 									    if (res.state == "success") {
793
+									    	console.log('获取callId'+res.data.CallId)
776 794
 											$('#callId').val(res.data.CallId);
777 795
 											$('#BusinessType').val(res.data.BusinessType);
778 796
 											updateCallLogs(NowCallerPhoneCode,status,becallcome)
779 797
 										}
798
+										}
780 799
 									});
781 800
 						}catch (e) {
782 801
 
@@ -795,7 +814,7 @@ $(document).ready(function() {
795 814
 							Phone.QueryCallInfoEx(_CallId);
796 815
 							var telphone = Phone.CallInfoEx_Ani;
797 816
 							if(becallcome) {
798
-								console.log($('#callId').val());
817
+								console.log('zlzl前'+$('#callId').val());
799 818
 								updateZL($('#callId').val());
800 819
 							    Form_callCommingCaller(telphone, $('#callId').val(),$('#BusinessType').val());
801 820
 							}
@@ -839,7 +858,6 @@ $(document).ready(function() {
839 858
 				}
840 859
                 //更新振铃事件
841 860
 				function updateZL(callids){
842
-				   
843 861
 				    $.get(huayi.config.callcenter_url + 'CallInScreen/UpdateZL', {
844 862
 				        callid: callids,
845 863
 				        "token": $.cookie("token")