瀏覽代碼

使用财大呼叫中心版本

seimin 4 月之前
父節點
當前提交
3ce06f90c2
共有 3 個文件被更改,包括 23 次插入23 次删除
  1. 2 2
      assets/js/controllers/loginCtrl.js
  2. 18 18
      assets/js/controllers/mainCtrl.js
  3. 3 3
      assets/js/main.js

+ 2 - 2
assets/js/controllers/loginCtrl.js

@@ -8,10 +8,10 @@ app.controller('LoginCtrl', ['$rootScope', '$scope', '$state', '$translate', '$l
8
         //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
8
         //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
9
         // 中南财大
9
         // 中南财大
10
         // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
10
         // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
11
-        $rootScope.isZncd = false;
11
+        $rootScope.isZncd = true;
12
         // 华科
12
         // 华科
13
         // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
13
         // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
14
-        $rootScope.isHk = true;
14
+        $rootScope.isHk = false;
15
         if($rootScope.isZncd){
15
         if($rootScope.isZncd){
16
             localStorage.setItem('version_qd','isZncd');
16
             localStorage.setItem('version_qd','isZncd');
17
         }
17
         }

+ 18 - 18
assets/js/controllers/mainCtrl.js

@@ -11,10 +11,10 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
11
       //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
11
       //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
12
       // 中南财大
12
       // 中南财大
13
       // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
13
       // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
14
-      $rootScope.isZncd = false;
14
+      $rootScope.isZncd = true;
15
       // 华科
15
       // 华科
16
       // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
16
       // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
17
-      $rootScope.isHk = true;
17
+      $rootScope.isHk = false;
18
       if($rootScope.isZncd){
18
       if($rootScope.isZncd){
19
           localStorage.setItem('version_qd','isZncd');
19
           localStorage.setItem('version_qd','isZncd');
20
       }
20
       }
@@ -71,10 +71,10 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
71
       //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
71
       //因项目众多,前端为了加以区分,所以用域名加以判断,后期有更好的方式可以自行修改
72
       // 中南财大
72
       // 中南财大
73
       // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
73
       // $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
74
-      $rootScope.isZncd = false;
74
+      $rootScope.isZncd = true;
75
       // 华科
75
       // 华科
76
       // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
76
       // $rootScope.isHk = document.domain === '192.168.3.110' || document.domain === '192.168.3.69' || document.domain === '172.16.7.91' || document.domain === '192.168.3.105' || document.domain === 'localhost' || document.domain === '192.168.77.59';
77
-      $rootScope.isHk = true;
77
+      $rootScope.isHk = false;
78
       if($rootScope.isZncd){
78
       if($rootScope.isZncd){
79
           localStorage.setItem('version_qd','isZncd');
79
           localStorage.setItem('version_qd','isZncd');
80
       }
80
       }
@@ -123,7 +123,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
123
             if ($scope.login  && !$rootScope.busy) {
123
             if ($scope.login  && !$rootScope.busy) {
124
               $rootScope.setidle();
124
               $rootScope.setidle();
125
             }
125
             }
126
-          } 
126
+          }
127
         } else {
127
         } else {
128
             if ($scope.login && !$rootScope.busy) {
128
             if ($scope.login && !$rootScope.busy) {
129
                 $rootScope.setbusy();
129
                 $rootScope.setbusy();
@@ -418,8 +418,8 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
418
             //     $rootScope.imUsrMap[eventName]['msgs']=$rootScope.imUsrMap[eventName]['msgs']||[];
418
             //     $rootScope.imUsrMap[eventName]['msgs']=$rootScope.imUsrMap[eventName]['msgs']||[];
419
             //     angular.forEach(changedDoc.args,function(item){
419
             //     angular.forEach(changedDoc.args,function(item){
420
             //         $rootScope.imUsrMap[eventName].msgs.push(item);
420
             //         $rootScope.imUsrMap[eventName].msgs.push(item);
421
-            //     })                    
422
-            // }                
421
+            //     })
422
+            // }
423
           } else {
423
           } else {
424
 
424
 
425
           }
425
           }
@@ -486,7 +486,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
486
       getMenus();
486
       getMenus();
487
       //console.log(data);
487
       //console.log(data);
488
       //$rootScope.user = data.user;
488
       //$rootScope.user = data.user;
489
-      //$rootScope.menus = data.menu;   
489
+      //$rootScope.menus = data.menu;
490
     });
490
     });
491
 
491
 
492
     //$rootScope.$watch('$auth.user')
492
     //$rootScope.$watch('$auth.user')
@@ -518,7 +518,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
518
     // $rootScope.$on('auth:logout-success', function(ev) {
518
     // $rootScope.$on('auth:logout-success', function(ev) {
519
     //     //alert('goodbye');
519
     //     //alert('goodbye');
520
     //     //delete $rootScope.user;
520
     //     //delete $rootScope.user;
521
-    //     //delete $rootScope.menus;  
521
+    //     //delete $rootScope.menus;
522
     //     $state.go('login.signin');
522
     //     $state.go('login.signin');
523
     // });
523
     // });
524
 
524
 
@@ -554,7 +554,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
554
     //             if(angular.isUndefined(user.id)){
554
     //             if(angular.isUndefined(user.id)){
555
 
555
 
556
     //             }else{
556
     //             }else{
557
-    //                 $rootScope.user = user;                
557
+    //                 $rootScope.user = user;
558
     //             }
558
     //             }
559
     //         }
559
     //         }
560
     //     });
560
     //     });
@@ -573,10 +573,10 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
573
 
573
 
574
     //                     }else{
574
     //                     }else{
575
     //                         $rootScope.user = data.user;
575
     //                         $rootScope.user = data.user;
576
-    //                         $rootScope.menus = data.menu;  
576
+    //                         $rootScope.menus = data.menu;
577
     //                         $cookieStore.put("userObm", $rootScope.user);
577
     //                         $cookieStore.put("userObm", $rootScope.user);
578
     //                         $cookieStore.put("menuObm", $rootScope.menus);
578
     //                         $cookieStore.put("menuObm", $rootScope.menus);
579
-    //                         $cookieStore.put("session", data.sessionId);  
579
+    //                         $cookieStore.put("session", data.sessionId);
580
     //                     }
580
     //                     }
581
     //                 }
581
     //                 }
582
     //             }
582
     //             }
@@ -590,7 +590,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
590
     $scope.changeWorkId = function () {
590
     $scope.changeWorkId = function () {
591
       event.stopPropagation();
591
       event.stopPropagation();
592
     }
592
     }
593
-    
593
+
594
     $rootScope.getSession = function () {
594
     $rootScope.getSession = function () {
595
       if ($auth.userIsAuthenticated()) {
595
       if ($auth.userIsAuthenticated()) {
596
         return $auth.retrieveData('auth_headers')
596
         return $auth.retrieveData('auth_headers')
@@ -932,7 +932,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
932
         api_text.start(phone, $rootScope.user.id).then(function(data) {
932
         api_text.start(phone, $rootScope.user.id).then(function(data) {
933
             var token = data.token;
933
             var token = data.token;
934
             $rootScope.takes = token;
934
             $rootScope.takes = token;
935
-            api_text.logout($rootScope.takes, $rootScope.user.id).then(function(data) { 
935
+            api_text.logout($rootScope.takes, $rootScope.user.id).then(function(data) {
936
               api_text.login($scope.group, token, $rootScope.user.id).then(function(data) {
936
               api_text.login($scope.group, token, $rootScope.user.id).then(function(data) {
937
                 $rootScope.isMask = false;
937
                 $rootScope.isMask = false;
938
                 if (data.errno == 0) {
938
                 if (data.errno == 0) {
@@ -1376,7 +1376,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1376
                                             })
1376
                                             })
1377
                                         }
1377
                                         }
1378
                                     }
1378
                                     }
1379
-                                } 
1379
+                                }
1380
                                 // else if(mydata.evttype == 'allbusy' && mydata.status == 'false'){
1380
                                 // else if(mydata.evttype == 'allbusy' && mydata.status == 'false'){
1381
                                 //   if(location.href.includes('app/incident/list') || location.href.includes('app/incident/editor') || location.href.includes('app/incident/title')){
1381
                                 //   if(location.href.includes('app/incident/list') || location.href.includes('app/incident/editor') || location.href.includes('app/incident/title')){
1382
                                 //     $scope.setbusy();
1382
                                 //     $scope.setbusy();
@@ -2678,7 +2678,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
2678
         var toData = { 'model': { 'incident': { 'contactsInformation': data.callerIdNumber, 'source': { 'id': 1 } } } }
2678
         var toData = { 'model': { 'incident': { 'contactsInformation': data.callerIdNumber, 'source': { 'id': 1 } } } }
2679
         $state.go('app.incident.title', { 'model': JSON.stringify(toData) });
2679
         $state.go('app.incident.title', { 'model': JSON.stringify(toData) });
2680
       };
2680
       };
2681
-      // ws.send("{\"type\":\"1\",\"phone\":\""+data.phone+"\"}");                 
2681
+      // ws.send("{\"type\":\"1\",\"phone\":\""+data.phone+"\"}");
2682
     }
2682
     }
2683
     //来电号码生成事件
2683
     //来电号码生成事件
2684
     $scope.jry_callToIncident = function (data) {
2684
     $scope.jry_callToIncident = function (data) {
@@ -2759,12 +2759,12 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
2759
               //       title: "登出成功",
2759
               //       title: "登出成功",
2760
               //       text: "呼叫中心登出成功!",
2760
               //       text: "呼叫中心登出成功!",
2761
               //       type: "success"
2761
               //       type: "success"
2762
-              //     });    
2762
+              //     });
2763
               // }else{SweetAlert.swal({
2763
               // }else{SweetAlert.swal({
2764
               //       title: "登出失败",
2764
               //       title: "登出失败",
2765
               //       text: "呼叫中心登出失败!",
2765
               //       text: "呼叫中心登出失败!",
2766
               //       type: "error"
2766
               //       type: "error"
2767
-              //     });   
2767
+              //     });
2768
             }
2768
             }
2769
           })
2769
           })
2770
         }
2770
         }

+ 3 - 3
assets/js/main.js

@@ -22,7 +22,7 @@ var seiminCallIp = '';
22
 if(document.domain === 'itsm.zuel.edu.cn'){
22
 if(document.domain === 'itsm.zuel.edu.cn'){
23
     seiminCallIp = '202.114.235.100:5678';//财大
23
     seiminCallIp = '202.114.235.100:5678';//财大
24
 }else{
24
 }else{
25
-    seiminCallIp = '192.168.3.233:5678';//本地
25
+    seiminCallIp = '192.168.3.130:5678';//本地
26
 }
26
 }
27
 // 信用社
27
 // 信用社
28
 // var serverIp = "http://192.168.2.63:80/service"; //跟其他有关
28
 // var serverIp = "http://192.168.2.63:80/service"; //跟其他有关
@@ -31,7 +31,7 @@ if(document.domain === 'itsm.zuel.edu.cn'){
31
 // var callIp = "http://192.168.2.63:80/service";
31
 // var callIp = "http://192.168.2.63:80/service";
32
 //101测试
32
 //101测试
33
 // var serverIp = "http://192.168.3.101/service";
33
 // var serverIp = "http://192.168.3.101/service";
34
-// var reportIp = "http://192.168.3.101/service"; 
34
+// var reportIp = "http://192.168.3.101/service";
35
 // var inspectIp = "http://192.168.3.101/service";
35
 // var inspectIp = "http://192.168.3.101/service";
36
 // var imgBaseUrl = "http://192.168.3.101";//富文本框上传图片路径
36
 // var imgBaseUrl = "http://192.168.3.101";//富文本框上传图片路径
37
 // var callIp = "http://192.168.3.122:29005";
37
 // var callIp = "http://192.168.3.122:29005";
@@ -700,7 +700,7 @@ app.factory('api_statistic', ['BpmRestangular', function (BpmRestangular) {
700
         // exportData: function(reportView, uuid, reportfileName){
700
         // exportData: function(reportView, uuid, reportfileName){
701
         //     return  reportService.one('query/rest/export/xls/?exportname='+reportfileName+'xls');
701
         //     return  reportService.one('query/rest/export/xls/?exportname='+reportfileName+'xls');
702
 
702
 
703
-        // }   
703
+        // }
704
         getTask: function (userid, idx, sum) {
704
         getTask: function (userid, idx, sum) {
705
             return table.customGET('getTask/' + userid + '/' + idx + '/' + sum);
705
             return table.customGET('getTask/' + userid + '/' + idx + '/' + sum);
706
         },
706
         },