|
|
@@ -37,6 +37,9 @@ $(document).ready(function() {
|
|
37
|
37
|
$(".username").text(result.data.user.F_UserName);
|
|
38
|
38
|
$('.user_code').text(result.data.user.F_UserCode);
|
|
39
|
39
|
localStorage.setItem('F_UserCode', result.data.user.F_UserCode)
|
|
|
40
|
+ var roleData = result.data.role;
|
|
|
41
|
+ $.cookie("F_RoleCode", roleData.F_RoleCode, {expires: 7});
|
|
|
42
|
+
|
|
40
|
43
|
$('.group').text(result.data.user.F_SeartGroup);
|
|
41
|
44
|
if(result.data.role) {
|
|
42
|
45
|
console.log(result.data);
|
|
|
@@ -157,15 +160,15 @@ $(document).ready(function() {
|
|
157
|
160
|
top.obj.TaskType = "0"; //0:拨号外呼;1:95005回访外呼;2:电销回访外呼
|
|
158
|
161
|
top.obj.TaskPhoneID = ""; //回访的电话ID
|
|
159
|
162
|
top.obj.TaskID = guid; //回访记录编号
|
|
160
|
|
- var arr={'1010':'22','1008':'3','1009':'4','1004':'5','1020':'6','1011':'7','1015':'8','1005':'9','1013':'10',
|
|
161
|
|
- '1012':'11','1006':'12','1002':'13','1001':'14','1007':'15','1003':'16','1014':'17','1016':'18','1017':'19','1018':'20'
|
|
162
|
|
- ,'1019':'21','1021':'34','1022':'35','1023':'36','1024':'37','1025':'38','1026':'39','1027':'40'};
|
|
163
|
|
- if(obj.Header){
|
|
164
|
|
- if(arr[obj.AgentExten]) {
|
|
165
|
|
- obj.Header = arr[obj.AgentExten]
|
|
166
|
|
- obj.DestinationNumber =obj.Header+ obj.DestinationNumber.slice(1)
|
|
167
|
|
- }
|
|
168
|
|
- }
|
|
|
163
|
+// var arr={'1010':'22','1008':'3','1009':'4','1004':'5','1020':'6','1011':'7','1015':'8','1005':'9','1013':'10',
|
|
|
164
|
+// '1012':'11','1006':'12','1002':'13','1001':'14','1007':'15','1003':'16','1014':'17','1016':'18','1017':'19','1018':'20'
|
|
|
165
|
+// ,'1019':'21','1021':'34','1022':'35','1023':'36','1024':'37','1025':'38','1026':'39','1027':'40'};
|
|
|
166
|
+// if(obj.Header){
|
|
|
167
|
+// if(arr[obj.AgentExten]) {
|
|
|
168
|
+// obj.Header = arr[obj.AgentExten]
|
|
|
169
|
+// obj.DestinationNumber =obj.Header+ obj.DestinationNumber.slice(1)
|
|
|
170
|
+// }
|
|
|
171
|
+// }
|
|
169
|
172
|
Send();
|
|
170
|
173
|
$('#Result').val('');
|
|
171
|
174
|
$(".WH").addClass("hidens");
|
|
|
@@ -296,13 +299,13 @@ $(document).ready(function() {
|
|
296
|
299
|
loadMenu();
|
|
297
|
300
|
$('.gdglM').removeClass('active')
|
|
298
|
301
|
workcount();
|
|
299
|
|
- workcountCl($('.gdgl'),0)
|
|
|
302
|
+// workcountCl($('.gdgl'),0)
|
|
300
|
303
|
workcountCl($('.dcl'),0)
|
|
301
|
304
|
workcountCl($('.ycy'),2)
|
|
302
|
305
|
workcountZh($('.zhcx'))
|
|
303
|
306
|
setInterval(function() {
|
|
304
|
307
|
workcount();
|
|
305
|
|
- workcountCl($('.gdgl'),0)
|
|
|
308
|
+// workcountCl($('.gdgl'),0)
|
|
306
|
309
|
workcountCl($('.dcl'),0);
|
|
307
|
310
|
workcountCl($('.ycy'),2)
|
|
308
|
311
|
workcountZh($('.zhcx'))
|
|
|
@@ -396,10 +399,13 @@ $(document).ready(function() {
|
|
396
|
399
|
|
|
397
|
400
|
if(result.state.toLowerCase() == "success") {
|
|
398
|
401
|
var con = result.data.user;
|
|
|
402
|
+
|
|
399
|
403
|
$('.mgh').val(con.F_UserId);
|
|
400
|
404
|
$('.mn').val(con.F_UserName);
|
|
401
|
405
|
$('.mobile').val(con.F_Mobile);
|
|
402
|
406
|
$('.fenji').val($.cookie("extno"));
|
|
|
407
|
+
|
|
|
408
|
+
|
|
403
|
409
|
//$('.wxno').val(con.F_WXNo);
|
|
404
|
410
|
// $('.spwd').val(con.F_Password);
|
|
405
|
411
|
}
|
|
|
@@ -1054,12 +1060,12 @@ function loadMenu() {
|
|
1054
|
1060
|
$.each(data, function(i) {
|
|
1055
|
1061
|
var row = data[i];
|
|
1056
|
1062
|
if(row.F_ParentID == "0") {
|
|
1057
|
|
- if(row.F_ModuleName == '工单管理'){
|
|
1058
|
|
- _html += '<li id="gdglM">';
|
|
1059
|
|
- }else{
|
|
1060
|
|
- _html += '<li>';
|
|
1061
|
|
- }
|
|
1062
|
|
-
|
|
|
1063
|
+// if(row.F_ModuleName == '工单管理'){
|
|
|
1064
|
+// _html += '<li id="gdglM">';
|
|
|
1065
|
+// }else{
|
|
|
1066
|
+// _html += '<li>';
|
|
|
1067
|
+// }
|
|
|
1068
|
+ _html += '<li>';
|
|
1063
|
1069
|
if(row.F_Button != ''){
|
|
1064
|
1070
|
_html += '<a class="Click"data-id="Menu_' + row.F_ModuleId + '" href="' + row.F_OptUrl + '"><span class="' + row.F_Button + '"></span><i class="fa iconfont">' + row.F_ImgUrl + '</i><span class="nav-label">' + row.F_ModuleName + '</span><span class="fa arrow"></span></a>';
|
|
1065
|
1071
|
}else{
|